C
Craig
Is there a way for each different ad to have a separate hyperlink associated with it? So far I can only use one for all of the ads that I have.
Is there a way for each different ad to have a separate
hyperlink associated with it? So far I can only use one
for all of the ads that I have.
associated with it? So far I can only use one for all of the ads that ICraig said:Is there a way for each different ad to have a separate hyperlink
Jim said:[B<script>
pics = new Array("sample10.jpg",
"sample11.jpg",
"sample12.jpg");
lnks = new Array("http://www.microsoft.com",
"http://www.google.com",
"http://www.cnn.com");
curDate = new Date();
curTim = curDate.getTime();
picNum = curTim % pics.length;
document.write("<a href='" + lnks[picNum] +
"'><img src='photos/" + pics[picNum] +
"' border='0'></a>");
</script>
Here some things to keep in mind when using this script:
o You can specify as many pictures as you want in the
statement that begins on line 2.
o You must specify an equal number of links in the
statement that begins on line 5. These will
correspond to the pictures on a 1:1 basis.
o In the statement that appears in lines 2 through 4
from the bottom, be sure to specify the correct path
from the page that uses the script to the folder that
contains the pictures.
[/B
JFL said:OK, when using this code, what else besides the pic names and links do I
need to plug in??
Nothing.
What about time?
position ect ect??
Thanks!
Jason
Jim said:<script>
pics = new Array("sample10.jpg",
"sample11.jpg",
"sample12.jpg");
lnks = new Array("http://www.microsoft.com",
"http://www.google.com",
"http://www.cnn.com");
curDate = new Date();
curTim = curDate.getTime();
picNum = curTim % pics.length;
document.write("<a href='" + lnks[picNum] +
"'><img src='photos/" + pics[picNum] +
"' border='0'></a>");
</script>
Here some things to keep in mind when using this script:
o You can specify as many pictures as you want in the
statement that begins on line 2.
o You must specify an equal number of links in the
statement that begins on line 5. These will
correspond to the pictures on a 1:1 basis.
o In the statement that appears in lines 2 through 4
from the bottom, be sure to specify the correct path
from the page that uses the script to the folder that
contains the pictures.
[/B]