Hello all. Recently came across a script here from another thread for randomly displaying flash banners when a page is refreshed. Here is the code.
[CODE]<html>
<head>
<script type=”text/javascript”>
function switcher()
{
var ad=new Array()
ad[0]=’../../Images/swf/Movie1.swf’;
ad[1]=’../../Images/swf/Movie2.swf’;
ad[2]=’../../Images/swf/Movie3.swf’;
ad[3]=’../../Images/swf/Movie4.swf’;
ad[4]=’../../Images/swf/Movie5.swf’;
var xy=Math.floor(Math.random()*ad.length);
document.getElementById(‘iframe1’).src=ad[xy];
}
</script>
</head>
<body onLoad=”switcher()”>
<iframe name=”iframe1″ id=”iframe1″ src=”” width=”453″ height=”52″ scrolling=”no” frameborder=”0″>Click Here!</iframe>
<br>
</body>
</html>
The code works great but the problem i’m having is A) the two flash ads i want to display are not the same size and ? the client wants to be able to track the number of times their ads load, (i’m pulling the flash ads from their server) and i don’t believe displaying it through an iframe can provide them the ability to track the number of loads.
If anyone here could provide a work around for these two issues I would really appreciate it!!!