PDA

View Full Version : Onclick event



william james
01-09-2011, 11:26 PM
Hello great coders,


<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="&amp;file=http://tube.paperstreetcash.com/ih/<?php echo $_GET['id'];?>.flv&amp;provider=video&amp;frontcolor=2e91ca&amp;lightcolor=2e91ca&amp;skin=http://www.longtailvideo.com/files/skins/slim/5/slim.zip&amp;stretching=exactfit&amp;volume=100&amp;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>

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?

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 :)

molendijk
01-09-2011, 11:55 PM
Propose some decent video. Then I might be willing to help you.
===
Arie Molendijk.

william james
01-10-2011, 02:30 AM
Propose some decent video. Then I might be willing to help you.
===
Arie Molendijk.

Hi Sir,
With due respect, that's my nature of work and can't do something about it...
I can just post a decent video as you requested but at the end of the day, I'm still gonna use it on my "indecent" video :)

If you really wanna help, I'll appreciate it very much! If not, then it's OK.
But I know somebody out there surfing the web trying to search something related like what I am asking and I'm sure not all of them works on adult sites... And it would be very beneficial for them if you share your knowledge.

Thank you!

molendijk
01-10-2011, 01:03 PM
I ment the link to juicypark.
===
Arie.

cindylou
01-10-2011, 04:46 PM
hi will.. i read your codes...javascript right?... try this one

http://www.javascriptkit.com/javatutors/event2.shtml

maybe it'll help...if not, there are other sites that provide codes or tutorials..