multiple commands in OnMouseOut

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Roy G. Vervoort

    multiple commands in OnMouseOut



    Is it possible to put several commands in the onmouseout command

    I'm having several links each with its own ID (roll1, roll2, roll3, etc) and
    i would like all to change on the OnMouseOver command

    this changes the color of the link withthe id "roll1"
    onMouseOut=back ('roll1')

    this changes the color of the link withthe id "roll2"
    onMouseOut=back ('roll2')

    and this changes the color of the link withthe id "roll3"
    onMouseOut=back ('roll3')

    I would like all of them to change with the OnMouseOver command


  • Jared Dykstra

    #2
    Re: multiple commands in OnMouseOut

    "Roy G. Vervoort" <roy.vervoort@r ojaal.nl> wrote in message news:<40210dca$ 0$331$e4fe514c@ news.xs4all.nl> ...[color=blue]
    > Is it possible to put several commands in the onmouseout command
    >
    > I'm having several links each with its own ID (roll1, roll2, roll3, etc) and
    > i would like all to change on the OnMouseOver command
    >
    > this changes the color of the link withthe id "roll1"
    > onMouseOut=back ('roll1')
    >
    > this changes the color of the link withthe id "roll2"
    > onMouseOut=back ('roll2')
    >
    > and this changes the color of the link withthe id "roll3"
    > onMouseOut=back ('roll3')
    >
    > I would like all of them to change with the OnMouseOver command[/color]


    Please post javascript questions to the proper forum. Java and
    javascript are not the same thing, not at all.

    To answer your question: write a new function that contains all of the
    calls. Then use the onMouseOut event to call your new function.

    ---
    Jared Dykstra

    Comment

    Working...