View Single Post
Old 09-25-2002, 02:57 AM  
Darren
Confirmed User
 
Darren's Avatar
 
Join Date: Sep 2001
Posts: 5,994
Simple Javascript help! Please!

How do i change the colour of the border to what i want? I need it to be this color: #6B45A5

Below is the script (banner rotation).


<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var how_many_ads = 3;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
txt="";
url="dvd.php";
alt="Our Dvd Collection";
banner="models3.jpg";
width="99";
height="121";
}
if (ad==2) {
txt="";
url="dvd.php";
alt="Our Dvd Collection";
banner="models4.jpg";
width="99";
height="121";
}
if (ad==3) {
txt="";
url="dvd.php";
alt="Our Dvd Collection";
banner="models5.jpg";
width="99";
height="121";
}
document.write('<center>');
document.write('<a href=\"' + url + '\" target=\"_top\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0><br>');
document.write('<small>' + txt + '</small></a>');
document.write('</center>');
// End -->
</SCRIPT>
Darren is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote