CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript frameworks (http://www.codingforums.com/forumdisplay.php?f=62)
-   -   can't get lavalamp and fancybox work together (http://www.codingforums.com/showthread.php?t=180593)

jc design 10-26-2009 09:42 PM

can't get lavalamp and fancybox work together
 
Hi guys, I'm currently
working on a personal website and wanted to incorporate both
"lavalamp" and "fancy box" on the same html page. I have tried and
tried but for some reason one of them works and the other doesnt. It's
like one overrides the other one. I have tried different things with
no success. This is probably a very basic questions for you amazing
programmers, so I kindly ask you for your help. Thank you!! Below is
the script i have for the js.
--------------------------------------------------------------------
link rel="stylesheet" href="css/lavalamp_test.css" type="text/css"
media="screen"/>
<script type="text/javascript" src="scripts/jquery-1.2.3.min.js"></
script>
<script type="text/javascript" src="scripts/
jquery.easing.min.js"></script>
<script type="text/javascript" src="scripts/
jquery.lavalamp.min.js"></script>

<script type="text/javascript">
$(function() {
$("#2").lavaLamp({
fx: "backout",
speed: 700,
click: function(event, menuItem) {
return true;
}
});
});
</script>

<link rel="stylesheet" type="text/css" href="jquery.fancybox/
jquery.fancybox.css" media="screen" />
<script type="text/javascript" src="jquery.fancybox/
jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="jquery.fancybox/jquery.easing.
1.3.js"></script>
<script type="text/javascript" src="jquery.fancybox/
jquery.fancybox-1.2.1.pack.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("a.fancyLink").fancybox();
});
</script>

----------------------------------------------------------------------------------------------------------------------------------------------------------------

I noticed that "jquery-1.3.2.js" is present on both, but they are
different scripts? could that have anything to do with that? if so,
how can it be fixed?

Your help is truly appreciated.

ashp 12-29-2009 06:42 AM

I have the same problem, except for me, both worked fine until I tested fancybox with varying image sizes. The first image clicked would come up fine but when I clicked the arrow to advance the slideshow, the next image wouldn't show up and fancybox's arrows and close buttons didn't show up either.
Have not found solution yet.


All times are GMT +1. The time now is 09:46 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.