tags:

views:

19

answers:

1

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?

+1  A: 

You're including jQuery twice in the page, once here (line 12, in the <head>):

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt;&lt;/script&gt; 

and again here (line 91, in the <body>):

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt;&lt;/script&gt; 

That second occurrence is wiping out the plugin, just remove line 91 <script> to resolve it.

Nick Craver
Haha, thank you for that, I'm a little new at `#include`! Thanks!
BOSS