The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Rotating Banner

2 posters

Go down

Rotating Banner Empty Rotating Banner

Post by urbexleeds October 14th 2008, 11:12 pm

Ive been looking into a rotating banner for the forums for weeks now and its driving me nuts!!!

Could anyone help?? Im simply wanting the main banner at the top of the forums to change on the page reload. Not sure if this can be simply implemented in to the CSS or you need JS.

If anyone could help ill be forever in you debt.

Cheers
UL
urbexleeds
urbexleeds
Forumember

Male Posts : 62
Reputation : 0
Language : english UK
Location : LEEDS

http://urbexleeds.forum-motion.com

Back to top Go down

Rotating Banner Empty Re: Rotating Banner

Post by urbexleeds October 14th 2008, 11:38 pm

Anyone PLEASE Crying or Very sad
urbexleeds
urbexleeds
Forumember

Male Posts : 62
Reputation : 0
Language : english UK
Location : LEEDS

http://urbexleeds.forum-motion.com

Back to top Go down

Rotating Banner Empty Re: Rotating Banner

Post by urbexleeds October 15th 2008, 12:10 am

Found this that works.
Code:
<script language="Javascript">
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
<!--
i=0;
var ads = new Object();
var header='<CENTER>';

ads[i++] = header
+'<A HREF="http://www.urbexleeds.forum-motion.com" TARGET="_top">'
+'<IMG SRC="http://i34.tinypic.com/259en1x.jpg" width="700" height="90" BORDER=0 ALT="This Is UrbexLeeds">'
+'</A></CENTER>';

ads[i++] = header
+'<A HREF="http://www.urbexleeds.forum-motion.com" TARGET="_top">'
+'<IMG SRC="http://i36.tinypic.com/9beog7.png" width="700" height="90" BORDER=0 ALT="This Is UrbexLeeds">'
+'</A></CENTER>';

ads.length = i;
dat = new Date();
dat = (dat.getTime()+"").charAt(8);
if (dat.length == 1)
 ad_num = dat%ads.length;
else
 ad_num = 0;
document.write(ads[ad_num]);
// -->
</script>

Just wanting to know now how this can be added above the menu bar.
As at the moment it has to be added to the "homepage Message".

Heres a link to the original post. See if anyone else can make sense of it, as im totally useless when it comes to coding.
urbexleeds
urbexleeds
Forumember

Male Posts : 62
Reputation : 0
Language : english UK
Location : LEEDS

http://urbexleeds.forum-motion.com

Back to top Go down

Rotating Banner Empty Re: Rotating Banner

Post by ChadmStraight October 15th 2008, 5:00 am

i dont think it needs to be javascript.
at one time i seen something like this for a myspace layout, which wont support javascript.
if you do a yahoo search for html tutorials it will come up with a site called something like w3school or another one called something like daves school.
those are very good websites.
sorry i dont have a code just to give you. and if i ever find the code tonight, i will come back and post it

when you get the code you can install it by going to display; colors; css stylesheet

you can position your banner with this code

Code:
 style="position:absolute; left:0px; top: 0px"

example place to put it

Code:
<img src="url here" border="0" style="position:absolute; left:0px; top: 0px" />

just play around with the position to put it exactly where you want.


*EDIT*
you can either use this
http://www.123mycodes.com/random-image-generator.php

or you can make sense of this
http://scripts.anolecomputer.com/random_image/

other than that, just do a yahoo search for random image generator
ChadmStraight
ChadmStraight
Forumember

Posts : 91
Reputation : 1
Language : english

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum