|
|
|
| Есть Lightbox, которая выводит изображения.
Lightbox работает только тогда, когда отключен jQuery.
Иду туда, где брала лайтбокс - там пишут, что
It doesn't work at all. The image opens up in a new page. What's wrong?
This is commonly caused by a conflict between scripts. Check your body tag and look for an onload attribute. Example:
<body onload="MM_preloadImages(‘/images/menu_on.gif’)…;">
A quick fix to this problem is to append the initLightbox() to the onload attribute as so:
<body onload="MM_preloadImages(‘/images/menu_on.gif’)…;initLightbox()">
|
В body -теге у меня нет события onload.
Но. В скрипте библиотеки jQuery есть определение этого события:
jQuery.event.add( window, "load", jQuery.ready );
Что и где подправить, чтобы лайтбоксы сработали? | |
|
|
|
|
|
|
|
для: Лена
(15.11.2009 в 23:33)
| | http://softtime.ru/forum/read.php?id_forum=4&id_theme=69636&page=1
в конце, про noconflict | |
|
|
|
|
|
|
|
для: Лена
(15.11.2009 в 23:33)
| | Убрать prototype и подключить плагин Lightbox для jQuery. | |
|
|
|