Dreamweaver Club Forums

Dreamweaver Club Forums (http://www.dreamweaverclub.com/forum//index.php)
-   Javascript and JS frameworks (http://www.dreamweaverclub.com/forum//forumdisplay.php?f=186)
-   -   Banner rotation script help.. (http://www.dreamweaverclub.com/forum//showthread.php?t=32886)

gigiloumill 07-23-2009 01:18 AM

Banner rotation script help..
Guys, can someone please tell me what I'm doing wrong. When viewed in browser I get a blank page. Thanks


<SCRIPT language=JavaScript>

var img_width = "640";
var img_height = "360";
var img_title = "Click Here";

var links=new Array();
var pic=new Array();

//insert here your images src
pic[0]=<img src="images/IMGA0257.JPG" width="640" height="360" />;
pic[1]=<img src="images/IMGA0264.JPG" width="640" height="360" />;

//insert here your links

var xy=Math.floor(Math.random()*ad.length);//generates a random //digit and then makes it a whole number
document.write('<a href="'+links[0]+'" target="_blank"><img src="'+pic[0]+'" width="'+img_width+'" height="'+img_height+'" alt="'+img_title+'"></a>');

coloeagle 07-23-2009 02:52 PM

Just to clarify,
What type of banner rotating script are you after?
Auto change or single/random image on page load?

All times are GMT. The time now is 11:46 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com