Solved

hide status info on all hrefs

Posted on 2006-07-10
7
742 Views
Last Modified: 2008-01-09
how can i hide the status info from shown when user hovers over href.  I need a global solution.  There are too many links in the site to edit each one and add onmouseover='...' and onmouseout=''.....
0
Comment
Question by:ellandrd
7 Comments
 
LVL 5

Expert Comment

by:bastibartel
ID: 17073179
Hi ellandrd,
You can set the default status bar text by
   window.defaultStatus = "This is the status bar";

and some text on mouseover event by
   onmouseover="self.status='This is a link'; return true;"



Cheers!
0
 
LVL 5

Expert Comment

by:bastibartel
ID: 17073223
ellandrd,

or maybe "window.status='another text';...
instead of self.status

Cheers,
Sebastian
0
 
LVL 16

Author Comment

by:ellandrd
ID: 17073281
but this dont hide the status bar info when i hover over href's?

i want to hide the info shown in the status when the user hovers over the href.  like i said i could add onmouseover to each link but there is too many so i need a solution that will get all links in page and if user hovers over href hide status bar info...

i was trying to get this working but it dont...

function hideHrefPaths()
{
      var dlinks = document.links;

      for (var i=0; i<(dlinks.length); i++)
      {
              dlinks[i].onmouseover = "window.status='';";
      }
}
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 7

Expert Comment

by:searlas
ID: 17073427
Are you using Firefox?

The main use of this functionality is to deceive and the user, and hide the true destination of links.
As there are very few legitimate uses, it's deliberately blocked by some browsers as a security measure.

In Firefox, you can set a preference to allow this functionality by going to:
Options -> Content -> Advaned ... (next to JavaScript options)

There are two separate options under "Allow scripts to:"
'Hide the status bar' and 'Change the status bar text'

You shouldn't even be trying to do this... what's the benefit to the user?
0
 
LVL 5

Accepted Solution

by:
bastibartel earned 250 total points
ID: 17073469
ellandrd,
Sorry, Maybe this helps you


<SCRIPT LANGUAGE="JavaScript"><!--

function MyMouseOver()
{
    window.status = "Nothing";

}
window.captureEvents(Event.MOUSEOVER)
window.onmouseover = MyMouseOver
//--></SCRIPT>


Cheers,
Sebastian
0
 
LVL 5

Expert Comment

by:bastibartel
ID: 17073494
ellandrd,

Oh, and maybe wrap the event handler replacement and execute it onLoad

function SetEventHandler()
{
   window.captureEvents(Event.MOUSEOVER)
   window.onmouseover = MyMouseOver
}

<body onLoad="SetEventHandler"; ...>
0
 
LVL 17

Assisted Solution

by:gops1
gops1 earned 250 total points
ID: 17073838
Change your code slightly


     var dlinks = document.links;

     for (var i=0; i<(dlinks.length); i++)
     {
             dlinks[i].onmouseover = function(){window.status='';return true;}
     }
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
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…

775 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