PDA

View Full Version : Refresh Once! and I'm Done



TheBrownRecluse
06-22-2007, 03:03 PM
I'm doing this on a website for a client "<meta http-equiv=refresh content=3600>" which shows that the website will refresh every hour.

The problem is, the browser doesn't parse the CSS consistently on IE 6. It's only after the person refreshes the website that the website is then viewed correctly.

I want the meta tag command to refresh one second after the website comes up, and then never again. Could someone show me?

I've tried "<meta http-equiv=refresh content=1, 3600>" where, in my thinking, it would refresh once, and then wouldn't refresh for another hour or so.

Let me know. Thx

-Clif

by the way, the website is www.iseoyou.com/debtzero/index.html

DaveSawers
06-23-2007, 09:19 AM
Quite why you think anyone would hang around on a site for an hour before it refreshes is beyond my understanding.

If the CSS doesn't work properly without a refresh, then there's probably a coding error somewhere that needs sorting out.

jtracking
06-23-2007, 07:15 PM
That's funny TheBrownRecluse...people in the 80s where wondering what computers would be good for...there's always a reason but anyways DS, I've tried writing something for you below but when I tried it on my server it fricken went nuts and refreshed in a loop indefinitely...

This could be a starter for you...combined with your meta refresh tag the only thing is with this it would reload the page and the meta tag would refresh the page again thus refreshing it twice an our within seconds...I'm thinking PHP might help you...

<script>
<!--

setTimeout("SetPgColor()", 60000);
window.location.replace("http://www.yoursite.com")

// -->
</script>

There is something I found for you here that may help you on your way....javascript page refresh [Archive] - CodingForums.com (http://codingforums.com/archive/index.php?t-59435.html)