Solved

Status bar text for a link

Posted on 1998-06-29
4
142 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
[X]
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
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…
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…

634 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