Help - Search - Members - Calendar
Full Version: Redirection
HTMLHelp Forums > Web Authoring > General Web Design
lab9657
Okay, I Have All My Code In A Frame, Because iWeb Makes Me Do It That Way.
I have an intro video, and I have an auto redirect after 20 seconds.
The video is not in the frame, so I need my redirect to target outside the frame.



Here is my redirection code:

I Know It Does Not Work, Because I have tested it.



My Main Question


Did I Put The Target In The Wrong Spot?



My Website:

[url=http://web.me.com/billingtonstudio/Lukes_Theater_Company/Intro.html][/url]

pandy
There's neither an iframe nor a meta refresh in the page at http://web.me.com/billingtonstudio/Lukes_T...pany/Intro.html .
lab9657
It's hidden, the frame url is http://web.me.com/billingtonstudio/Lukes_T...et0_markup.html, sorry if I don't understand, I am only 13
lab9657
It probably is only visible on a mac, as thats what this site is intended for.
lab9657
Try Looking again, I moved the frame to the bottom so it is visible after the 20 seconds
pandy
Hidden how? Does JavaScript write the IFRAME?

Anyway, you can't use target with a meta refresh. Look here http://htmlhelp.com/reference/html40/head/meta.html . Only the attributes listed there can be used.

You can do it with JS.
CODE
top.location.href = http://web.me.com/billingtonstudio/Lukes_Theater_Company/Home.html;
lab9657
QUOTE(pandy @ Feb 17 2009, 12:00 AM) *

Hidden how? Does JavaScript write the IFRAME?

Anyway, you can't use target with a meta refresh. Look here http://htmlhelp.com/reference/html40/head/meta.html . Only the attributes listed there can be used.

You can do it with JS.
CODE
top.location.href = http://web.me.com/billingtonstudio/Lukes_Theater_Company/Home.html;


Thank You!!!
Great Grey Guppy
I use this code to temporarily redirect pages I don't want people to visit anymore to new pages on my site.

Place this code on the page you wish to redirect.
QUOTE
<p><iframe src="http://www.yourdomain.com.au/redirect.html" width="1" height="1" align="center"></iframe></p>

Somewhere on your own domain create the following file: redirect.html
QUOTE
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<script language="JavaScript">
var time = null
function move() {
top.location.href = 'http://www.yourdomain.com.au/target.html'
}
//-->
</script>
<title>Your Name</title>
</head>
<body onload="timer=setTimeout('move()',200)">
Move Me!
</body>
</html>

By loading the separate file redirect.html in the IFrame you can run the embeded Javascript to control the parent window and turn it off if you need allow access to originating page for any reason.
remshad
I think by embeding java script your problem may solve
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.