|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
SitePoint Enthusiast
![]() Join Date: Aug 2001
Posts: 91
|
lightbox2 conflict with other js
I am using lightbox2 http://huddletogether.com/projects/lightbox2/
It looks like the prototype.js file for the lightbox script is conflicting with another js I have running on the page. I have read that it may have to do with variable w/ the same name in both scripts, but I can't seem to find anything. Here is my js code (the highlighted part is what I am having problems with): JavaScript Code:
The part of the code above that is having the problem is: JavaScript Code:
Thanks in advance for any help. Brandon |
|
|
|
|
|
#2 |
|
Array Popper
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Aug 2007
Location: Hampton, UK
Posts: 1,980
|
Try 'backgroundColor' instead of 'bgColor'.
Also, if you're using Prototype then why not take advantage of it? JavaScript Code:
|
|
|
|
|
|
#3 |
|
SitePoint Enthusiast
![]() Join Date: Aug 2001
Posts: 91
|
Thanks for your reply. That didn't seem to fix it. I think there may be a conflict between my js script that uses
JavaScript Code:
and my lightbox that uses prototype.js or scriptaculous.js. I'm not 100% that this is what is causing the problem (I'm a newb with js) but that is kind of what I am thinking. |
|
|
|
|
|
#4 |
|
Array Popper
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Aug 2007
Location: Hampton, UK
Posts: 1,980
|
To test your theory you could try renaming the function...
|
|
|
|
|
|
#5 |
|
SitePoint Enthusiast
![]() Join Date: Aug 2001
Posts: 91
|
|
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 21:59.










Linear Mode
