quick example using text links. easily modified to use images.
<html>
<head>
<script type="text/javascript">
var adArray = new Array();
adArray[0] = new Array();
adArray[0].text = "Fusion Authority";
adArray[0].link = "http://www.fusionauthority.com";
adArray[1] = new Array();
adArray[1].text = "House of Fusion";
adArray[1].link = "http://www.houseoffusion.com";
adArray[2] = new Array();
adArray[2].text = "Ben Forta";
adArray[2].link = "http://www.forta.com";
adArray[3] = new Array();
adArray[3].text = "Ray Camden";
adArray[3].link = "http://www.coldfusionjedi.com";
var adCounter = 0;
function displayAd(adNum) {
if (adCounter > adArray.length) adCounter = 0;
document.getElementById('adLink').href =
adArray[adNum].link;
document.getElementById('adLink').innerHTML =
adArray[adNum].text;
adCounter++;
setTimeout('displayAd(' + adCounter + ')', 3000);
}
</script>
</head>
<body onload="displayAd(0);">
<a href="" id="adLink"></a>
</body>
</html>
On 6/13/07, Charlie Griefer <[EMAIL PROTECTED]> wrote:
> JavaScript has a setTimeout() method that will call a function every
> 'n' miliseconds. no need for refreshing the page.
>
> set up a JS array of images/links, and loop thru that array changing
> the image and link attributes of your ad.
--
Charlie Griefer
================================================
"...All the world shall be your enemy, Prince with a Thousand Enemies,
and whenever they catch you, they will kill you. But first they must catch
you, digger, listener, runner, prince with a swift warning.
Be cunning and full of tricks and your people shall never be destroyed."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281030
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4