Forums

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

Home Forums JavaScript tuning js snippet for wordpress

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #42654
    bogus
    Participant

    Hey all,

    i have this small script, that i’d like to embed into a wordpress site. in plain html it’s working!

    function interval() {
    $(‘.box’).effect(‘shake’, { times:5 }, 800);
    }
    $(document).ready(function() {
    var shake = setInterval(interval, 4000);
    });

    i know there are some safety measures in wp, that demand to have something like this:

    jQuery(function($)

    But still i cannot figure out the right syntax for this because of the interval stuff…

    Can somebody help me?

    #124106
    bogus
    Participant

    thanks! easy as that! <3

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