Did you add JQuery libraries to it as in the tutorial? I'm not sure about the version, but it may not be relevant. I did mine in pure JavaScript though... But not with a little tween effect. :P
Taywin
Posting Virtuoso
1,727 posts since Apr 2010
Reputation Points: 229
Solved Threads: 239
OK, what JQuery files you need are...
- jquery.js
- jquery.lavalamp.js
- jquery.easing.js (optional)
If you place all .js files in the same location of your HTML file, then you could simply add this in the "head" tag.
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.lavalamp.js"></script>
<!-- Optional -->
<script type="text/javascript" src="jquery.easing.js"></script>
Then at the bottom of the page, you would also need to call the function.
<script type="text/javascript">
$(function() { $(".lavaLamp").lavaLamp({ fx: "backout", speed: 700 })});
</script>
That's all. I guess you may need to be careful when you read a tutorial. Go after it step-by-step. Hope this help.
Taywin
Posting Virtuoso
1,727 posts since Apr 2010
Reputation Points: 229
Solved Threads: 239