For some reason, I’m getting this error message:
Uncaught TypeError: Object #<an Object> has no method 'pan'
For this line of code:
$('#bg_1').pan({fps: 3, speed: 2, dir: 'right'});
I have connected the spritely plugin prior to this line of code as you can see here:
http://www.marioplanet.com/index.asp
Any ideas?
You’re including jQuery twice in the page, once here (line 12, in the
<head>):and again here (line 91, in the
<body>):That second occurrence is wiping out the plugin, just remove line 91
<script>to resolve it.