![]() |
Help with Jquery mouse wheel
Hi guys,
I have this piece of code and i cannot get it to work, Would someone please take a look and see if they can see anything wrong in the code, thanks in advance. Code:
<script type="text/javascript">Cheers, paffley |
That code looks oddly familiar....;)
You aren't calling the mousewheel function - I'm assuming you're using Brandon Aaron's plugin? Your code needs to be within a function like this: Code:
$('#mydiv').mousewheel(function(event,delta){ |
Hi SB65! thanks for the reply, SB as in simonbattersby.com? if it is then its nice to meet ya, Am learning jquery at the moment and learnt alot from your site, thank you! Yeh im trying to implement the mousescroll into what I had already from the jquery slider.
Ive added the function, i totally forgot about that part! i read it on the website too! doh! I still cant seem to get it to work, the slider works but still no mouse scroll this is what I have below: Code:
<script type="text/javascript">Cheers, paffley |
Almost, but now you don't have the mousewheel function included within $(document).ready - so currently it never gets called.
|
Quote:
Im proper stuck now :P Cheers, paffley |
You just need it within the document.ready, so the document ready function includes both the slider code and the mousewheel code:
Code:
<script type="text/javascript"> |
hi SB, im still having problems with it, not sure what it is as ive set everything out the same etc.....
cheers, paffley |
Can you give a link to your page?
|
| All times are GMT +1. The time now is 04:25 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.