473,549 Members | 2,644 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hide URL in statusbar when mouse over link

I know you can do an onmouseover/onmouseout to display alternate text for
links but Im looking for a script that would cover all links on a page
without having to add code to each link.

Is there such a thing?

I also know lots of people hate it when you do that but this is for an
application which requires IE5.5+ and there is no need for the user to view
the links.

TIA!


Jul 23 '05 #1
9 20734
"Targa" <ta************ ***********@all tel.net> wrote in message
news:J4******** *******@fe61.us enetserver.com. ..
I know you can do an onmouseover/onmouseout to display alternate text for
links but Im looking for a script that would cover all links on a page
without having to add code to each link.

Is there such a thing?

I also know lots of people hate it when you do that but this is for an
application which requires IE5.5+ and there is no need for the user to view the links.

TIA!


Is this what you want?

<style type="text/css">
a { text-decoration:none }
</style>
Jul 23 '05 #2
Thanks but no - that would just keep links from being underlined.

I need to keep the URL of all links from showing up in the statusbar.
"McKirahan" <Ne**@McKirahan .com> wrote in message
news:SdUAd.3055 80$HA.161123@at tbi_s01...
"Targa" <ta************ ***********@all tel.net> wrote in message
news:J4******** *******@fe61.us enetserver.com. ..
I know you can do an onmouseover/onmouseout to display alternate text for
links but Im looking for a script that would cover all links on a page
without having to add code to each link.

Is there such a thing?

I also know lots of people hate it when you do that but this is for an
application which requires IE5.5+ and there is no need for the user to

view
the links.

TIA!


Is this what you want?

<style type="text/css">
a { text-decoration:none }
</style>


Jul 23 '05 #3
"Targa" <ta************ ***********@all tel.net> wrote in message
news:Vf******** *******@fe61.us enetserver.com. ..
Thanks but no - that would just keep links from being underlined.

I need to keep the URL of all links from showing up in the statusbar.
"McKirahan" <Ne**@McKirahan .com> wrote in message
news:SdUAd.3055 80$HA.161123@at tbi_s01...
"Targa" <ta************ ***********@all tel.net> wrote in message
news:J4******** *******@fe61.us enetserver.com. ..
I know you can do an onmouseover/onmouseout to display alternate text for links but Im looking for a script that would cover all links on a page
without having to add code to each link.

Is there such a thing?

I also know lots of people hate it when you do that but this is for an
application which requires IE5.5+ and there is no need for the user to

view
the links.

TIA!


Is this what you want?

<style type="text/css">
a { text-decoration:none }
</style>

Your original post didn't mention the statusbar.

Will one of these work for you?

<html>
<head>
<title>hrefhide .htm</title>
<script type="text/javascript">
function a() {
location.href = "http://www.google.com/";
}
</script>
</head>
<body>
<a href="javascrip t:a()">Google</a>
<br><br>
<a href="#" onclick="locati on.href='http://www.google.com/'">Google</a>
<br><br>
<a onclick="locati on.href='http://www.google.com/'"
style="cursor:h and"><u>Google </u></a>
<br><br>
<a onclick="locati on.href='http://www.google.com/'"
style="cursor:p ointer"><u>Goog le</u></a>
</body>
</html>
Jul 23 '05 #4


Targa wrote:
Im looking for a script that would cover all links on a page
without having to add code to each link. I also know lots of people hate it when you do that but this is for an
application which requires IE5.5+ and there is no need for the user to view
the links.


Tested with IE 6:

<html lang="en">
<head>
<title>mouseove r handler</title>
<script type="text/javascript">
function mouseOutHandler (evt) {
if (typeof evt != 'undefined') {
evt = window.event;
}
window.status = '';
if (evt && typeof evt.returnValue != 'undefined') {
evt.returnValue = true;
}
if (evt && evt.preventDefa ult) {
evt.preventDefa ult();
}
return true;
}

window.onload = function (evt) {
if (document.addEv entListener) {
document.addEve ntListener(
'mouseover',
mouseOutHandler ,
false
);
}
else if (document.attac hEvent) {
document.attach Event(
'onmouseover',
mouseOutHandler
);
}
};
</script>
</head>
<body>
<p>
Does the status bar show the link URL?
<a href="http://www.example.com/">example</a>
</p>
</body>
</html>

Should work with IE 5.5 too.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #5
Thanks again for the reply.

Hide URL in Statusbar... is the subject of this thread.

The code provided requires modification to each link which wont work for me.
I need a single script that would hide all urls on the page.

"McKirahan" <Ne**@McKirahan .com> wrote in message
news:swWAd.8280 33$8_6.752314@a ttbi_s04...
"Targa" <ta************ ***********@all tel.net> wrote in message
news:Vf******** *******@fe61.us enetserver.com. ..
Thanks but no - that would just keep links from being underlined.

I need to keep the URL of all links from showing up in the statusbar.
"McKirahan" <Ne**@McKirahan .com> wrote in message
news:SdUAd.3055 80$HA.161123@at tbi_s01...
> "Targa" <ta************ ***********@all tel.net> wrote in message
> news:J4******** *******@fe61.us enetserver.com. ..
>> I know you can do an onmouseover/onmouseout to display alternate text for >> links but Im looking for a script that would cover all links on a page
>> without having to add code to each link.
>>
>> Is there such a thing?
>>
>> I also know lots of people hate it when you do that but this is for an
>> application which requires IE5.5+ and there is no need for the user to
> view
>> the links.
>>
>> TIA!
>
> Is this what you want?
>
> <style type="text/css">
> a { text-decoration:none }
> </style>

Your original post didn't mention the statusbar.

Will one of these work for you?

<html>
<head>
<title>hrefhide .htm</title>
<script type="text/javascript">
function a() {
location.href = "http://www.google.com/";
}
</script>
</head>
<body>
<a href="javascrip t:a()">Google</a>
<br><br>
<a href="#" onclick="locati on.href='http://www.google.com/'">Google</a>
<br><br>
<a onclick="locati on.href='http://www.google.com/'"
style="cursor:h and"><u>Google </u></a>
<br><br>
<a onclick="locati on.href='http://www.google.com/'"
style="cursor:p ointer"><u>Goog le</u></a>
</body>
</html>


Jul 23 '05 #6
Thanks Martin - Works great!
"Martin Honnen" <ma*******@yaho o.de> wrote in message
news:41******** *************** @newsread2.arco r-online.net...


Targa wrote:
Im looking for a script that would cover all links on a page without
having to add code to each link.

I also know lots of people hate it when you do that but this is for an
application which requires IE5.5+ and there is no need for the user to
view the links.


Tested with IE 6:

<html lang="en">
<head>
<title>mouseove r handler</title>
<script type="text/javascript">
function mouseOutHandler (evt) {
if (typeof evt != 'undefined') {
evt = window.event;
}
window.status = '';
if (evt && typeof evt.returnValue != 'undefined') {
evt.returnValue = true;
}
if (evt && evt.preventDefa ult) {
evt.preventDefa ult();
}
return true;
}

window.onload = function (evt) {
if (document.addEv entListener) {
document.addEve ntListener(
'mouseover',
mouseOutHandler ,
false
);
}
else if (document.attac hEvent) {
document.attach Event(
'onmouseover',
mouseOutHandler
);
}
};
</script>
</head>
<body>
<p>
Does the status bar show the link URL?
<a href="http://www.example.com/">example</a>
</p>
</body>
</html>

Should work with IE 5.5 too.
--

Martin Honnen
http://JavaScript.FAQTs.com/


Jul 23 '05 #7
"Targa" <ta************ ***********@all tel.net> wrote in message
news:YE******** *******@fe61.us enetserver.com. ..
Thanks again for the reply.

Hide URL in Statusbar... is the subject of this thread.


http://jibbering.com/faq/#FAQ2_3

"Use the Subject: of your post to indicate the type of problem you have, but
include the question in the body aswell."
P.S. I'm glad that you found a solution.
Jul 23 '05 #8
"Martin Honnen" <ma*******@yaho o.de> wrote in message
news:41******** *************** @newsread2.arco r-online.net...


Targa wrote:
Im looking for a script that would cover all links on a page
without having to add code to each link.

I also know lots of people hate it when you do that but this is for an application which requires IE5.5+ and there is no need for the user to view the links.


Tested with IE 6:

Should work with IE 5.5 too.


Below works in Netscape 4, IE 4+, Opera 6+ and Mozilla:

function setAllHrefMOut( f, d, inLayer) {
if (!inLayer) {
d = document;
}

if (d) {

var i;

if (d.links) {
i = d.links.length;
while (i-- > 0) {
if (!d.links[i].onmouseout) {
d.links[i].onmouseout = f;
}
}
}

if (d.layers) {
i = d.layers.length ;
while (i-- > 0) {
setAllHrefMOut( f, d.layers[i].document, true);
}
}
}
} // setAllHrefMOut( )

Corresponding setAllHrefMOver () could be written as well, or modify the
current function to specify mouseover/mouseout.

Called using:

function myMouseOut() {
// do whatever
return true;
}
setAllHrefMOut( myMouseOut);

Yes, yes, I realized later that I didn't really need to pass "inLayer",
but I was concerned someone would see the method signature and do:

setAllHrefMOut( myMouseOut, document);

--
Grant Wagner <gw*****@agrico reunited.com>
comp.lang.javas cript FAQ - http://jibbering.com/faq
Jul 23 '05 #9

Hi,

I think this is what you are looking for:

Place the following inside the <HEAD> tags...

<script language="JavaS cript" type="text/javascript">
function updateStatusBar ()
{
window.status = " ";
timerID= setTimeout("upd ateStatusBar()" , 250);

}
</script>

And call the function either with an onload in the BODY tag, or call it
using a seperate javascript call at the very end of your html... thus

..
..
..
..
<script language="JavaS cript" type="text/javascript">
updateStatusBar ();
</script>
</BODY>
</HTML>

The above loops every 250ms calling the function updateStatusBar which
sets the status bar to a space... Perhaps 250ms is too small - looping
that fast might consume too much CPU on slower machines - don't know -
you'll have to test it.

I hope it helps
randell d.
Targa wrote:
I know you can do an onmouseover/onmouseout to display alternate text for
links but Im looking for a script that would cover all links on a page
without having to add code to each link.

Is there such a thing?

I also know lots of people hate it when you do that but this is for an
application which requires IE5.5+ and there is no need for the user to view
the links.

TIA!

Jul 23 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2310
by: benny | last post by:
Hi, I am trying on redirect the to the file EnterpriseManager2.0.zip without having to show the absolute link on http://w0018/EnterpriseManager2.0.zip where the download utility cannot get that absolute link. I tried:- 1. window.open("http://w0018/EnterpriseManager2.0.zip") and 2.
3
14422
by: Ryh | last post by:
I have the following scritpt. It hides div layer when mouse is out of the div layer. Inside DIV I have IFRAME box. Unfortuantely it does not work in Mozilla or IE 5.5. It hides div when cursor is inside IFRAME. NOte that IFRAME is inside DIV so it should not hide DIV. It Works fine in IE6.0. Could any one help? Example:
11
9798
by: Axel Dahmen | last post by:
Hi, this is confusing to me: When I clear the status bar to hide a hyperlink using the below onmouseover event, the original status text (the hyperlink target URI) re-appears when the user clicks the link and the new page is loaded. What am I doing wrong? TIA, Axel Dahmen
10
4490
by: Nicolas | last post by:
When I resize (Enlarge) the form while the progress bar is running the rectangle drawing is not going to the end of the rectangle? I got a form with one button, one statusbar with three statusbarpanel Here is the code for help What is wrong there? #Region "ProgressBar"
4
10922
by: EdB | last post by:
Does VB.Net provide any means of mimicking the behaviour of the auto hide/docking controls, such as the solution explorer and toolbox?
3
4626
by: therealvibe | last post by:
I have made a simple page with show hide layers with javascript and css. http://www.icatt.nl/special/test/salarisstrook_algemeen.html The idea is that the blue help text rechtangle will have to remain visible when mouse over (because there will be soon links in it) and invisible when onmouseout. I have now placed javascript on the...
3
3526
by: Jeyaraman | last post by:
Hi Iam jey. Now I am developing one ERP Project in J2EE. I have to pass some arguments from one jsp page to another page through HTML links. But variables are visible, when we mouse over the link. .. I want to know how to hide this value... Can you know about coding.. Please forward Me... Example Code <a...
3
2330
by: S. Viswanathan | last post by:
Hi everybody! In VB.NET 2005, MenuStrip and Statusstrip controls added. When the mouse over on the Menuitem its corresponding Tooptip text should be displayed in the statusstrip. How to display the statusstrip text while mouseover on the menuitem? -- Thanks
0
7532
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
1
7492
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7823
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6059
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5381
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5101
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3510
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3491
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1069
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.