Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 27th Dec 2010, 09:29 PM   #1
Active Warrior
 
Join Date: 2010
Posts: 30
Thanks: 4
Thanked 2 Times in 2 Posts
Default
Add Script to WP for beginning download afile after 5 seconds
Share on: 
fb share twitter share gplus share more share

I make a website with WP to distribute a file, I want any kind of script that when user click a link of download, a new page open then begin download file after 5 or 10 seconds. Thank you in advance.

brian culbert is offline  
Unread 28th Dec 2010, 06:46 AM   #2
Entrepreneur
 
Join Date: 2010
Posts: 39
Thanks: 0
Thanked 3 Times in 3 Posts
Default
Re: Add Script to WP for beginning download afile after 5 seconds
Share on: 
fb share twitter share gplus share more share

I don't know if there's a WP plugin for this, but if you know some coding, you can use Meta refresh to accomplish this. Something like:
<meta http-equiv="refresh" content="5;url=http://yourwebsite.com/">
5 is the number of seconds.
RaulK is offline  
The Following User Says Thank You to RaulK For This Useful Post:
Unread 28th Dec 2010, 08:32 PM   #3
Active Warrior
War Room Member
 
mystline's Avatar
 
Join Date: 2010
Posts: 92
Thanks: 7
Thanked 10 Times in 10 Posts
Default
Re: Add Script to WP for beginning download afile after 5 seconds
Share on: 
fb share twitter share gplus share more share

Originally Posted by RaulK View Post

I don't know if there's a WP plugin for this, but if you know some coding, you can use Meta refresh to accomplish this. Something like:
<meta http-equiv="refresh" content="5;url=http://yourwebsite.com/">
5 is the number of seconds.
To bind this to a button you could just create that element using some JS, or use window.location
mystline is offline  
The Following User Says Thank You to mystline For This Useful Post:
Unread 29th Dec 2010, 04:13 AM   #4
Active Warrior
War Room Member
 
anestbaik's Avatar
 
Join Date: 2010
Location: yogya, indonesia
Posts: 59
Thanks: 5
Thanked 8 Times in 8 Posts
Default
Re: Add Script to WP for beginning download afile after 5 seconds
Share on: 
fb share twitter share gplus share more share

and the complete code are ->

file link-download.html
<!-- this is link to click that will show the new window for download file -->
<a href="http://your-domain.com/your-file-download.html">CLICK HERE TO DOWNLOAD</a>


file your-file-download.html
<html>
<head>
<script type="text/javascript" src="./jquery.js"></script>
</head>
<body>
Thank you for downloading,
wait 10 second,
see this ADS

<script>
$(window).load(function () {
setTimeout(function() {
alert('Dowload BEGIN');
}, 10000);
});
</script>

</body>
</html>

anestbaik is offline  
The Following User Says Thank You to anestbaik For This Useful Post:
Unread 29th Dec 2010, 03:19 PM   #5
Active Warrior
 
Join Date: 2010
Posts: 30
Thanks: 4
Thanked 2 Times in 2 Posts
Default
Re: Add Script to WP for beginning download afile after 5 seconds
Share on: 
fb share twitter share gplus share more share

Thank you all guys for your precious help, It runs like magic. Thank you, Thank you, Thank you



brian culbert is offline  
Unread 1st Sep 2013, 01:21 AM   #6
Warrior Member
 
Join Date: 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Add Script to WP for beginning download afile after 5 seconds
Share on: 
fb share twitter share gplus share more share

Hello Sir anestbaik
Im not able to do this on my website. Please can u upload video on youtube for this "Add Script to WP for beginning download afile after 5 seconds" tutorial ?
I am also interesting for your service for wordpress clone theme. And for this I am agree to pay your charges. Please reply me as soon as possible.
My Email is : patelsanjay99@hotmail.com
sanju9999 is offline  
Unread 1st Sep 2013, 01:27 AM   #7
Warrior Member
 
Join Date: 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Add Script to WP for beginning download afile after 5 seconds
Share on: 
fb share twitter share gplus share more share

Originally Posted by anestbaik View Post

and the complete code are ->

file link-download.html
<!-- this is link to click that will show the new window for download file -->
<a href="http://your-domain.com/your-file-download.html">CLICK HERE TO DOWNLOAD</a>


file your-file-download.html
<html>
<head>
<script type="text/javascript" src="./jquery.js"></script>
</head>
<body>
Thank you for downloading,
wait 10 second,
see this ADS

<script>
$(window).load(function () {
setTimeout(function() {
alert('Dowload BEGIN');
}, 10000);
});
</script>

</body>
</html>
Hello anestbaik

I want to create downloading link should open in new download page with 5 second limit and advertisement. The demo site is : Download Notebook Drivers, Software, Manuals.
I want create this tutorial on my website : A website about download drivers, software update, hardware. So how can i do this? Please help me.
Thanks in advance.
sanju9999 is offline  
Closed Thread


Bookmarks

Tags
add, afile, beginning, download, script, seconds, wordpress


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 10:27 AM.