weep

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

    weep

    <th class="box" colspan="4" align="center" style="cursor: default;" valign="middle" >&nbsp;&nbsp;&n bsp;&nbsp;&nbsp ;Enter User ID and Password&nbsp;& nbsp;&nbsp;&nbs p;&nbsp;<img id="img1" name="img1" src="controls.g if" usemap="#map1" align="absbotto m" border="0" onmouseover="Ja vaScript:if (window.status == 'Help About...'){ window.status=' Help About...'; } else if (window.status == 'Leave fast (sort of)'){ window.status = 'Leave fast (sort of)'; } else { window.status = 'Help About...'; } return true;" onmouseout="Jav aScript:window. status=window.d efaultStatus; return true;/>
    <map name="map1" onmouseover="Ja vaScript: return true; }" onmouseout="Jav aScript:window. status=window.d efaultStatus; return true;">
    <area tabindex="9" accesskey="/" shape="rect" coords="0,12,14 ,0" href="help.htm" target="_new"
    onmouseover="Ja vaScript:window .status='Help About...'; return true;"
    onmouseout="Jav aScript:window. status=window.d efaultStatus; return true;"/>
    <area tabindex="10" accesskey="x" shape="rect" coords="15,12,2 9,0" href="#"
    onclick="JavaSc ript:self.close (); return false;"
    onmouseover="Ja vaScript:window .status='Leave fast (sort of)'; return true;"
    onmouseout="Jav ascript:window. status=window.d efaultStatus; return true;"/>
    </map></th>

    Doesn't work. The status is not changed to what I am telling it to be it is always:

    shortcut to help.htm or shortcut to #. There is no way to get JavaScript to work correctly in this regard. Using the normal rules of logic. Microsoft Internet Explorer 5.5 SP2 Windows 2000 SP2.

    --
    George Hester
    _______________ _______________ ____
  • Janwillem Borleffs

    #2
    Re: weep

    George Hester wrote:[color=blue]
    > shortcut to help.htm or shortcut to #. There is no way to get
    > JavaScript to work correctly in this regard. Using the normal rules
    > of logic.[/color]

    Your logic has produced too much errors to mention. Take a close look at the
    following example and take it from there:

    <script type="text/javascript">
    function statusMsg(msg) {
    window.status = msg;
    return true;
    }
    </script>
    .....
    <a href="help.html "
    onmouseover="re turn statusMsg('Get Help')"
    onmouseout="ret urn statusMsg('')"> test</a>


    JW



    Comment

    • Hywel Jenkins

      #3
      Re: weep

      In article <OtNLb.131997$J W3.30735@twiste r.nyroc.rr.com> ,
      hesterloli@hotm ail.com says...[color=blue]
      > <th class="box" colspan="4" align="center" style="cursor: default;" valign="middle" >&nbsp;&nbsp;&n bsp;&nbsp;&nbsp ;Enter User ID and Password&nbsp;& nbsp;&nbsp;&nbs p;&nbsp;<img id="img1" name="img1" src="controls.g if" usemap="#map1" align="absbotto m" border="0" onmouseover="Ja vaScript:if (window.status == 'Help About...'){ window.status=' Help About...'; } else if (window.status == 'Leave fast (sort of)'){ window.status = 'Leave fast (sort of)'; } else { window.status =[/color]
      'Help About...'; } return true;" onmouseout="Jav aScript:

      You don't need JavaScript here, for starters.

      --
      Hywel I do not eat quiche


      Comment

      • Michael Winter

        #4
        Re: weep

        On Sat, 10 Jan 2004 07:04:14 GMT, George Hester <hesterloli@hot mail.com>
        wrote:

        <snipped code>[color=blue]
        > Doesn't work. The status is not changed to what I am telling it to be
        > it is always:
        >
        > shortcut to help.htm or shortcut to #. There is no way to get
        > JavaScript to work correctly in this regard. Using the normal rules of
        > logic. Microsoft Internet Explorer 5.5 SP2 Windows 2000 SP2.[/color]

        I don't know about anybody else, but for me, that HTML you posted came out
        to be an unreadable mess. Please *format* your posts to make them at least
        somewhat understandable.

        Furthermore, as Mr Jenkins said, don't use

        [event name]="Javascript : ..."

        to specify the language of your intrinsic events. That should be done with
        a META element.

        Finally, if you are using more than a couple of statements in an intrinsic
        event, use a function rather than inline code. It's *so* much easier to
        read, and therefore, to debug.

        Mike

        --
        Michael Winter
        M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

        Comment

        • George Hester

          #5
          Re: weep

          It don't work. Try your suggestion. Thanks.

          --
          George Hester
          _______________ _______________ ____
          "Janwillem Borleffs" <jw@jwscripts.c om> wrote in message news:3fffc26e$0 $64967$1b62eedf @news.euronet.n l...[color=blue]
          > George Hester wrote:[color=green]
          > > shortcut to help.htm or shortcut to #. There is no way to get
          > > JavaScript to work correctly in this regard. Using the normal rules
          > > of logic.[/color]
          >
          > Your logic has produced too much errors to mention. Take a close look at the
          > following example and take it from there:
          >
          > <script type="text/javascript">
          > function statusMsg(msg) {
          > window.status = msg;
          > return true;
          > }
          > </script>
          > ....
          > <a href="help.html "
          > onmouseover="re turn statusMsg('Get Help')"
          > onmouseout="ret urn statusMsg('')"> test</a>
          >
          >
          > JW
          >
          >
          >[/color]

          Comment

          • George Hester

            #6
            Re: weep

            thx

            --
            George Hester
            _______________ _______________ ____
            "Hywel Jenkins" <hyweljenkins@h otmail.com> wrote in message news:MPG.1a69e2 399fe3cb1d98993 d@news.individu al.net...[color=blue]
            > In article <OtNLb.131997$J W3.30735@twiste r.nyroc.rr.com> ,
            > hesterloli@hotm ail.com says...[color=green]
            > > <th class="box" colspan="4" align="center" style="cursor: default;" valign="middle" >&nbsp;&nbsp;&n bsp;&nbsp;&nbsp ;Enter User ID and Password&nbsp;& nbsp;&nbsp;&nbs p;&nbsp;<img id="img1" name="img1" src="controls.g if" usemap="#map1" align="absbotto m" border="0" onmouseover="Ja vaScript:if (window.status == 'Help About...'){ window.status=' Help About...'; } else if (window.status == 'Leave fast (sort of)'){ window.status = 'Leave fast (sort of)'; } else { window.status = [/color]
            > 'Help About...'; } return true;" onmouseout="Jav aScript:
            >
            > You don't need JavaScript here, for starters.
            >
            > --
            > Hywel I do not eat quiche
            > http://hyweljenkins.co.uk/
            > http://hyweljenkins.co.uk/mfaq.php[/color]

            Comment

            • George Hester

              #7
              Re: weep

              Try your suggestion. It doesn't work. Use an image map and see if you can get the status bar to change to what you want it to be when the mouse is over one of the areas of the map. It won't work.

              --
              George Hester
              _______________ _______________ ____
              "Michael Winter" <M.Winter@bluey onder.co.invali d> wrote in message news:opr1kby9e0 5vklcq@news-text.blueyonder .co.uk...[color=blue]
              > On Sat, 10 Jan 2004 07:04:14 GMT, George Hester <hesterloli@hot mail.com>
              > wrote:
              >
              > <snipped code>[color=green]
              > > Doesn't work. The status is not changed to what I am telling it to be
              > > it is always:
              > >
              > > shortcut to help.htm or shortcut to #. There is no way to get
              > > JavaScript to work correctly in this regard. Using the normal rules of
              > > logic. Microsoft Internet Explorer 5.5 SP2 Windows 2000 SP2.[/color]
              >
              > I don't know about anybody else, but for me, that HTML you posted came out
              > to be an unreadable mess. Please *format* your posts to make them at least
              > somewhat understandable.
              >
              > Furthermore, as Mr Jenkins said, don't use
              >
              > [event name]="Javascript : ..."
              >
              > to specify the language of your intrinsic events. That should be done with
              > a META element.
              >
              > Finally, if you are using more than a couple of statements in an intrinsic
              > event, use a function rather than inline code. It's *so* much easier to
              > read, and therefore, to debug.
              >
              > Mike
              >
              > --
              > Michael Winter
              > M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)[/color]

              Comment

              • Janwillem Borleffs

                #8
                Re: weep

                George Hester wrote:[color=blue]
                > It don't work. Try your suggestion. Thanks.
                >[/color]

                Did some research and it appears that IE doesn't support this in maps. I
                have found a nice workaround suggested by Laurent Bugnion from a previous
                thread in this newsgroup, see:




                JW



                Comment

                • Janwillem Borleffs

                  #9
                  Re: weep

                  Janwillem Borleffs wrote:[color=blue]
                  > Did some research and it appears that IE doesn't support this in
                  > maps. I have found a nice workaround suggested by Laurent Bugnion
                  > from a previous thread in this newsgroup, see:
                  >
                  > http://tinyurl.com/3g9ko
                  >[/color]

                  However, it seems to work when you assign both the onmouseover and
                  onmousemove events. The onmouseover event should be assigned to support
                  Mozilla.

                  See: http://www.jwscripts.com/playground/status.php


                  JW



                  Comment

                  • George Hester

                    #10
                    Re: weep

                    Hi Jan. The issue is the href attribute in the Area tags. With that attribute the onmouseover and onmouseout events do fire but the windows.status= '' doesn't work. The way I found to fix it is use onclick in the <AREA> in place of the href and then the window.status=' ' in the onmouseover and onmouseout work.

                    --
                    George Hester
                    _______________ _______________ ____
                    "Janwillem Borleffs" <jw@jwscripts.c om> wrote in message news:40007510$0 $23707$1b62eedf @news.wanadoo.n l...[color=blue]
                    > George Hester wrote:[color=green]
                    > > It don't work. Try your suggestion. Thanks.
                    > >[/color]
                    >
                    > Did some research and it appears that IE doesn't support this in maps. I
                    > have found a nice workaround suggested by Laurent Bugnion from a previous
                    > thread in this newsgroup, see:
                    >
                    > http://tinyurl.com/3g9ko
                    >
                    >
                    > JW
                    >
                    >
                    >[/color]

                    Comment

                    Working...