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

Home Forums CSS anything slider – javascript within

    • This topic is empty.
    Viewing 4 posts - 1 through 4 (of 4 total)
    • Author
    • #31820

      Anyone know of any problems implementing javascript inside of an

    • tag for anythingslider? In particular, embedding javascript inside of an
    • tag seems to work on IE, Chrome, and Safari, but not Firefox.

    Sorry. The above post is supposed to indicate there are problems embedding within:

  • tags


    What kind of scripting are you adding inside? If you mean inline scripting (inside a tag, in an onclick attribute or something) then it should be fine. If you are adding code inside a <script> tag, then I’d recommend changing the slider initialization from




    or just moving it outside of the slider, if you can.

    The problem usually occurs due to the contents of the first and last panel being cloned. Any scripting in these panels could then cause problems unless you use the new option “infiniteSlides” set to false; this option is available in the latest version.


    Use this JavaScript code

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