TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 205
  • Total: 205

Rotating Banners for your TP forum! (Works for FF and IE)

Started by ash, October 10, 2007, 07:23:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

b33znutz

Quote from: ash on June 10, 2008, 05:46:32 PM
Sorry for the absence.  Thanks b33znutz for letting me know I needed to come back here to reply.

no prob dude. sorry if i sounded rude, just frustrated with this one, and other things having to do with my SMF/TP modding... gonna try again.. will let you know! thanks!



Reality12

Quote from: nstutsman on June 05, 2008, 11:39:59 PM
I use a php script to rotate banners.  No issues, just put the php in a folder with all the banners you want to rotate.  Just point the image location to the file, i.e. on my site http://geeksbling.com, the banner is pointed to http://geeksbling.com/squad/headerbgs/index.php.  I have about 17 banners in there, it randomly rotates among all of them.  I even have additional folders in there, for different events (xmas, etc.)  Just dump all the normal banners into a temp dump, and move the seasonal ones into the main folder.

This isn't my script, so I won't take credit.  But it works for an idiot like me, so it's gotta work for you :)

i like the script. is it possible to code the script to open images in a new page once clicked?

Reality12

guess i should say i'm currently looking for help with a block that features random images, but will open up a new page if that image is clicked...


Reality12

i like you. :)

see link you provided for the rest of this post.

ash

the code to open something in a new window when selected is:
<p><a target="_blank" href="http://thegamedomain.org/tgdmain/"><img border="0" src="your_picture.jpg" width="233" height="157"></a></p>

Specifically:  target="_blank" added to the URL.

but they have a random picture mod here in Snippits.  Shows a random image from some image folder.  When you cvlick it, the picture opens the picture in a new window.

O0

This website is proudly hosted on Crocweb Cloud Website Hosting.