Results 1 to 4 of 4

Thread: Shaking Image on MouseOver

  1. #1
    Join Date
    Oct 2009
    Location
    Seattle, WA
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Shaking Image on MouseOver

    I found this article:

    http://www.dynamicdrive.com/dynamicindex4/shake.htm

    It works great it IE, but doesn't appear to work on Mozilla, Safari, or Chrome. The weird thing is that the demo appears to work in the other browsers, but the cut and paste script doesn't. Here is an example that I got to work in IE, but none of the other browsers:

    http://www.ohmii.com/testimage.html

    Can someone explain what I'm missing to make it compatible with the other broswers? Thanks in advance!

  2. #2
    Join Date
    Mar 2006
    Posts
    12
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    shake.style.top=parseInt(shake.style.top)+rector+'px';
    }
    else if (a==2){
    shake.style.left=parseInt(shake.style.left)+rector+'px';
    }
    else if (a==3){
    shake.style.top=parseInt(shake.style.top)-rector+'px';
    }
    else{
    shake.style.left=parseInt(shake.style.left)-rector+'px';
    }

  3. The Following User Says Thank You to Troy III For This Useful Post:

    johnse4 (10-10-2009)

  4. #3
    Join Date
    Oct 2009
    Location
    Seattle, WA
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks Troy. Works like a charm!

  5. #4
    Join Date
    Oct 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hello

    I encountered the same problem and troy's answer resolved it!

    Thanks Troy!!!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •