So I use embedSWF for the first swf and then createSWF/removeSWF for
all the others?
My code is this:
<html>
<head>
<style type="text/css">
body{
background-color: #00CC99
}
</style>
<script type="text/javascript" src="swfobject.js"></script>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></
script>
<script type="text/javascript">
clock(1);
function clock(i)
{
if (i<4) j=i+1;
else j=1;
if (i=='1')
{
swfobject.embedSWF("gmlogoB.swf", "myContent", "779", "136",
"9.0.0");
setTimeout("clock(j)",3000);
}
else if (i=='2')
{
swfobject.embedSWF("468x60_diakopes.swf", "myContent", "468", "60",
"9.0.0");
setTimeout("clock(j)",1250);
}
else if (i=='3')
{
swfobject.embedSWF("gmlogoA.swf", "myContent", "779", "136",
"9.0.0");
setTimeout("clock(j)",1250);
}
else if (i=='4')
{
swfobject.embedSWF("eede.swf", "myContent", "468", "60", "9.0.0");
setTimeout("clock(j)",1250);
}
//alert("j is"+ j);
}
</script>
</head>
<body>
<table style="width:1000px; height:200px;">
<tr>
<td style="background-color:#0000CC;" align="center" valign="middle">
<div id="myContent" >
<h1>Alternative content</h1>
<p><a href="
http://www.adobe.com/go/getflashplayer"><img
src="
http://www.adobe.com/images/shared/download_buttons/
get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
</td>
</tr>
</table>
<br/>
</body>
</html>
P.S Also to detect if javascript is enable or not use the <noscript>
tag?