Jump to content


Photo

Please Wait X Seconds... Url Revealer


  • Please log in to reply
2 replies to this topic

#1 bigpoppa

bigpoppa
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 16 July 2006 - 10:14 PM

Hey I need help (doesn't everyone?) on a script. The script functions like this:
Please wait X seconds for download (for example x=15 seconds)
Please wait 14 seconds for download (and then a second later)
Please wait 13 seconds for download... (process keeps repeating)
Click here to download the file you requested (occurs at 0 seconds)

Does anyone know of a script like that one? I have seen many sites use it including megaupload.com. I am running a site with many downloads and the ones that are files over 3 megabytes must have a timer inorder to conserve bandwidth (and files over 5 megabytes download speed will be limited to 25kbps, but I have found a script on how to do that using php, but am still awaiting help on how to use it since its just a code snippet and i am a fresh to php). If you know what language this script is written in (I am guessing javascript or php) and could possible provide me with an example or a place I can find that script it would be of a great help to me. Thanks a bunch.

#2 pixy

pixy
  • Members
  • PipPipPip
  • Advanced Member
  • 295 posts

Posted 16 July 2006 - 10:21 PM

Looks like javascript to me. Javascript for the countdown, and PHP to force the download (using headers).

This is a .44 Caliber Loveletter straight through my heart.

Tabulas + Threadless + Hire Me!


#3 True`Logic

True`Logic
  • Members
  • PipPipPip
  • Advanced Member
  • 59 posts

Posted 17 July 2006 - 05:09 AM

exactly, simple
Download in.. <span id="blah"></span>
and
document.getElementById("blah").innerHTML= X + "seconds"





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users