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>
&lt;head&gt;
&lt;script language="JavaScript"&gt;
&lt;!--

function french_selected() {
document.cookie = 'language=french';
window.location.href = 'site.html'
}

function english_selected() {
document.cookie = 'language=english';
this.location.href = 'site.html';

}

//--&gt;
&lt;/script&gt;
&lt;/head&gt;


&lt;body&gt;
&lt;a href="#" onClick="french_selected()"&gt;French version&lt;/a&gt;&lt;br&gt;
&lt;a href="#" onClick="english_selected()"&gt;English version&lt;/a&gt;
&lt;/body&gt;
</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>
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>

Reply to this topic