#1
  1. No Profile Picture
    richie
    Guest
    Devshed Newbie (0 - 499 posts)
    Is it possible to have on mouseover trigger two events? For example changing an image and playing a sound.
  2. #2
  3. No Profile Picture
    scollo
    Guest
    Devshed Newbie (0 - 499 posts)
    Yes.

    You can execute any amount of JavaScript you like when an event is fired.

    onMouseOver="command1; command2; command3;"

    Typically, if you want to execute a lot of code on an event, you would put the code in a function:

    function do_this () {
    //put the code here
    }


    onMouseOver = "do_this();"

Similar Threads

  1. Mozilla iframe capturing events from parent
    By killing attack in forum HTML Programming
    Replies: 3
    Last Post: December 22nd, 2003, 09:17 AM
  2. Problems with events
    By IrYoKu in forum HTML Programming
    Replies: 2
    Last Post: October 14th, 2003, 03:55 PM
  3. select option javascript events
    By pablo.gosse in forum JavaScript Development
    Replies: 2
    Last Post: June 20th, 2003, 12:24 PM
  4. Combining Onmouseover events
    By tedc83 in forum HTML Programming
    Replies: 1
    Last Post: June 10th, 2003, 07:01 PM
  5. OnMouseOver events
    By TD_Paladin in forum HTML Programming
    Replies: 5
    Last Post: June 7th, 2001, 05:35 PM

IMN logo majestic logo threadwatch logo seochat tools logo