Hello great coders,
This is my complete code for my player. The video will appear after 5 seconds. How can I use onclick event on iframe instead of onload?Code:<script type="text/javascript">function ShowPlayer() {var Player=document.getElementById('flvplayer'); Player.innerHTML='<embed type="application/x-shockwave-flash" src="http://c.longtailvideo.com/player.swf" style="margin-left:0px;" id="flvplayer" name="player" quality="high" allowfullscreen="true" allowscriptaccess="always" wmode="transparent" flashvars="&file=http://tube.paperstreetcash.com/ih/<?php echo $_GET['id'];?>.flv&provider=video&frontcolor=2e91ca&lightcolor=2e91ca&skin=http://www.longtailvideo.com/files/skins/slim/5/slim.zip&stretching=exactfit&volume=100&autostart=true">';}</script> <div id="flvplayer"> <script language="javascript"> document.write("<iframe hspace=0 vspace=0 border=0 frameborder=0 marginheight=35 marginwidth=0 width=530 height=290 scrolling=no allowtransparency=true onload=setTimeout('ShowPlayer()',5000) src=http://adserver.juicyads.com/adshow.php?adzone=13435 ></iframe><br><center>CLICK IMAGE TO LOAD VIDEO</center>"); </script> </div>
If I use a regular image with link and use the onclick function, it works fine! But the ads Im using is in an iframe...
Thank you in advance! Im desperate to make this happen to generate more clicks on my ads![]()



Reply With Quote


Bookmarks