Solved

Slide show of URLs in page frame

Posted on 2001-06-16
2
186 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
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
"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,…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
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.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now