Forums
This topic is locked
AARRGHH!! I'm going CooCoo! :)
Posted 13 Jun 2002 21:06:06
1
has voted
13 Jun 2002 21:06:06 Tony Chronopoulos posted:
Hello!I can't figure something out. I have a link on page 1 which links to page 2. <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
The code works fine on PC but on MAC, it won't execute the location.href part. I'm just stuck there at the 1st page.
Here is my code:
<pre id=code><font face=courier size=2 id=code>
<head>
<script language="JavaScript">
<!--
function french_selected() {
document.cookie = 'language=french';
window.location.href = 'site.html'
}
function english_selected() {
document.cookie = 'language=english';
this.location.href = 'site.html';
}
//-->
</script>
</head>
<body>
<a href="#" onClick="french_selected()">French version</a><br>
<a href="#" onClick="english_selected()">English version</a>
</body>
</font id=code></pre id=code>
btw: Is that the way you use cookies? heheh..
Thanks,
Tony
___________________
Lunch is on me! <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>
Replies
Replied 19 Jun 2002 06:13:34
19 Jun 2002 06:13:34 aegis kleais replied:
You're missing a ';' on the end of the window.location.href = 'site.html' line. See if that helps.
Replied 19 Jun 2002 15:56:30
19 Jun 2002 15:56:30 Tony Chronopoulos replied:
I tried it, but it still doesn't work on the damn MAC! snif snif..
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
You're missing a ';' on the end of the window.location.href = 'site.html' line. See if that helps.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
___________________
Lunch is on me! <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
You're missing a ';' on the end of the window.location.href = 'site.html' line. See if that helps.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
___________________
Lunch is on me! <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>
Replied 19 Jun 2002 16:35:58
19 Jun 2002 16:35:58 Julio Taylor replied:
So where's this lunch then <img src=../images/dmxzone/forum/icon_smile_tongue.gif border=0 align=middle>
Replied 19 Jun 2002 16:38:27
19 Jun 2002 16:38:27 Tony Chronopoulos replied:
In Montreal! Lunch is on me, but you pay for your flight down! hehehe.
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
So where's this lunch then <img src=../images/dmxzone/forum/icon_smile_tongue.gif border=0 align=middle>
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
___________________
Lunch is on me! <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
So where's this lunch then <img src=../images/dmxzone/forum/icon_smile_tongue.gif border=0 align=middle>
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
___________________
Lunch is on me! <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>