Solved

Status bar text for a link

Posted on 1998-06-29
4
134 Views
Last Modified: 2010-04-09
http://www.huron.net/~jlewis/new/index.htm is where I'm keeping the pages I'm working on.  In the main navigation frame I have links that change color when the mouse moves over the links.  When clicked on, two frames change.  i want to know if there is a way to have something show in the status bar instead of the actual link.  For example, I'd like something like "Jeffs personal pages" appear in the status bar instead of the js stuff.
0
Comment
Question by:treyjeff
  • 2
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
Holger101497 earned 30 total points
ID: 1844437
This one's fairly simple, so I'll keep it short...

Do it like this:
<a href="http://www.huron.net/~jlewis/new/whateverpage.html" onMouseOver="self.status='Jeffs personal pages';return true" onMouseOut="self.status=' ';return true;">My personal pages</a>

This is used on many pages, but most of them forget the "onmouseout" to clear the status bar when the user "leaves" the link...

Good luck!
0
 
LVL 1

Author Comment

by:treyjeff
ID: 1844438
Take a look at it, the status bar keeps putting the stuff I don't want there.
0
 
LVL 6

Expert Comment

by:Holger101497
ID: 1844439
well...
1) works for me: displays "Jeffs personal pages"
2) I guess you're using IE 4? I don't have that installed to test and probably won't before I have a hard disk to spare.
2a) the changing of link colors onmouseover doesn't work in Netscape
2b) Obvisouly, it interferes with with the link's onmouseover... of course, your <FONT>-tag's onmouseover is nested in the link's onmouseover... I'm not sure which one overrides which one...
3) There are some mistakes in your code... If you have Netscape, use "View source" and you'll see what I mean (syntax highlighting), e.g.
onmouseover="this.style.color = '#ffffff'", "window.status='testing'" OnMouseOver="window.status='See our personal pages here!'"

the double quotes after '#ffffff' close the event handler. Isn't the handler defined twice??
Try experimenting with the FONT's onmouseover-handler... try returning treu from the handler...

Let me know if that helps...
0
 
LVL 1

Author Comment

by:treyjeff
ID: 1844440
You're right, it shows in Netscape but not IE for some reason.  As for the code errors in this case, it's because I was testing things out.  
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

708 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now