HOME
back to lyrae design
[login]
3 | 29.4.2010 | 3 years ago


Making Multiple jQuery Scripts Be The Good Friends They Should Be

is your lighbox 2.04 jquery script not working because of another conflicting jquery script, in this case a content scrolling script? i wanted it bad. thanks to google i found a solution.

so easy even a web designer can do it:

1) place jQuery.noConflict() before the$(document).ready function in the conflicting script that’s disbling lightbox 2.

2) after that replace all “$” with “jQuery” and you’re good to go.

i did this and i was able to make my lightbox 2.04 pop-up images script work alongside the other script that was formerly disabling it, a content scrolling script, the kind where you click a link and the page scrolls down at a funky designated speed to where the anchor tag is.

)cracks knuckles( .. can’t wait to find more ^_^. details in a php forum here.

cavemen

  1. alena-ruis reblogged this from cssninja
  2. pasieki-org-pl reblogged this from cssninja
  3. psdtohtmlshop reblogged this from cssninja
  4. cssninja posted this