[advanced search]
Results from the most recent live auction are here.
21 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 11-17-2003, 12:36 PM   · #1
j9hagop
First Time Poster!
 
Trader Rating: (0)
Join Date: Nov 2003
Posts: 1
NP$: 2.00 (Donate)
j9hagop is an unknown quantity at this point
help

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



j9hagop@yahoo.com


Please register or log-in into NamePros to hide ads
j9hagop is offline   Reply With Quote
Old 11-17-2003, 01:57 PM   · #2
Mp)Tarh
....what?
 
Mp)Tarh's Avatar
 
Location: Ontario, Canada
Trader Rating: (0)
Join Date: Aug 2003
Posts: 101
NP$: 171.00 (Donate)
Mp)Tarh is an unknown quantity at this point
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?
Mp)Tarh is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
RealTechNetwork Website Header Design Proof is in the Parking
Advertise your business at NamePros
All times are GMT -7. The time now is 10:29 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0