Solved

Status bar text for a link

Posted on 1998-06-29
4
135 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Bootstap Icons 3 43
How can I do a Select All on this page? 8 36
Why isn't the "Select Name" showing on this form drop down 4 21
Objects on Same Line 2 18
Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

911 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

25 Experts available now in Live!

Get 1:1 Help Now