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 5 of 5
  1. #1
    Regular Coder
    Join Date
    Dec 2010
    Posts
    139
    Thanks
    17
    Thanked 6 Times in 6 Posts

    Using jQuery with other Libraries

    Ok, my jq slider is clashing with light box.

    Found the answer here: http://docs.jquery.com/Using_jQuery_...ther_Libraries

    but don't know where to insert my code within my head below for it to work ?

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <!--Twitter Feed-->
    <script type="text/javascript" src="http://twitterjs.googlecode.com/svn/trunk/src/twitter.min.js"></script>
    <script type="text/javascript" src="js/tweet.js"></script>
    <!--End Twitter Feed-->
    <!--Light Box-->
    <script type="text/javascript" src="js/prototype.js"></script>
    <script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
    <script type="text/javascript" src="js/lightbox.js"></script>
    <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
    <!--End Light Box-->
    <!--Slider-->
    <script type="text/javascript" src="js/jquery-1.3.1.min.js"></script>
    <script type="text/javascript" src="js/slide.js"></script>
    <!--End Slider--> 
    <!--Font Size-->
    <script type="text/javascript" src="js/fontsize.js"></script>
    <!--End Font Size-->
    <!--Random Image-->
    <script type="text/javascript" src="js/randomimg.js"></script>
    <!--End Random Image-->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="test.css" rel="stylesheet" type="text/css" />
    <title>Ride Coventry - For Riders By Riders</title>
    </head>

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,079
    Thanks
    203
    Thanked 2,542 Times in 2,520 Posts
    Attempting to use two different Javascript frameworks often leads to a lot of grief. Simple advice - don't.

    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

  • #3
    Regular Coder
    Join Date
    Dec 2010
    Posts
    139
    Thanks
    17
    Thanked 6 Times in 6 Posts
    The simple script will resolve it though. Site is complete and have only just realised the lightbox isn't working.

    Seems to me the long way round redesigning instead of using the code.

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,079
    Thanks
    203
    Thanked 2,542 Times in 2,520 Posts
    Quote Originally Posted by CHEWX View Post
    The simple script will resolve it though. Site is complete and have only just realised the lightbox isn't working.

    Seems to me the long way round redesigning instead of using the code.
    If you use the search feature of this forum for "lightbox" you will find that the same problem has arisen several times before - and a satisfactory solution has not been found.

  • #5
    Regular Coder
    Join Date
    Dec 2010
    Posts
    139
    Thanks
    17
    Thanked 6 Times in 6 Posts
    Using this will solve the problem as it doesn't use prototype yes ?http://leandrovieira.com/projects/jquery/lightbox/


  •  

    Posting Permissions

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