Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 14-02-2007, 10:15 AM   #1 (permalink)
In The Zone
 
Join Date: Jul 2005
Location: come on u know it
Posts: 428
Default how to use this?


from where to copy n paste?? i m unable to paste in IE7..why ??

<script>
<!--

/*
Auto Refresh Page with Time script
By JavaScript Kit (javascriptkit.com)
Over 200+ free scripts here!
*/

//enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59
var limit="0:30"

if (document.images){
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1
}
function beginrefresh(){
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
if (curmin!=0)
curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!"
else
curtime=cursec+" seconds left until page refresh!"
window.status=curtime
setTimeout("beginrefresh()",1000)
}
}

window.onload=beginrefresh
//-->
</script>
NagpurDaMunda is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 14-02-2007, 04:42 PM   #2 (permalink)
In The Zone
 
Join Date: Sep 2006
Posts: 319
Lightbulb Re: how to use this?

This is a javascript code
Open notepad
and paste the following code:-

<script>
<!--

/*
Auto Refresh Page with Time script
By JavaScript Kit (javascriptkit.com)
Over 200+ free scripts here!
*/

//enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59
var limit="0:30"

if (document.images){
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1
}
function beginrefresh(){
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
if (curmin!=0)
curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!"
else
curtime=cursec+" seconds left until page refresh!"
window.status=curtime
setTimeout("beginrefresh()",1000)
}
}

window.onload=beginrefresh
//-->
</script>


and save it as .js

and then call it from ur browser
or if .js doesnt work then save it as .htm or .html

You can also embeed it with ur website to autorefresh ur site after some time.
__________________
Visit now ;)
www.indiandevs.com - for great free designs :)
www.indiandevs.com/technoworld/ for latest technology news and tricks
Siddharth Maheshwari is offline  
Old 14-02-2007, 07:16 PM   #3 (permalink)
In The Zone
 
Join Date: Jul 2005
Location: come on u know it
Posts: 428
Question Re: how to use this?

Quote:
Originally Posted by siddharth_2463107
This is a javascript code
Open notepad
and paste the following code:-

<script>
<!--

/*
Auto Refresh Page with Time script
By JavaScript Kit (javascriptkit.com)
Over 200+ free scripts here!
*/

//enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59
var limit="0:30"

if (document.images){
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1
}
function beginrefresh(){
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
if (curmin!=0)
curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!"
else
curtime=cursec+" seconds left until page refresh!"
window.status=curtime
setTimeout("beginrefresh()",1000)
}
}

window.onload=beginrefresh
//-->
</script>


and save it as .js

and then call it from ur browser
or if .js doesnt work then save it as .htm or .html

You can also embeed it with ur website to autorefresh ur site after some time.
i want to use it for every web page which i surf ...how to do it?
NagpurDaMunda is offline  
Old 14-02-2007, 08:07 PM   #4 (permalink)
In The Zone
 
Join Date: Sep 2006
Posts: 319
Lightbulb Re: how to use this?

Quote:
Originally Posted by NagpurDaMunda
i want to use it for every web page which i surf ...how to do it?
Then u have to use opera for this cause as it suports the use of java script in sites.

open any site in opera and goto Tools>Quick Preferences>Edit Site Preferences
from here select scripting tab and now check “Enable Javascript” option and at the bottom of this you will find “User Javascript files”. Click on choose and select the folder in which you have saved the .js file.


For other browsers ( source for this )
In Firefox, you need to download the extension Greasemonkey
In IE try it with Trixie. But, cant garauntee that it will work.
Some more for iE : 1 2 .


Remeber save this script as .js only

Note:- IF u r writing a mail and suddenly the page refreshes the n uwill loose what hav u written
__________________
Visit now ;)
www.indiandevs.com - for great free designs :)
www.indiandevs.com/technoworld/ for latest technology news and tricks
Siddharth Maheshwari is offline  
Old 15-02-2007, 09:57 AM   #5 (permalink)
Coming back to life ..
 
it_waaznt_me's Avatar
 
Join Date: Nov 2003
Location: A bit closer to heaven
Posts: 1,997
Default Re: how to use this?

This is built in in Maxthon
Maxthon > Tools > Auto Refresh Tab > Use Auto Refresh (interval)
__________________
Sleight of hand and twist of fate...
On a bed of nails she makes me wait...
And I wait without you ...
With or without you ..
----
Batty = Too Busy Now !!!
it_waaznt_me is offline  
Old 15-02-2007, 10:38 AM   #6 (permalink)
In The Zone
 
Join Date: Jul 2005
Location: come on u know it
Posts: 428
Default Re: how to use this?

Quote:
Originally Posted by it_waaznt_me
This is built in in Maxthon
Maxthon > Tools > Auto Refresh Tab > Use Auto Refresh (interval)
thanks ll try Maxthon
__________
Quote:
Originally Posted by siddharth_2463107
Then u have to use opera for this cause as it suports the use of java script in sites.

open any site in opera and goto Tools>Quick Preferences>Edit Site Preferences
from here select scripting tab and now check “Enable Javascript” option and at the bottom of this you will find “User Javascript files”. Click on choose and select the folder in which you have saved the .js file.





Remeber save this script as .js only

Note:- IF u r writing a mail and suddenly the page refreshes the n uwill loose what hav u written
i tried this but it isnt working
__________
yes maxthon solved my purpose

Last edited by NagpurDaMunda; 15-02-2007 at 10:38 AM. Reason: Automerged Doublepost
NagpurDaMunda is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by icebags
- by clinton
- by Charan

Advertisement




All times are GMT +5.5. The time now is 11:57 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2