such as this link, http://www.sendspace.com/file/l1fcny when I go to sendspace dwonload page link, there is no any pop up ads at all, but when I click to download the file, it will pop up an ads in another page, how to do such popup ads? thx
Well, when I visited the link, popup blocker blocked a popup window from opening before I could click on any link. Personally speaking, I just hate popup's. They are annoying and irritating. I seriously recommend that you do not use them.
i want to learn this method, anyone knows? when I go to sendspace dwonload page link, there is no any pop up ads at all, but when I click to download the file, it will pop up an ads in another page, thx
Well, you were actually provided the link (sendspace.com/file/l1fcny) in some email or after your uploaded the file. In fact the popup window does not opens after clicking on the download link. The popup ad code is pasted right on the same page itself. In fact its a small delay after which the popup ad opens. I visited that page so many times and clicked download link but nothing happened as you mentioned. You seems to be under wrong impression that it opens after clicking on the download link. But if you want to make it happen, you can use the javascript onclick event.
sendspace should be set one ip popup once per 24 hours. then, anyone know how to make a code that when I click to download the file, it will pop up an ads in another page?thx
As I said, you can use the javascript onclick event. Do a search for javascript onclick and you will find lot of information on it. The code would look something like this <a href="<url>" onClick'<code to trigger popup ad>;'>download</a>
Friend, the best way is to put the popup ad code on the download page. As soon as people reach this page, the popup ad will automatically trigger. But I still suggest you use regular banner ads instead of popup. You may like popup but people surely do not like it. Just think why the browsers like FF and IE are coming with popup blockers. No one's interested in popup ads these days and even if you use it, most of the times, they will be blocked. Its up to you how you want to go ahead.
I use Java script, Type in google 'javascript popup windows' and the coding will be right there, modify it and your set.
Try these two links: http://javascript-array.com/scripts/window_open/ http://www.yourhtmlsource.com/javascript/popupwindows.html
i am now trying adding too download page: before, echo "<input type=submit value=\"".$lang[dl_file_now]."\" onClick=window.location=\"".$scripturl. "download2.php?a=" . $filecrc . "&b=" . md5($foundfile[2].$_SERVER['REMOTE_ADDR'])."\">"; after, echo "<a href="javascriptoptastic('http://google.com');"><input type=submit value=\"".$lang[dl_file_now]."\" onClick=window.location=\"".$scripturl. "download2.php?a=" . $filecrc . "&b=" . md5($foundfile[2].$_SERVER['REMOTE_ADDR'])."\"></a>"; but it shows : Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' how to fix it? thx
What are you trying to do exactly. Your trying to have a download page, and on the download page it has a popup? A popup to display what?
It looks like kk890 is not able to understand and he is making all this even more complicated. Friend, don't make things complicated. I have played around on the internet for more than 5 years so I know that its not worth making something just because we like it. Try to view it from the visitors point of view. As I said people do not like popup ads. They are annoying and they frustrate the visitors. Instead, put a 360x280 size banner ad code adjacent to the download link. That will give you more click thru rate and you will surely earn revenues. Just because you like popup ads will not help you generate money. Do a search on "block popup ads" and see what people have to say about it. I hope you understand. But if you still want go ahead with it, then 1st of all, your codes are wrong and its not going to work. Please provide me with the actual source code where you want to put the ads. The page where visitors can download the file. And I will give you the modified code.