473,320 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Behavior which modifies status bar

I'm trying to do a simple test of a behavior overriding the windows
status bar on a link to show its text instead of it's href without
passing special variables to the behavior. Please have a look and let
me know if you see anything I'm missing.

<PUBLIC:COMPONENT>
<PUBLIC:ATTACH EVENT="onMouseOver" HANDLER="doMouseOver" />
<SCRIPT LANGUAGE="JavaScript">
function doMouseOver(){
var strRegExp = /&nbsp;/g;
var newString = innerHTML.replace(strRegExp," ")
if(newString.length>1){
window.status = newString;
return true;
}
}
</script>
<PUBLIC:COMPONENT>
Jul 20 '05 #1
4 1056
In article <d9**************************@posting.google.com >, sgross2130
@hotmail.com enlightened us with...
I'm trying to do a simple test of a behavior overriding the windows
status bar on a link to show its text instead of it's href without
passing special variables to the behavior. Please have a look and let
me know if you see anything I'm missing.


You're missing the fact that in Opera, Mozilla, and Netscape, I can
specify that your script isn't allowed to change my status bar. ;)
--
--
~kaeli~
Dancing cheek-to-cheek is really a form of floor play.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #2
kaeli <ti******@NOSPAM.comcast.net> writes:
You're missing the fact that in Opera, Mozilla, and Netscape, I can
specify that your script isn't allowed to change my status bar. ;)


Not a problem. IE "behaviors" won't work in these browsers either,
so the author (hopefully) never intended the script to run on any
of them.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #3
In article <vf**********@hotpop.com>, lr*@hotpop.com enlightened us
with...
kaeli <ti******@NOSPAM.comcast.net> writes:
You're missing the fact that in Opera, Mozilla, and Netscape, I can
specify that your script isn't allowed to change my status bar. ;)


Not a problem. IE "behaviors" won't work in these browsers either,
so the author (hopefully) never intended the script to run on any
of them.

/L


Is THAT what those odd looking tags were?

--
--
~kaeli~
In democracy your vote counts. In feudalism your count votes.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #4
Hi,

kaeli wrote:
In article <vf**********@hotpop.com>, lr*@hotpop.com enlightened us
with...
kaeli <ti******@NOSPAM.comcast.net> writes:

You're missing the fact that in Opera, Mozilla, and Netscape, I can
specify that your script isn't allowed to change my status bar. ;)


Not a problem. IE "behaviors" won't work in these browsers either,
so the author (hopefully) never intended the script to run on any
of them.

/L

Is THAT what those odd looking tags were?


Yes. A behaviour is a new concept introduced by Microsoft, allowing to
specify a small JavaScript piece of code (encapsulated in its own file)
as a CSS rule. MS is trying to have it accepted as a standard, but it
should take at least a few more years until we see it widespread. It
works in IE already, though.

Laurent
--
Laurent Bugnion, GalaSoft
Webdesign, Java, javascript: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch

Jul 20 '05 #5

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

Similar topics

4
by: Jane Austine | last post by:
Running Python 2.3 on Win XP It seems like socket is working interdependently with subprocesses of the process which created socket. ------------------------------------ #the server side >>>...
11
by: Karlo Basic | last post by:
Greetings! I'm wondering how do the expressions in the following piece of code evaluate and why: #include <iostream> using namespace std; int main() { int n = 5, p;
7
by: Dave Hansen | last post by:
OK, first, I don't often have the time to read this group, so apologies if this is a FAQ, though I couldn't find anything at python.org. Second, this isn't my code. I wouldn't do this. But a...
4
by: amoL | last post by:
when specifying modifies sql data option ... getting following error.. SQL0104N An unexpected token "MODIFIES SQL DATA" was found following "". Expected tokens may include: "READS SQL DATA". ...
2
by: db2sysc | last post by:
I am getting SQL0628N when I run function with INSERT and MODIFIES SQL DATA Version: DB2 v8.1.7.445 Fixpack 7. Create function test1( a int, b int) returns integer language sql
2
by: jmadsen | last post by:
I have created a subroutine that opens a report in design view, modifies the report (adds text boxes and grouping levels, etc.) then opens in preview mode. I want to be able to close the report...
7
by: Chris Dunaway | last post by:
Where/How does VS determing docking order? I created a form with a panel docked to the top and a tab control with fill docking. I had added some tabs and place some controls, etc., and decided...
1
by: lists | last post by:
When using the (tbl).field notation for selecting a specific field from a composite field then the query returning the field is executed once per field. An example is giving below. The runtime is...
12
by: gooch | last post by:
I originally posted the following code in a group discussing threads but after further research I think I have a c question about the code. I know there are a couple of non standard c includes here...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.