473,699 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Status bar shows anchor href, not text I set in onmouseover

I have a menu tree made up of anchors inside list items in a
multi-level list that includes HTML like:

<ul id='xx'>
<li><a href='conf.cgi' class='menu' target='main'
title='Configur e stuff' onclick='rememb er("conf.cgi") '
onmouseover='ha ndleOver("Confi gure stuff")'>Settin gs</a></li>
</ul>

with the javascript:

function remember(cgi) {
var exp = new Date();
exp.setTime(exp .getTime() + 30 * 24 * 60 * 60 * 1000);
setCookie('last Page',cgi,exp);
}
function handleOver(text ) {
window.status=t ext;
}

but when I mouse over this, the status bar shows the full path to the
cgi:

http://hostname/cgi-bin/conf.cgi

I've put an alert() into handleOver() so I know it's getting invoked
and my JavaScript console is clean. What am I doing wrong?

While I want a general solution, I'm doing my development and initial
testing on Mozilla 1.7.3.

Any pointers appreciated. Thanks.

Chris

Oct 28 '05 #1
17 4360
VK
> Status bar shows anchor href, not text I set in onmouseover

comp.lang.javas cript FAQ (right in front of you):
<http://www.jibbering.c om/faq/#FAQ4_35>

Oct 28 '05 #2
Christopher Nelson wrote on 28 okt 2005 in comp.lang.javas cript:
<a href='conf.cgi' class='menu' target='main'
title='Configur e stuff' onclick='rememb er("conf.cgi") '
onmouseover='ha ndleOver("Confi gure stuff")'>Settin gs</a>


<script type="text/javascript">
function setStatus(){
status='Hello world'
}
</script>

<a href='conf.cgi' onmouseout='sta tus=""'
onmouseover='se tTimeout("setSt atus()",10)'>
Settings</a>
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Oct 28 '05 #3
VK wrote:
Status bar shows anchor href, not text I set in onmouseover


comp.lang.javas cript FAQ (right in front of you):
<http://www.jibbering.c om/faq/#FAQ4_35>


I've tried several variations on that and none work. The best I've
been able to accomplish is when the mouse enters the anchor the status
bar shows the href and when the mouse leaves the anchor the message I
supply is displayed (until the mouse enters another anchor, of course).

Oct 28 '05 #4
Evertjan. wrote:
Christopher Nelson wrote on 28 okt 2005 in comp.lang.javas cript:
<a href='conf.cgi' class='menu' target='main'
title='Configur e stuff' onclick='rememb er("conf.cgi") '
onmouseover='ha ndleOver("Confi gure stuff")'>Settin gs</a>


<script type="text/javascript">
function setStatus(){
status='Hello world'
}
</script>

<a href='conf.cgi' onmouseout='sta tus=""'
onmouseover='se tTimeout("setSt atus()",10)'>
Settings</a>


Thanks but that's not working for me. The status bar gets cleared on
mouse out but "hello world" never shows up anywhere. Even adding
"return true" to the end of setStatus() didn't help.

Oct 28 '05 #5
Christopher Nelson wrote on 28 okt 2005 in comp.lang.javas cript:
Evertjan. wrote:
Christopher Nelson wrote on 28 okt 2005 in comp.lang.javas cript:
> <a href='conf.cgi' class='menu' target='main'
> title='Configur e stuff' onclick='rememb er("conf.cgi") '
> onmouseover='ha ndleOver("Confi gure stuff")'>Settin gs</a>
<script type="text/javascript">
function setStatus(){
status='Hello world'
}
</script>

<a href='conf.cgi' onmouseout='sta tus=""'
onmouseover='se tTimeout("setSt atus()",10)'>
Settings</a>


Thanks but that's not working for me. The status bar gets cleared on
mouse out but "hello world" never shows up anywhere.


Works allright under IE6 !

Did you copy/paste my code in an empty html-page?
Even adding
"return true" to the end of setStatus() didn't help.


Why would you do that? That makes no sense at all.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Oct 28 '05 #6
Evertjan. wrote:
Christopher Nelson wrote on 28 okt 2005 in comp.lang.javas cript:
Evertjan. wrote:
Christopher Nelson wrote on 28 okt 2005 in comp.lang.javas cript:

> <a href='conf.cgi' class='menu' target='main'
> title='Configur e stuff' onclick='rememb er("conf.cgi") '
> onmouseover='ha ndleOver("Confi gure stuff")'>Settin gs</a>

<script type="text/javascript">
function setStatus(){
status='Hello world'
}
</script>

<a href='conf.cgi' onmouseout='sta tus=""'
onmouseover='se tTimeout("setSt atus()",10)'>
Settings</a>
Thanks but that's not working for me. The status bar gets cleared on
mouse out but "hello world" never shows up anywhere.


Works allright under IE6 !


I'll try some other browsers.
Did you copy/paste my code in an empty html-page?


No. I edited it into my CGI.
Even adding
"return true" to the end of setStatus() didn't help.


Why would you do that? That makes no sense at all.


Because the FAQ I was pointed to above said it's prudent.

Oct 28 '05 #7
Christopher Nelson wrote on 28 okt 2005 in comp.lang.javas cript:
Works allright under IE6 !


I'll try some other browsers.


Please first try IE.
Did you copy/paste my code in an empty html-page?


No. I edited it into my CGI.


Is that the way to conclude "it does not work"?

Please try the above first before expanding a javascript advice into your
own programme.

Does your cgi execute javascript, btw?
> Even adding
> "return true" to the end of setStatus() didn't help.


Why would you do that? That makes no sense at all.


Because the FAQ I was pointed to above said it's prudent.


Sounds like programming without trying to understand what you do.
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Oct 28 '05 #8
Evertjan. wrote:
Christopher Nelson wrote on 28 okt 2005 in comp.lang.javas cript:
Works allright under IE6 !
I'll try some other browsers.


Please first try IE.


It works in IE. In Opera, the status bar updates as desired but the
tooltip shows the Title and the Address. In Firefox, as in Mozilla,
the address is shown in the status bar and I don't seem to be able to
change that.
Did you copy/paste my code in an empty html-page?


No. I edited it into my CGI.


Is that the way to conclude "it does not work"?


It didn't work for me in my CGI in the broswer I was using.
Please try the above first before expanding a javascript advice into your
own programme.

Does your cgi execute javascript, btw?
My CGI has a ton of JavaScript in it.
...


I don't know that I'll do better than what I have. I'd really like to
fix the status bar in Mozilla and Firefox if I could but I don't know
what the problem is.

Oct 28 '05 #9
Christopher Nelson wrote on 28 okt 2005 in comp.lang.javas cript:
I don't know that I'll do better than what I have. I'd really like to
fix the status bar in Mozilla and Firefox if I could but I don't know
what the problem is.


I'm sorry, I am not an expert there.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Oct 28 '05 #10

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

Similar topics

9
3132
by: Ian Shere | last post by:
I have a disclaimer page prior to a visitor going to my FAQ page. I want to hide the link which normally appears in the status bar from visitors seeing it. I am using the following code which works fine except that the "I Agree" link still shows the link path. What's wrong - driving me nuts!!?? <script language="JavaScript"> <!-- Hide the script from old browsers --
2
3264
by: Bob P. | last post by:
Hi, basically what I'd like to do is suppress the action that causes the URL to show up in the browser status bar when I roll over a hyperlink. I know I could use the onmouseover event in each anchor tag, but I'd rather be able to do it globally thru my stylesheet, rather than having to futz with each link. Does anyone know a solution for this? It seems like you could maybe add quick window.status='blah' javascript or something to the...
10
2433
by: Frances Del Rio | last post by:
on pop-up, which I have scripted to not show status bar, status bar still shows up in Firefox. Any way to get Firefox to open pop-ups w/o status bar at the bottom? thank you.. Frances
1
3297
by: CES | last post by:
All, Could someone please look at this and tell me what's wrong... the function works properly in FireFox but in IE onmouseover it replaces the innerHTML. So the original html: at info@test.com Thank you for your consideration. becomes at mailto:info@test.com:?SUBJECT=Request for additional information - Package id : /*JS var*/ Thank you for your consideration.
2
1626
by: Xerxes | last post by:
Hi, I am trying to hide/change the window.status text when the mouse is over the hyperlink text but it does not seem to work on Mozilla (Firefox). Am I doing something wrong: <a href="somefile.php" onMouseOver="window.status=''">text</a> <a href="somefile.php" onMouseOver="window.status='sample text'">text</a> Thanks.
4
5349
by: somaskarthic | last post by:
Hi In a php script , i'm passing some values as parameter in anchor tag attribute. e.g <a href = "test.php?id=110&name=xyz&sno=oo8s7"... On mouse over this link , these values are displayed in the status bar. To avoid this , i add a small javascript which makes the statusbar message null. It is working on mouseover event . But on mousedown event , it fails and displays the url with parameter in status bar. I added the same script...
4
10319
by: Jon | last post by:
Hi, I am calling the function showpopupWindow(item) to open and write a popup window. When testing in IE6 locally the popup window displays my text in both the title and status bars but when viewed online from my website the titlebar text is preceded by the full URL and a - ( eg http://www.........co.uk - text I want to display) and the status bar appears to only display Downloading picture...
3
4215
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - I have window.status="Moomin"; why doesn't the statusbar change? ----------------------------------------------------------------------- When changing the status in an event (e.g. onmouseover) you should return true from the event. Also a number of browsers require a short delay before setting the status to overcome their default behaviour with the...
2
1647
by: NielsM | last post by:
Hello All, Found a bit of Javascript on this forum that shows the title-text of a link in the statusbar, so you don't have to type onmouseover="window.status='bla di bla'" in every link. http://groups.google.nl/group/comp.lang.javascript/browse_thread/thread/16906e69836826c3/4922a5c1a40fd2a1 But it does not show the title when the link (<a href=""..>text</a>) is in a DIV tag.
0
8687
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8617
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9174
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9035
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8914
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8884
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2347
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2009
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.