Log In · Register

 
 
Closed TopicStart new topic
Refreshing Iframes
sikdragon
post Nov 19 2004, 12:02 AM
Post #1


Bardic Nation
******

Group: Member
Posts: 1,113
Joined: Aug 2004
Member No: 38,059



Not exactly for xanga.

I was wondering is there some special code to make an Iframe autorefresh without having access to the actual src?

I've tried a bunch of stuff with javascript and Dhtml, but i'm way over my head here, i guess.

This is for Chatterbox, I found a way to completely customize it. The problem is, the only way to see new posts is to right click and refresh it.
 
*[2]Nekked*
post Nov 19 2004, 09:05 AM
Post #2





Guest






CODE
<!-- begin code provided by createblog.com -->
<script>
<!--



//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>
<!-- end code provided by createblog.com -->
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: