aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "javascript" Watch "javascript" New topic
Author

javascript

Daan Mathot
Greenhorn

Joined: Aug 26, 2001
Posts: 1
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).]
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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).]
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
I am moving this over to the JavaScript forum.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javascript
 
Similar Threads
INCLUDES.DBconnection error
How many people share your name?
Please solve my "java.lang.NullPointerException" error
Problem with iframe in mozilla browser
JSP form with four inputs and one submit button