![]() |
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> |
what border?
|
Ok lets try postign script again:
how_many_Begin 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>'); |
umm GFY doesnt like the script,
ok at the bottom for some reason highlighted as hyperlink it says border = 0 i set this to border = 1 but it comes up with a black border, i need the color i stated above - how do i do this |
put the rotation inside a table with a border size of 1 (or whatever) and use: bordercolor="#6B45A5" for the table.
|
table something like this:
[table width="10" border="1" cellpadding="0" cellspacing="0" bordercolor="#6B45A5"] (with the proper arrows of course) |
tks good idea! it worked :)
|
All times are GMT -7. The time now is 07:49 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123