6 replies [Last post]
Franky Four Fingers
Offline
Regular
Last seen: 17 years 6 weeks ago
Timezone: GMT+1
Joined: 2004-03-23
Posts: 17
Points: 0

Hi there, i put this script below inside a js file, with a link in my menu frame to this file.

function showmenu(){ 

document.write('<a href="frameset1.htm" target="_top">|	Home	|	</a>'); 
document.write('<a href="begin.htm" target="bottommenu" onmouseover="parent.bottommenu.location.href="bottommenu/zeivermenu.htm''; return true">Aover Os	|	</a>'); 
document.write('<a href="/touring.htm">Gastebook	|	</a>'); 
document.write('<a href="/flatwater.htm">Sjaele Zeiver	|	</a>'); 
document.write('<a href="/bedginners.htm">Fotoos	|	</a>'); 
document.write('<a href="/bdeginners.htm">Merchandise	|	</a>'); 
document.write('<a href="/test.htm">Links	|	</a>'); 
document.write('<a href="/test1.htm">Contact	|	</a>'); 


} 

and this is my frameset

<frameset rows="120,20,*,20,80" frameborder="NO" border="0" framespacing="0">
  <frame src="top.htm" name="topFrame" scrolling="NO"  title="topFrame" >
  <frame src="menu.htm" name="menuframe" scrolling="NO" noresize title="menuFrame" >
  <frame src="begin.htm" name="mainframe" title="mainframe" scrolling="auto">
  <frame src="bottommenu.htm" name="bottommenu" scrolling="NO" noresize title="bottommenu">
  <frame src="bottom.htm" name="bottomframe" scrolling="NO" noresize title="onder">
</frameset><noframes></noframes>

but somehow when loading this frameset i get an syntax error and I really have no clue how this is possible, as far as i know everything is just fine, pleas help! I think the problem lies with the second menu item...but i don't know where...

Tags:
MalphasWats
Offline
Regular
Last seen: 14 years 27 weeks ago
Joined: 2004-03-22
Posts: 45
Points: 0

onmouseover within javascript

been a while since I've done any javascript, but from a cursory look at your code, this line looks a bit suspect:

document.write('<a href="begin.htm" target="bottommenu" onmouseover="parent.bottommenu.location.href="bottommenu/zeivermenu.htm''; return true">Aover Os   |   </a>'); 

the double quote after the zievermenu.htm isn't a double quote, it's 2 singles, and it's got a semicolon after it, so the jscript parser is probably going to get a bit upset by it...

http//www.michael-watts.com

"Never put your face in a bag of angry squirrels"

Franky Four Fingers
Offline
Regular
Last seen: 17 years 6 weeks ago
Timezone: GMT+1
Joined: 2004-03-23
Posts: 17
Points: 0

onmouseover within javascript

so I should make a double quote of it and laeve the semicolumn out? or do you have any other suggestions how to do this..?

MalphasWats
Offline
Regular
Last seen: 14 years 27 weeks ago
Joined: 2004-03-22
Posts: 45
Points: 0

onmouseover within javascript

I'm not sure about the semi-colon, just try replacing the 2 single quotes with a double.

http//www.michael-watts.com

"Never put your face in a bag of angry squirrels"

tommuir
Offline
Regular
Upper east side
Last seen: 14 years 21 weeks ago
Upper east side
Joined: 2004-04-05
Posts: 40
Points: 0

onmouseover within javascript

Why not just use layers? Javascript will clear the page when A write() ; is called after it has loaded to start a new dataflow. Try using layers.

i am not here

Franky Four Fingers
Offline
Regular
Last seen: 17 years 6 weeks ago
Timezone: GMT+1
Joined: 2004-03-23
Posts: 17
Points: 0

onmouseover within javascript

how do you mean this exactly, i'm not that familiar with layers? or javascript...so if you could give me an example or something... :?

thanks for the tip...

tommuir
Offline
Regular
Upper east side
Last seen: 14 years 21 weeks ago
Upper east side
Joined: 2004-04-05
Posts: 40
Points: 0

onmouseover within javascript

<div id="layer1" >

<a href="#" onclick="window.content.location='http://www.bob.com' ; document.getElementById('layer1').style.visibility='hidden' >

BOB

</a>
</div>

[note]
have a "dead" link in the below DIV
[/note]

or you could change the z-index.

[edit] wrong topic sorry :oops:

i am not here