NameSilo

Need some help for my site upload.vc

Spaceship Spaceship
Watch

lwlll

Established Member
Impact
1
hello, my site is a simple uploading site. please review it at www.upload.vc

I want to know how to pop up a new window when someone click the download botton.

for example, http://www.upload.vc/download.php?file=750usQ1ularc3.torrent
after click this url, when after 10 seconds, how to do to pop up a site when someone click the 'Download File Now'. Thanks a lot
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
you Could do that using onclick on the submit button:

change:
Code:
document.getElementById("dl").innerHTML = 
'<input type="submit" value="Download File Now" 
onClick="window.location=\'http://upload.vc/download2.php...\'">';

to:
Code:
document.getElementById("dl").innerHTML = 
'<input type="submit" value="Download File Now" onClick="[B][COLOR=Red]popup();[/COLOR][/B] 
window.location=\'http://upload.vc/download2.php...\'">';

and add;
Code:
 function popup()
 {
   mywindow = window.open ("http://upload.vc/popup.html",
  "mywindow");
 }

I haven't tested it but you should get the idea
 
0
•••
Thanks a lot for helping. Could you tell me which file should i modify? My site use Mini File Host script. Thanks
 
0
•••
sorry, I don't now that script. I just went by the code I saw in the page on your website.
Maybe you can look through the code and find where this line is created:

<input type="submit" value="Download File Now" onClick="window.location=\'http://upload.vc/download2.php
 
0
•••
Appraise.net

We're social

Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back