how to use this?

Status
Not open for further replies.

NagpurDaMunda

In the zone
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>
 
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.
 
OP
N

NagpurDaMunda

In the zone
siddharth_2463107 said:
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 said:
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
 
OP
N

NagpurDaMunda

In the zone
it_waaznt_me said:
This is built in in Maxthon
Maxthon > Tools > Auto Refresh Tab > Use Auto Refresh (interval)

thanks ll try Maxthon
__________
siddharth_2463107 said:
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:
Status
Not open for further replies.
Top Bottom