GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Simple Javascript help! Please! (https://gfy.com/showthread.php?t=79002)

Darren 09-25-2002 02:57 AM

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>

Amputate Your Head 09-25-2002 02:58 AM

what border?

Darren 09-25-2002 02:59 AM

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>');

Darren 09-25-2002 03:01 AM

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

Amputate Your Head 09-25-2002 03:06 AM

put the rotation inside a table with a border size of 1 (or whatever) and use: bordercolor="#6B45A5" for the table.

Amputate Your Head 09-25-2002 03:08 AM

table something like this:
[table width="10" border="1" cellpadding="0" cellspacing="0" bordercolor="#6B45A5"]
(with the proper arrows of course)

Darren 09-25-2002 03:48 AM

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