VB.NET/Netscape/Javacript Mouseover Problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JJ_377@hotmail.com

    #1

    VB.NET/Netscape/Javacript Mouseover Problem

    Hi -
    The following works *fine* in IE, but not in Netscape (7.1):

    btnOverview.Att ributes.Add("on MouseOver", "document.all.b tnOverview.src
    ='Buttons/netOverviewOn.j pg';")
    btnOverview.Att ributes.Add("on MouseOut", "document.all.b tnOverview.src
    ='Buttons/netOverviewOff. jpg';")

    The above is done in the Page_Load event of the aspx.vb file. (Line
    breaks are the result of the Google text editor.)

    I've tried various ways of specifying the image and been all over the
    web (including Netscape's Javascript online reference) and nothing
    makes the above work in Netscape....

    **My thanks**

    Jules

  • Martin Honnen

    #2
    Re: VB.NET/Netscape/Javacript Mouseover Problem



    JJ_377@hotmail. com wrote:

    [color=blue]
    > The following works *fine* in IE, but not in Netscape (7.1):
    >
    > btnOverview.Att ributes.Add("on MouseOver", "document.all.b tnOverview.src
    > ='Buttons/netOverviewOn.j pg';")
    > btnOverview.Att ributes.Add("on MouseOut", "document.all.b tnOverview.src
    > ='Buttons/netOverviewOff. jpg';")
    >
    > The above is done in the Page_Load event of the aspx.vb file. (Line
    > breaks are the result of the Google text editor.)[/color]

    All you need is probably
    btnOverview.Att ributes.Add("on mouseover",
    "this.src = 'Buttons/netOverviewOn.j pg';")
    btnOverview.Att ributes.Add("on mouseout",
    "this.src = 'Buttons/netOverviewOff. jpg';")
    but that is a guess, we would need to seee the client-side HTML and
    script that arrives at the browser and not the server-side VB.NET code.


    --

    Martin Honnen
    http://JavaScript.FAQTs.com/

    Comment

    • JJ_377@hotmail.com

      #3
      Re: VB.NET/Netscape/Javacript Mouseover Problem

      Martin -

      THAT WORKS!!

      (using "this.src")

      Also, I upgraded to Netscape 7.2 from 7.1 but I have no idea whether or
      not that contributed...

      I have a client-side mouseover now in in IE/NS from attributes added to
      the imagebutton in the aspx.vb file.

      **THANK** YOU!!!!

      Alison

      Comment

      • Martin Honnen

        #4
        Re: VB.NET/Netscape/Javacript Mouseover Problem



        JJ_377@hotmail. com wrote:

        [color=blue]
        > THAT WORKS!!
        >
        > (using "this.src")
        >
        > Also, I upgraded to Netscape 7.2 from 7.1 but I have no idea whether or
        > not that contributed...[/color]

        I am sure it didn't contribute.

        --

        Martin Honnen
        http://JavaScript.FAQTs.com/

        Comment

        Working...