Log in

View Full Version : javascript


SwootH
August 26th, 2001, 07:10
Hey,

Not quit sure that this is the right forum to ask this question ;D

But I'll give it a try

I am really a newbie, i am the newbie of the newbies, and this is my question

I am working on a site about the soccer team of my friends, caus i allways have problems with the resolution of the users, i decided to use frames, only there is one problem.
I am using a menu, cool menu(=that's the name ), everything worked fine till i wanted to change the urls. This is the code of my menu:


<table bgcolor="black" border="1" bordercolor="#124581" cellpadding="2" cellspacing="0">

<tr>
<td width="165" height="30"class="menu" bordercolor="black" id="choice1" style="background-color:#ffffff; cursor:hand" onmouseover="movein(choice1,'Back Home')" onmouseout="moveout(choice1)" onclick="location.href='http://www.javafile.com'" target="head">
<center>Home</center></td></tr>

<td class="menu" height="30" bordercolor="black" id="choice2" style="background-color:#ffffff; cursor:hand" onmouseover="movein(choice2,'De Stand')" onmouseout="moveout(choice2)" onclick="location.href='http://www.10mbfree.com/lange/home.html'">
<center>Competitie</center></td></tr>

<td class="menu" height="30" bordercolor="black" id="choice3" style="background-color:#ffffff; cursor:hand" onmouseover="movein(choice3,'Laatste wedstijd')" onmouseout="moveout(choice3)" onclick="location.href='http://www.bravenet.com'"><center>Verslag</center></td></tr>

<td class="menu" height="30" bordercolor="black" id="choice4" style="background-color:#ffffff; cursor:hand" onmouseover="movein(choice4,'Fixtures')" onmouseout="moveout(choice4)" onclick="location.href='http://www.bravenet.com'"><center>Schema</center></td></tr>

<td class="menu" height="30" bordercolor="black" id="choice5" style="background-color:#ffffff; cursor:hand" onmouseover="movein(choice5,'Fotos+Stats')" onmouseout="moveout(choice5)" onclick="location.href='http://www.linkcounter.com/ea.exe?ref&claeld&1'"><center>De Spelers</center></td></tr>

<td class="menu" height="30" bordercolor="black" id="choice6" style="background-color:#ffffff; cursor:hand" onmouseover="movein(choice6,'De Trots')" onmouseout="moveout(choice6)" onclick="location.href='http://www.linkcounter.com/ea.exe?ref&claeld&1'"><center>Het Stadion</center></td></tr>

<td class="menu" height="30" bordercolor="black" id="choice7" style="background-color:#ffffff; cursor:hand" onmouseover="movein(choice7,'Poll vd week')" onmouseout="moveout(choice7)" onclick="location.href='http://www.linkcounter.com/ea.exe?ref&claeld&1'"><center>De Mini Poll</center></td></tr>

<td class="menu" height="30" bordercolor="black" id="choice8" style="background-color:#ffffff; cursor:hand" onmouseover="movein(choice8,'Commentaar?')" onmouseout="moveout(choice8)" onclick="location.href='http://www.linkcounter.com/ea.exe?ref&claeld&1'"><center>Het Forum</center></td></tr>

<td class="menu" height="30" bordercolor="black" id="choice9" style="background-color:#ffffff; cursor:hand" onmouseover="movein(choice9,'Defend het Doel!')" onmouseout="moveout(choice9)" onclick="location.href='http://www.linkcounter.com/ea.exe?ref&claeld&1'"><center>Voetbal Spel</center></td></tr>

<td class="menu" height="30" bordercolor="black" id="choice10" style="background-color:#ffffff; cursor:hand" onmouseover="movein(choice10,'Op/Aanmerkingen')" onmouseout="moveout(choice10)" onclick="location.href='http://www.linkcounter.com/ea.exe?ref&claeld&1'"><center>Contact</center></td></tr>

<tr>
<td bordercolor="black" bgcolor="#124581" height="28"><center><font id="description" face="Verdana" size="5" color="white"></font></td></tr>
</table>

This doesn't look to difficult does it?

The menu is in the left frame and there is also a right frame, where i want to display the content. So i have to use targets.
I tried this:
"location.href='http://www.javafile.com'" target="head">
But with this the page i want to open doesn't open in the head frame but in the nav frame, the frame of my menu.

Does anyone no what i have to change or correct?

Thanks in advance,

EbboRazor

Wizard
August 27th, 2001, 02:34
May I suggest :

http://rummelplatz.uni-mannheim.de/~skoch/js/part3/part3.htm#js

Wizard