Jump to content
php.lv forumi

jquery un lightbox


NBS

Recommended Posts

Sveiki, vēlējos pajautāt kāds ir īsts iemesls, ka uz viena html uzliek lightbox un jquery, viens strādā, otrs nē.

Īsti nevaru atrast iemeslu.

 

Tiek izmantoti šādi:

 

<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<link rel="stylesheet" href="style/lightbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="js/jquery.min.js"></script>

 

Lūdzu, palīdziet.

 

Ar cieņu,

NBS.

Link to comment
Share on other sites

Vai tu esi pārliecināts, ka skripti savā starpā nekonfliktē? To var atrisināt, protams, bet tas ir lieks čakars. Centies lietot 'pluginus' no vienas bibliotēkas ('library').

 

Manā gadījumā tā ir jQuery. Lightbox alternatīva ir Fancybox. Viena no alternatīvām. :)

Link to comment
Share on other sites

  • 1 month later...

Prototype un jQuery konfliktē, ja kas. Piemeram, "$" simbols jQuery ir aliase jQuery() funkcijai, bet prototipā kkas cits. Ja gribi lietot šīs bibliotēkas reizē, vari izmantot jQuery.noConflict()

 

P.S. Kāpēc forumā tik sūdīga hiperlinku insertēšana? Lai apskatītos sava posta HTML'u jālieto visādus hākus.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...