Mouseover Popup Message - display message in another frame.

Posted on 2003-03-10
Medium Priority
Last Modified: 2006-11-17
I thought this would be simple but I have having problems.  I have a frames page with a row along the top(named top), and 2 columns below.  In both columns (named left & right) I have links that onmouseover a description of the link will POP UP and will disappear again onmouseout.  This all works good.

What I need is for the pop-up message to appear in a DIV in the TOP frame when the mouse is placed over a link in either the LEFT or RIGHT frames.  Basically it will act as a HELP or INSTRUCTION box.  I also need the DIV in the TOP frame to display a default message like "Place your Mouse over a Link For Instructions" whenever the mouse IS NOT over a link - onmouseout I guess.

I tried to get the message to display in another frame by changing the JS by adding a parent.top:

if(navigator.family =="nn4") {
else if(navigator.family =="ie4"){
else if(navigator.family =="gecko"){

 but that didn't work.  I'm pretty sure that I can position it in the top frame, just not sure how to get it to appear there.

I have an example page posted at http://www.laservalley.com/popups.htm
if someone wants to take a shot at it.  I only have 30 points left - hope thats enough.

Thanks Max
Question by:MaxwellTurner
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 33

Accepted Solution

knightEknight earned 120 total points
ID: 8105337
"top" is a reserved word in client-javascript.  Try renaming your "top" frame to "topframe" or something else.  Then change the code accordingly and retest.  Let us know if you still have the problem.

Author Comment

ID: 8106391
Works good!  I'm fairly new to javascript & had no idea that "top" was reserved - I do now!



Author Comment

ID: 8106395
Thanks again.

LVL 33

Expert Comment

ID: 8106415
glad to help!  Thanks for the A.

FYI - top refers to the top level window -- the one that contains the frameset (if there is a frameset).  If there is no frameset, then top == self == window .

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question