Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

javascript  RSS feed

Daan Mathot
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not quite sure that this is the right forum to ask this question (maybe cause it's JavaScript instead of Java).
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, cause I always 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=''" 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=''">
< 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=''">< 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=''">< 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=''">< 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=''">< 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=''">< 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(choice" onclick="location.href=''">< 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=''">< 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=''">< center>Contact< /center>< /td>< /tr>
< tr>
< 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=''" 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 know what I have to change or correct?
Thanks in advance,
(edited by Cindy to put spaces in html tags so they would display instead of executing)

[This message has been edited by Cindy Glass (edited August 26, 2001).]
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can we see your frameset? And just a question. Why do you use
Why don't use.
a href="yoururl" target="youframe"
I noticed that you did have an target in your first td but not in the rest.
By the way. There is a javascript forum! Maybe if you ask the question there!
[This message has been edited by Mathias P.W Nilsson (edited August 26, 2001).]
Cindy Glass
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am moving this over to the JavaScript forum.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!