• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

javascript

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey,
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='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(choice" 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>
< 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 know what I have to change or correct?
Thanks in advance,
EbboRazor
(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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can we see your frameset? And just a question. Why do you use
onclick="location.href'yoururl'"
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).]
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am moving this over to the JavaScript forum.
 
reply
    Bookmark Topic Watch Topic
  • New Topic