Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Anything Slider making jQuery rollover not work

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #29502
    sffan15
    Member

    I’m using AnythingSlider on a site in combination with a custom jquery script I made that simply swaps the end of an img src attribute on rollover, and for some reason the AnythingSlider seems to make the rollovers go crazy. I have also tried using the rollover method here, and the same issue happens: http://code.google.com/p/jquery-swapimage/

    The site is currently using both: http://www.sandiegopcsupport.com/brent/index.html

    The rollover effects should be on the Navigation Buttons (Home, Services, ect.)

    If you play with them a bit you’ll notice some very strange behavior.

    Here is my main.js script

    Code:
    $(document).ready(function(){

    $(“img.rollover”).hover(
    function()
    {
    this.src = this.src.replace(“_off”,”_on”);
    },
    function()
    {
    this.src = this.src.replace(“_on”,”_off”);
    }
    );

    });

    which I use with the following HTML:

    Code:
    Services

    It actually works fine when I preview it locally, but when on the server it does not.

    Is the answer obvious and I just don’t know what I’m doing?

    Thanks for your help :)

    #79149
    sffan15
    Member

    Does no one know why this is happening? I see other posts related to anything slider, and those are being answered, however mine isn’t :(

    Please let me know if there is some other info needed, or if there is anything I can do to get some help :)

    Thanks again

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.