i want to make a button when click opening popup window with google adsense or any other..we need to click ads for continue download button..(this button has 10 second timer)

here i have code please modify this if you can..

<input id="submit" type=submit value='<?php echo _sbdown; ?>' onClick="window.open('http://www.mysite.com/ads.html','mywindow','width=400,height=200')"/>

_sbdown = Download

this code will open a new window..but how can i integrade it to 10 second timer + click ads to continue??

thanks a lot

Recommended Answers

All 3 Replies

Member Avatar for stbuchok

So, you want someone to click on an ad in order to continue? This is a terrible idea and will only piss off your users. If you want your users to be happy with your site and to continue to comeback, change your code to the following.

<!--
<input id="submit" type=submit value='<?php echo _sbdown; ?>' onClick="window.open('http://www.mysite.com/ads.html','mywindow','width=400,height=200')"/>
-->

This is just my opinion, and every site I have every seen that has this, I have never gone back to. I'm just trying to help.

Please help me sir..

Member Avatar for stbuchok

look at using setTimeout in JavaScript.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.