Behavior which modifies status bar

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sgross

    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:COMPONE NT>
    <PUBLIC:ATTAC H EVENT="onMouseO ver" HANDLER="doMous eOver" />
    <SCRIPT LANGUAGE="JavaS cript">
    function doMouseOver(){
    var strRegExp = /&nbsp;/g;
    var newString = innerHTML.repla ce(strRegExp," ")
    if(newString.le ngth>1){
    window.status = newString;
    return true;
    }
    }
    </script>
    <PUBLIC:COMPONE NT>
  • kaeli

    #2
    Re: Behavior which modifies status bar

    In article <d921de64.04022 42205.72973860@ posting.google. com>, sgross2130
    @hotmail.com enlightened us with...[color=blue]
    > 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.[/color]

    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.



    Comment

    • Lasse Reichstein Nielsen

      #3
      Re: Behavior which modifies status bar

      kaeli <tiny_one@NOSPA M.comcast.net> writes:
      [color=blue]
      > 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. ;)[/color]

      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 - lrn@hotpop.com
      DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
      'Faith without judgement merely degrades the spirit divine.'

      Comment

      • kaeli

        #4
        Re: Behavior which modifies status bar

        In article <vflvf2ob.fsf@h otpop.com>, lrn@hotpop.com enlightened us
        with...[color=blue]
        > kaeli <tiny_one@NOSPA M.comcast.net> writes:
        >[color=green]
        > > 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. ;)[/color]
        >
        > 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
        >[/color]

        Is THAT what those odd looking tags were?

        --
        --
        ~kaeli~
        In democracy your vote counts. In feudalism your count votes.



        Comment

        • Laurent Bugnion

          #5
          Re: Behavior which modifies status bar

          Hi,

          kaeli wrote:
          [color=blue]
          > In article <vflvf2ob.fsf@h otpop.com>, lrn@hotpop.com enlightened us
          > with...
          >[color=green]
          >>kaeli <tiny_one@NOSPA M.comcast.net> writes:
          >>
          >>[color=darkred]
          >>>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. ;)[/color]
          >>
          >>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
          >>[/color]
          >
          >
          > Is THAT what those odd looking tags were?[/color]

          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

          Comment

          Working...