Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

heirarchical menus loading into frames

Status
Not open for further replies.

altaratz

ISP
Apr 15, 2001
73
US
I've got a heirarchical menu loading into a main frame from a nav frame. The nav frame call the arrays of links from an outside .js file as follows:

<P><onMouseOver=&quot;popUp('HM_Menu3',event)&quot; onMouseOut=&quot;popDown('HM_Menu3')&quot; onClick=&quot;return false&quot;>Link Name</A></P><br><br>

and the outside js file looks like this:

HM_Array3 = [
[120, // menu width
80, // left_position
70, // top_position
&quot;black&quot;, // font_color
&quot;yellow&quot;, // mouseover_font_color
&quot;yellow&quot;, // background_color
&quot;black&quot;, // mouseover_background_color
&quot;black&quot;, // border_color
&quot;black&quot;, // separator_color
0, // top_is_permanent
0, // top_is_horizontal
0, // tree_is_horizontal
1, // position_under
1, // top_more_images_visible
1, // tree_more_images_visible
&quot;null&quot;, // evaluate_upon_tree_show
&quot;null&quot;, // evaluate_upon_tree_hide
], //right-to-left

[&quot;Dining Out&quot;,&quot;&quot;,1,0,1],
[&quot;Entertainment & Arts&quot;,&quot;],
[&quot;Late Night&quot;,&quot;]
]

HM_Array3_1 = [
[],
[&quot;Chinese&quot;,&quot;],
[&quot;Delivery&quot;,&quot;],
[&quot;Diner&quot;,&quot;],
[&quot;French&quot;,&quot;],
[&quot;Italian&quot;,&quot;],
[&quot;Japanese&quot;,&quot;],
]

I can't figure out where to target the href into the main frame, as opposed to the nav bar frame. - Any feedback?
 
<onMouseover=&quot;javascript:parent.main.location=' src=&quot;
Can someone please tell me how to make this code work! - It's displaying in a frame environment, and I want the link to happen upon rolling over the &quot;pre.gif,&quot; however, the link doesn't work, and when it used to, it would just open up a new window - and I want it to load into the frame.

Thanks for any responses!
 
Try this

<img onmouseover=&quot;document.frames.framename.location.href=' src=&quot;
Where framename is the name you have specified in your frameset.

I have a problem related to this, how do you stop the page from loading again if the onmouseover is tripped again???

Any ideas, please help

Mr G, The Beast
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top