The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Javascript Banner Rotator Help
Hello,
I need some help getting a javascript banner rotator to work in my navibar. I place the javascript code below in my navibar. The script works fine on the root index page (CMPS) but works incorrectly on any other page. http://www.calibersrt4.net (works correctly) http://www.calibersrt4.net/forums/ The links and links to the images appear as (http://www.calibersrt4.net/forums/http://www...... What is causing this or what am I doing wrong? Thanks. Code:
<SCRIPT language=JavaScript> var img_width = "468"; var img_height = "60"; var img_title = "Visit our Sponsors!"; var ad=new Array() //insert here your images src ad[0]="http://www.calibersrt4.net/forums/images/sponsors/ctalogo.gif"; ad[1]="http://www.calibersrt4.net/forums/images/sponsors/mptbanner.gif"; ad[2]="http://www.calibersrt4.net/forums/images/sponsors/pracing.gif"; var links=new Array() //insert here your links links[0]="http://www.ctamotorsports.com"; links[1]="http://www.macellarosperformancetuning.com/"; links[2]="http://www.pracing.com"; var xy=Math.floor(Math.random()*ad.length); document.write('<a href="'+links[xy]+'" target="_blank"><img src="'+ad[xy]+'" width="'+img_width+'" height="'+img_height+'" alt="'+img_title+'"></a>'); </SCRIPT> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|