SitePoint Sponsor |
|
User Tag List
Results 1 to 8 of 8
Thread: dynamic status bar
-
Jan 10, 2003, 02:47 #1
- Join Date
- Dec 2002
- Location
- Switzerland
- Posts
- 735
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
dynamic status bar
hi,
hi have some links that open javascript functions in their href field. I don't like seeing "javascript:whatever()" in the status bar, so i'm willing to use something like :
Code:<a href="javascript:whatever();" onmouseover="self.status='something';return true;" onmouseout="self.status='';">The link text</a>
Is there some way i could do that ? what should i set the self.status to ?
Also, is there some way i can make this work on netscape ?
Thanks,
Quentin
-
Jan 10, 2003, 02:55 #2
- Join Date
- Mar 2002
- Location
- Svíþjóð
- Posts
- 4,080
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
onmouseover="window.status=this.innerHTML;return true;"
Works in NS7, but I think you mean NS4 when you say "...make this work on netscape"?
-
Jan 10, 2003, 03:09 #3
- Join Date
- Dec 2002
- Location
- Switzerland
- Posts
- 735
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
well i'm testing under NS6 and the window.status doesn't seem to do anything.
What i'm thinking is that if there's not way this works within netscape, it allows me to use IE-only 'behavior' feature to set all status bar mouseover/out events.
Quentin
-
Jan 10, 2003, 08:24 #4
- Join Date
- Mar 2002
- Location
- Svíþjóð
- Posts
- 4,080
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
The strange thing is that if you try
onmouseover="alert(this.innerHTML);"
...you see that the innerHTML property works in Netscape (6.2)
Why isn't window.status working
-
Jan 10, 2003, 08:46 #5
- Join Date
- Sep 2002
- Location
- Grand Rapids, MI
- Posts
- 1,168
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Someone here told me a while back that it was better to use .text instead of .innerHTML but I can't remember if that was more successful or not.
AndyFrom the English nation to a US location.
-
Jan 10, 2003, 11:12 #6Originally posted by awestmoreland
Someone here told me a while back that it was better to use .text instead of .innerHTML but I can't remember if that was more successful or not.
Andy
-
Jan 10, 2003, 13:31 #7
- Join Date
- Mar 2002
- Location
- Manchester, UK
- Posts
- 853
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
It's entirely possible that it will work in N6.2 but not N6.0 - there was quite a lot of development between those two browsers.
Bear in mind, however, that many mozilla-based browsers (possibly including one or both of these) allow the user to prevent javascript messing with the status bar (a lesser-known cousin of the pop-up blocking)gav
http://www.livejournal.com/users/blufive/
browser stats analysis and comment:
http://www.livejournal.com/community/stats_weenie/
-
Jan 12, 2003, 09:47 #8
- Join Date
- Jan 2002
- Location
- London
- Posts
- 3,509
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally posted by vgarcia
innerHTML is supposedly not a standard method, but MS and Netscape implemented it anyway. That may be why you were told that .text was better; it may be the standard.Code:<a href="javascript:whatever();" onmouseover="status=this.innerHTML;return true;" onmouseout="status='';">This is <b>great!</b></a>
Code:This is <b>great!</b>
Code:This is great!
MarcusJT
- former ASP web developer / former SPF "ASP Guru"
- *very* old blog with some useful ASP code
- Please think, Google, and search these forums before posting!
Bookmarks