[jQuery] styleswitcher problem
<html>
<body>
Hello folks,
I've just belatedly upgraded to the latest version of jQuery and am
finding old plugins now misbehaving.
I'm having trouble with Kevin Luck's styleswitch.
FIrebug is reporting "$ is not a function" on the first line of
this code. I can't understand it - jquery is already
loaded.
<tt><x-tab> </x-tab>
$('.styleswitch').bind('click',function()
<x-tab> </x-tab>{
<x-tab> </x-tab><x-tab>
</x-tab>
switchStylestyle(this.getAttribute('rel'));
<x-tab> </x-tab><x-tab>
</x-tab>return
false;
<x-tab> </x-tab>});
<x-tab> </x-tab>var c =
readCookie('style');
<x-tab> </x-tab>if (c)
switchStylestyle(c);
</tt>[Actually, the first line in Kevin's code is
$('.styleswitch').click(function()
but I have a recollection that .bind('click',...) is now the preferred
format.]
Can anyone help me here please (or point me at another stylesheet
switching approach).
Thanks
Bruce</body>
</html>