Click to See Complete Forum and Search --> : Linking To Another Page
Killingwonder
05-27-2003, 01:58 PM
Hello,
I have the matrix source from http://javascript.internet.com
I have a question about it, If the "movie" has played, then i would like it to go automaticly to another page, how can i do this??
Thanx
Try changing this part of the code:
setTimeout("matrix_window.close()", timer);
To this:
setTimeout("matrix_window.location.href='yourPage.html'", timer);
Nevermore
05-27-2003, 02:36 PM
Find the line
setTimeout("matrix_window.close()", timer);
and change it to:
setTimeout("matrix_window.location.href='www.yoursite.com'", timer);
Nevermore
05-27-2003, 02:38 PM
Deja Vu... very Matrix!
Killingwonder
05-27-2003, 02:43 PM
Thanx i'm gonna and give it a try!
Killingwonder
05-27-2003, 02:45 PM
Yes it's working, but i got my page in a full screen, is there away to make it just a normal page again?
Thanx anyway for the help
Nevermore
05-27-2003, 02:48 PM
Find the line:
var win_dimensions = "height = " + eval(height + 10) + ", width = " + eval(width + 30);
and change the dimensions.
e.g.
var win_dimensions = "height = 100",width=200";
Killingwonder
05-27-2003, 02:53 PM
no suc-6 i did exectly what you said :S
I think you should just take out this part:
if(matrix_window.moveTo)
matrix_window.moveTo(-10, -30);
if(matrix_window.resizeBy)
matrix_window.resizeBy(0, 50);
Jona
Nevermore
05-27-2003, 02:55 PM
Sorry, I missed that bit.
Nobody is perfect--but, hey, why not try? :D
Jona
Killingwonder
05-27-2003, 02:57 PM
Strange still nothing....
Thanx anyway
Nevermore
05-27-2003, 02:58 PM
If you managed, it would be pretty cool;
'I didn't do the work, but nobody's perfect'
'I am'
'Oh. I'd better do the work then'
LOL
Try taking out this line:
matrix_window.document.open("text/html", "replace");
We'll get this eventually....
Jona
Killingwonder
05-27-2003, 03:08 PM
LOL stil nothing
but when i remove
if(matrix_window.moveTo)
matrix_window.moveTo(-10, -30);
if(matrix_window.resizeBy)
matrix_window.resizeBy(0, 50);
then i've got a small screen for the "movie" but i want a small screen when the "movie" is stopt playing, but i think we are making progres :P
And wen i remove this link
matrix_window.document.open("text/html", "replace");
nothing happens :S
Oh, in that case.... lol
function cfen(){
matrix_window.resizeTo(screen.width-10, screen.height-10);
matrix_window.location.href="yourNextPage.html";
}
matrix_window.setTimeout("cfen();", time);