Forum Moderators: open

Message Too Old, No Replies

How to stop a "refresh"

         

colintho

3:37 pm on May 8, 2003 (gmt 0)

10+ Year Member



I'm using a "refresh" to move a page to the next page in a series of pages.

Is there some way that I can put a link on to stop the page where it is in the series of pages?

eg. if the series of pages comprises pages 1 to 10 with the refresh moving from each page after 15 seconds, and the visitor wishes to stop / hold on page 6 - how do I do this?

pages 1 to 10 each have an inline frame - whose contents are selected from a "bank" of 100 pages - dependant upon which "route - selection" is made from the previous page.

any help appreciated.

jdMorgan

3:39 pm on May 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Place a link on each page to a copy of the current page which does not contain a meta refresh tag?

Jim

colintho

3:54 pm on May 8, 2003 (gmt 0)

10+ Year Member



thanks for the reply

I simplified the task with my post - the "bank" of pages is approx 5600 website url's - which are selected at random

I would like to have some method for a visitor to "stop" on any particular page. The randomly selected "url" appears in an inline frame.

eg. start.htm (with inline frame + random url) refreshes after 15 seconds to return.htm (with inline frame + random url)

Can this be done?

colintho

3:55 pm on May 8, 2003 (gmt 0)

10+ Year Member



whoops - sorry

missed this

return.htm (with inline frame + random url) refreshes after 15 seconds to start.htm (with inline frame + random url)

korkus2000

5:22 pm on May 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Would making a link that goes to another page that passes the current page stopped be a solution or do you not want to go to a new page? Is the refresh JavaScript or a Meta refresh?

DrDoc

8:35 pm on May 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use JavaScript refresh...

<html>
<head>
<script type="text/javascript">
function refr() {
timerID = setTimeout("location.href='nextpage.html'",15000);
}
function hold() {
clearTimeout(timerID);
}
</script>
</head>
<body onload="refr()">
...
<a href="javascript:hold()">Pause</a>
...
</body>
</html>

colintho

9:51 am on May 9, 2003 (gmt 0)

10+ Year Member



Thanks DrDoc

I tried the javascript, worked well between 2 pages (pages without an inline frame)

page1 jumping to page2 to page1 to page2 etc....

When I tried this with the inline frame - it stopped working

I tried the inline frame with 2 "initial-pages"

version 1 using page3.htm (blank page with a refresh to the random selected page)

version 2 using the inline frame initial page url for the random page selector (cgi script)

I can sticky url if you want to see what I'm trying to do (just exploring an idea for a website)

Appreciate any further help / advice