| ....what? Location: Ontario, Canada Join Date: Aug 2003
Posts: 101
NP$: 171.00 ( Donate)
| You can use Javascript.
Put this in your <HEAD> tag: <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
var timeout_1;
var adnumber;
var imagenum;
adnumber = 0;
imagenum = 3;
function changead(url)
{
window.document.myimagead.src = url;
timeout_1 = setTimeout("changecom",10000);
}
function changecom()
{
adnumber = adnumber + 1;
if (adnumber == 4)
{
adnumber = 1;
}
changead("adimages/" + adnumber + ".bmp");
}
changecom();
//-->
</SCRIPT>
Change the text in bold into the extension of your files.
In the image tag that holds your ad, put in this value: NAME="myimagead"
Put all of your images in %webpage_directory%/adimages/
Name the first image 1.***
Name the second one 2.***
Name the third one 3.***
I have not tested this code, wrote it up in a few minutes. So if anyone finds any bugs, please tell me.
P.S. You might also want to add preloading.
__________________
Yeah... I knew that. What?
|