Pausing a refresh command?

W

wfcook

I have a web page that appears when a members name is
clicked.

I have it set to refresh, with this line:

<meta http-equiv="refresh"
content="3;URL=http://home.houston.rr.com/wfcook/Members.ht
m">

Which, should be enought time to view the members picture.

However, If someone would like the page to stay open
longer, is there way to pause the refresh command?

Before the "page exit" transistion takes place, with:

<meta http-equiv="Page-Exit" content="revealTrans
(Duration=5.0,Transition=2)">
 
J

Jens Peter Karlsen[FP-MVP]

No.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.

-----Original Message-----
From: wfcook [mailto:[email protected]]
Posted At: 09. august 2004 20:25
Posted To: microsoft.public.frontpage.client
Conversation: Pausing a refresh command?
Subject: Pausing a refresh command?


However, If someone would like the page to stay open longer, is there
way to pause the refresh command?
 
M

MD Websunlimited

Sorry no.

Instead of the meta refresh use a JavaScript to control the refresh and use a button to delete the setTimeout handle.

function newPage(URL) {

window.location = URL;
}

In the body tag

onload="mypageTimer = window.setTimeout(newPage('mypage.htm') 60000 * 3);

Then an anchor tag with

onclick="clearTimeout(mypageTimer); return false;"
 
J

Jim Buyens

I can't imagine why you'd want to do this (perhaps a game
of concentration?) but here's a simple example:

<html>
<head>
<title>Auto-return</title>
<script>
function clickAutoRtn(){
if (document.forms[0].chkAutoRtn.checked){
setAutoRtn();
}else{
window.clearTimeout(iTimerID);
}
}
function setAutoRtn(){
iTimerID = window.setTimeout(
"document.location.href='/wfcook/Members.htm'", 3000);
}
</script>
</head>
<body onload="setAutoRtn();">
<form method="POST" >
<p><input type="checkbox" checked name="chkAutoRtn"
value="ON" onclick="clickAutoRtn();">Auto-return</p>
</form>
</body>
</html>

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
W

wfcook

I can't seem to get to work.
What did i do wrong?

<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Timer Test</title>
<style fprolloverstyle>A:hover {color: red; font-weight:
bold}
</style>
<meta http-equiv="Page-Exit" content="revealTrans
(Duration=3.0,Transition=6)">
<meta name="Microsoft Theme" content="copy-of-expedition
001">
<meta name="Microsoft Border" content="none">

<body>
<metaname= "function newPage(URL)" {window.location =
URL;http://home.houston.rr.com/wfcook/Members.htm}
}
<onload="mypageTimer = window.setTimeout(newPage
('mypage.htm') 100 * 3);
</>
</head>

<body>

<p align="center">&nbsp;</p>
<p align="center">&nbsp;&nbsp;
<font face="Comic Sans MS" size="5" color="#FF9900">&nbsp;
</font>&nbsp;<img border="0" src="Haushalter.jpg"
width="450" height="363"></p>
<p align="center"><font face="Comic Sans MS" size="4"
color="#800000">John &amp;
Susan Haushalter</font></p>

<onclick="clearTimeout(mypageTimer); return false;"

</body>

</html>

Could you look it over and make changes?

Thanks
-----Original Message-----
Sorry no.

Instead of the meta refresh use a JavaScript to control
the refresh and use a button to delete the setTimeout
handle.
function newPage(URL) {

window.location = URL;
}

In the body tag

onload="mypageTimer = window.setTimeout(newPage ('mypage.htm') 60000 * 3);

Then an anchor tag with

onclick="clearTimeout(mypageTimer); return false;"


--
Mike -- FrontPage MVP '97-'02
J-Bots 2004 Released Special Pricing
http://www.websunlimited.com
FrontPage Add-ins Since '97 FP 2003 / 2002 / 2000 Compatible

"wfcook" <[email protected]> wrote in
message news:[email protected]...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top