View Full Version : some redirecting help please
Abaris
August 1st, 2001, 00:06
Ok i know this should be simple, but meta tags and html arent my strong point. How do I get a meta refresh to open up or refresh into a full screen window, or how if it cant be done with meta, how can it be done without having to provide a link?
Blizzy
August 1st, 2001, 00:43
<meta http-equiv="refresh" content="5; url=http://www.iwanttoredirecttothisurlplease.com" />
redirection to www.iwanttoredirect.....com in 5 seconds
lucifer
August 1st, 2001, 04:05
you want in in a new window?
use Javascript
window.open - to open a new window
setTimeout - to call it in 5 seconds
sorry it's not coded...
LastActionHero
August 1st, 2001, 04:12
Originally posted by lucifer
you want in in a new window?
use Javascript
window.open - to open a new window
setTimeout - to call it in 5 seconds
sorry it's not coded...
explain the settimeout function please. Sounds interesting.
lucifer
August 1st, 2001, 04:53
setTimeout
Evaluates an expression or calls a function once after a specified number of milliseconds elapses.Method of
window
Implemented in
JavaScript 1.0: evaluating an expression
JavaScript 1.2: calling a function
Syntax
setTimeout(expression, msec)setTimeout(function, msec[, arg1[, ..., argN]])
Parameters
expression
A string containing a JavaScript expression. The expression must be quoted; otherwise, setTimeout calls it immediately. For example, setTimeout("calcnum(3, 2)", 25).
msec
A numeric value or numeric string, in millisecond units.
function
Any function.
arg1, ..., argN
The arguments, if any, passed to function.
Description
The setTimeout method evaluates an expression or calls a function after a specified amount of time. It does not act repeatedly. For example, if a setTimeout method specifies five seconds, the expression is evaluated or the function is called after five seconds, not every five seconds. For repetitive timeouts, use the setInterval method.
setTimeout does not stall the script. The script continues immediately (not waiting for the timeout to expire). The call simply schedules a future event.
Examples
Example 1. The following example displays an alert message five seconds (5,000 milliseconds) after the user clicks a button. If the user clicks the second button before the alert message is displayed, the timeout is canceled and the alert does not display.
<SCRIPT LANGUAGE="JavaScript">function displayAlert() { alert("5 seconds have elapsed since the button was clicked.")}</SCRIPT><BODY><FORM>Click the button on the left for a reminder in 5 seconds; click the button on the right to cancel the reminder before it is displayed.<P><INPUT TYPE="button" VALUE="5-second reminder" NAME="remind_button" onClick="timerID=setTimeout('displayAlert()',5000)"><INPUT TYPE="button" VALUE="Clear the 5-second reminder" NAME="remind_disable_button" onClick="clearTimeout(timerID)"></FORM></BODY>
LastActionHero
August 1st, 2001, 05:13
Thanks!
Where did u get the whole thing from?
lucifer
August 1st, 2001, 05:38
they were from developer.netscape.com JS guide but this no longer exists :( email me and I'll send you what I have about 1MB
if anyone knows of any other JS guides/docs let me know
Abaris
August 1st, 2001, 08:19
Blizzy, the method you gave me didnt work. The content="5" sets it to refresh in 5 seconds, not open the window in full screen mode. Does anyone know how to set the meta refresh to refresh a window into full screen mode?
Blizzy
August 1st, 2001, 17:08
ohh
in that case, you cant do it simply in meta tags. gotta use javascript
Dusty
August 1st, 2001, 17:51
they were from developer.netscape.com JS guide but this no longer exists :(Sure it does, it's at http://developer.netscape.com/docs/manuals/js/client/jsref/bklast.htm
lucifer
August 1st, 2001, 18:08
still there good :) - I couldn't find it today :(
Abaris
August 1st, 2001, 18:25
WAAAAAH! now i gotta include javascript in my image map... NAOO! I dont know image maps too well, I only started using them recently never any use before... Hmm lemme put this thing on the net so you can see what I wanna do.
http://www22.brinkster.com/zaega/
I want to get it to where you click full screen and it either takes you to a page that then redirects you to the full screen browser, or takes you directly to the browser using the image map. How?
lucifer
August 1st, 2001, 18:35
all you need is a javascript thing to make it go full screen in <BODY onload="......."> I don't know how look in hotscripts or somewhere. that way you other page just has to open a page (easy solution)
Abaris
August 1st, 2001, 18:37
Thanks
meow
August 1st, 2001, 21:32
Do you really expect anyone to CHOOSE full screen? :irony: :)
Abaris
August 2nd, 2001, 17:30
Well its a comlicated story... I am figuring out a plan now. I will let you know what it is when I am done.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.