Citat:
Originalno napisao darche
jebem li ga cackam li cackam i nece...
Stavim onaj onload="initLightbox()"
nece, majke mu ga skarabudzim!
|
¨
..koliko sam ja shvatio ovo:
// initialize()
// Constructor runs on completion of the DOM loading. Loops through anchor tags looking for
// 'lightbox' references and applies onclick events to appropriate links. The 2nd section of
// the function inserts html at the bottom of the page which is used to display the shadow
// overlay and the image container.
...znaci ovaj JS pici i trazi u xhtml - kodu neki "LINK" - anchor sa " rel="Lightbox" " i otvara ga automatski, kao da je neko kliknuo na njega (sve to, jer je lightbox.js pripremljen za to )