Forums

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
      Posts
    • #31820
      travisrisner
      Member

      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.
    #57753
    travisrisner
    Member

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

  • tags

    #57232
    Mottie
    Member

    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

    $(document).ready(...)

    to

    $(window).load(...)

    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.

    #57144

    Hi,
    Use this JavaScript code

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