Dynadot โ€” .com Transfer

Help

SpaceshipSpaceship
Watch
Impact
0
I am designing this web site, it is more like an information web site but on this site there will be advertisements where they will change on there own.

So i will have 1 advertisement in a specific space and it will change to another advertisment every ten seconds, how do I write this code for 3 advertisement. Can it be done in html?? Does anyone know any resources I can use for help.

Thank you



[email protected]
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
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.
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Catchy
CatchDoms
NameMaxi - Your Domain Has Buyers
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back