I have a modal window which is opened from a series of portlets. The window which is opened contains both 开发者_StackOverflow社区text and images, and I'm trying to implement a lightbox script on the images. I have got the lightbox script to work in a separate file, and have copied that html into the .html value of the modal window, but when I click on any of the images it disregards the jQuery and takes me directly to a large version of the image.
Any one have any ideas?
Much appreciated, Rich
P.S: Here is the project: http://djrb.co.uk/lightbox/tester.html
it could be possible of conflict of prototype and jQuery. Try this this. http://api.jquery.com/jQuery.noConflict/ – Karthi.L Apr 22
This was absolutely correct. Change $ for jQuery and on my way.
精彩评论