PC Review


Reply
Thread Tools Rate Thread

Button: to stop - setTimeout

 
 
wfcook
Guest
Posts: n/a
 
      10th Aug 2004
I used the following to do this but it does not 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>

Any Ideas where I made my errors, I get no button.

Thanks
 
Reply With Quote
 
 
 
 
David Berry
Guest
Posts: n/a
 
      10th Aug 2004
I'm not sure I understand the question. Do you mean you want to see a form
button on the page? Of so, you need a tag to display it. You have the
following line:

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

Standing alone. It should be like this:

<input type="button" value="Button" name="Mybtn"
onclick="clearTimeout(mypageTimer); return false;">


--
David Berry - MCP
Microsoft MVP - FrontPage
FrontPage Support: http://www.net-sites.com/sitebuilder/
-----------------------------------
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
-----------------------------------

"wfcook" <(E-Mail Removed)> wrote in message
news:399d01c47ef9$fab41980$(E-Mail Removed)...
> I used the following to do this but it does not 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>
>
> Any Ideas where I made my errors, I get no button.
>
> Thanks



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to use setTimeout function qasim Microsoft ASP .NET 2 25th Feb 2009 05:48 PM
window.setTimeout not working =?Utf-8?B?UmVhZ3VuIEJhbg==?= Windows XP Internet Explorer 3 24th Aug 2006 10:14 PM
javascript setTimeout does not work =?Utf-8?B?RQ==?= Microsoft ASP .NET 4 2nd May 2006 09:21 PM
Settimeout and discussion toolbar crashes IE??? NeedYourHelp Windows XP Internet Explorer 1 20th Sep 2004 11:33 PM
Smart navigation and js setTimeout Andy Pickering Microsoft ASP .NET 1 27th Oct 2003 10:51 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:46 PM.