Yes indeed - the code I wrote was just an example. You'll need to customize it to work in your particular situation.For example - the doWiggleStuff() function is where you would trigger the wiggle.

PicnicTutorials
—
2013-07-13T12:32:53Z —
#5

Well there are plenty of examples on the web. My question was how to incorporate it into mine. I was just not in the mood to sit down and stare at all the examples until I figured it out. Hoping you could just tell me. being lazy I guess.

Edit: actually I'm not finding any that spell it out for me in a way that makes sense. So how do I add that function to my code?

PaulOB
—
2013-07-13T16:25:31Z —
#6

PicnicTutorials said:

Well there are plenty of examples on the web. My question was how to incorporate it into mine. I was just not in the mood to sit down and stare at all the examples until I figured it out. Hoping you could just tell me. being lazy I guess.

Edit: actually I'm not finding any that spell it out for me in a way that makes sense. So how do I add that function to my code?

Hey Pullo Why no doc.ready? I assume there is a reason it's not needed?

Pullo
—
2013-08-05T19:30:15Z —
#17

PicnicTutorials said:

Hey Pullo Why no doc.ready? I assume there is a reason it's not needed?

Hey Eric,I always used to include it for good measure, but since I actually looked in to what it does, it seems it is hardly ever needed if you position your JS just before the closing <body> tag.This also gives the page the impression of loading faster as an added bonus.

Check out this thread for a more detailed explanation (thanks to felgall)

PicnicTutorials
—
2013-08-06T00:35:33Z —
#18

Pullo said:

Hey Eric,I always used to include it for good measure, but since I actually looked in to what it does, it seems it is hardly ever needed if you position your JS just before the closing <body> tag.This also gives the page the impression of loading faster as an added bonus.

Check out this thread for a more detailed explanation (thanks to felgall)

Ok that all sounded good. I have like 5 or so instances of doc.ready in my all in one js file. When removing doc ready do i just remove it, or it and a closing tag at the bottom of each block? Thanks.

Pullo
—
2013-08-06T11:49:46Z —
#19

You don't need five calls to doc.ready()At the very least move all of these into one.

E.g. this:

$(document).ready(function(){
// Do some stuff
});
$(document).ready(function(){
// Do some more stuff
});

Can become this:

$(document).ready(function(){
// Do some stuff
// Do some more stuff
});

And very probably this:

<script>
// Do some stuff
// Do some more stuff
</script>
</body>
</html>