View Full Version : html help!
Zephyr
09-22-2003, 08:07 PM
i need a code that can allow me to run banners on my site and that it rotates the banners when ppl refresh the page
Davetronz
09-22-2003, 09:37 PM
BAH simple.
I just dont have the time to explain it right now Zephy.
If you can wait I will do it for you in a couple days.
4G63Power
09-22-2003, 10:01 PM
http://webdeveloper.earthweb.com/webjs/jsbanner/item.php/39181
there are others on this site if this one isn't what your looking for
Zephyr
09-22-2003, 10:07 PM
i need it for a forum and dave if u can do it in a few days i can wait
Davetronz
09-22-2003, 10:08 PM
So like basically coded into a php forum?
Like what we have on beyond?
Zephyr
09-22-2003, 11:56 PM
its invision powered i know it doesnt allow cgi, dude wuts ur msn handle, u dont go on ur old one anymore
roopi
09-23-2003, 01:17 AM
Slap this into a table:
<!--start of text banner rotation script -->
<script language="JavaScript" src="bannerrotation.js">
</script>
<!--end of text banner rotation script -->
and now add the following to a file called bannerrotaion.js
var banner=new Array()
banner[0]='<a href=http://www.link1.com target=_blank>Text here or image 1</a>'
banner[1]='<a href=http://www.link2.com target=_blank>Text here or image 2</a>'
banner[2]='<a href=http://www.link3.com target=_blank>Text here or image 3</a>'
banner[3]='<a href=http://www.link4.com target=_blank>Text here or image 4</a>'
banner[4]='<a href=http://www.link5.com target=_blank>Text here or image 5</a>'
var whichbanner=Math.floor(Math.random()*(banner.length))
document.write(banner[whichbanner])
got it? easy enough? just html and javascript. i'm sure your host can handle that.
Davetronz
09-23-2003, 08:18 AM
Hey John, in Roopi I trust. His code works, go with it :)
Thanks roop.
Powered by vBulletin® Version 4.2.4 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.