Solved

Status bar text for a link

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

820 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