English 中文(简体)
jQuery Conflict with mousewheel
原标题:

I m a designer doing a commemoration project for Red Cross Australia s 2004 Tsunami clean up efforts. The project is a timeline to commemorate all the work that has been done for the last few years.

Note: As a first time user I wasn t allowed to include more than 1 link, so I m sorry for all the urls I have pasted in.

I m using two jquery plugins to create the timeline:

This horizontal scroll plugin from JQuery for designers

See here for a direct link to the demo timeline-

I have also used the Colorbox jquery plugin for displaying pictures and media

There is functionality on the timeline for users to click and drag or use the mouse scroll wheel.

I have an issue where the mouse scroll wheel doesn t work after I add the colorbox code to the page. The timeline works fine on its own as does colorbox, its just when they are added together.

As a designer primarily, I don’t know how to fix the issue, but I have narrowed down the focus to some sort of conflict when the jquery.min.js file is linked to for the colorbox plugin. The mouse wheel scrolling returns if I remove the link to this js in the head.

Any suggestions would be welcomed.

问题回答

I have worked through my issue by simply placing the link to the jquery.js file after the jquery.min.js files.

I think the jquery.min.js file was reseting a value that was set by the jquery.js file.

By placing the call to this file afterwards the value doesn t get reset.





相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签