Solved

Slide show of URLs in page frame

Posted on 2001-06-16
2
194 Views
Last Modified: 2012-05-04
We have 4 websites with different URLs.  I would like to make a demo.htm page on my desktop which will rotate through each page in the frame continuously after 30 seconds or so.

I tried 4 different pages with the next url in it:
<html>
<head>
<title>Welcome the show</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<frameset frameborder=0 framespacing=0 border=0 rows="100%,*" noresize>
<frame name="TOPFRAME" src="http://www.page1.com/" noresize>
<frame src="UntitledFrame-9"></frameset><noframes></noframes>
</head>
<BODY onLoad=window.setTimeout("location.href='ms.htm'",100000)></body>
</html>

The page opens but doesn't forward to ms.htm???
0
Comment
Question by:sluggo050499
2 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6198794
The syntax is wrong.  The body is ignored because frameset and body don't go in the same document,
and the onload would be ignored because the quotes are wrong

The frameset should be:
<html>
<head>
<title>Welcome the show</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<frameset frameborder=0 framespacing=0 border=0 rows="100%,*" noresize>
<frame name="TOPFRAME" src="http://www.page1.com/" noresize>
<frame src="UntitledFrame-9"></frameset><noframes></noframes>
</head>
</html>

Then the body tag for the swapable page would be:

<BODY onLoad="setTimeout('window.location=\"ms.htm\"',100000)">

That is a 100 second delay BTW.

Cd&
0
 
LVL 9

Accepted Solution

by:
TTom earned 50 total points
ID: 6199146
Actually, you could probably put a script to rotate the pages into your frameset page.  Something like:

<html>
<head>
<title>Welcome the show</title>
<script>
var site1 = "http://www.yahoo.com"
var site2 = "http://www.microsoft.com"
var site3 = "http://www.amazon.com"
var site4 = "http://www.myserver.com"
var Site = setInterval("rotate()",30000)
x = 1
function rotate() {
   if (x == 4) x = 1;
   TOPFRAME.location.href = eval("site" + x)
   x += 1
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<frameset frameborder=0 framespacing=0 border=0 rows="100%,*" noresize>
<frame name="TOPFRAME" src="http://www.page1.com/" noresize>
<frame src="UntitledFrame-9"></frameset><noframes></noframes>
</head>
</html>

Works pretty well for me!

Tom
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question