Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  2. #2
    New to the CF scene
    Join Date
    Dec 2009
    Location
    Bay Area
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •