Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    5
    Member #
    29276
    I am working on a contact page for a website and I decided to add a fancybox w/ javascipt map section. I purchased it from themeforest.net. So basically on the right hand side of the page it has a "Get Directions link" then the map pops up and they enter in their address which processes through a map.php page and sends it to google maps. My only problem is that when I add:

    HTML Code:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
    <link rel="stylesheet" type="text/css" href="fancybox/jquery.fancybox-1.2.5.css" media="screen" />
    <script type="text/javascript" src="fancybox/jquery.fancybox-1.2.5.pack.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            $("a").fancybox({
                'zoomSpeedIn'        :    500,
                'zoomSpeedOut'        :    500,
                'overlayShow'        :    true
            });
        });
    </script>
    Into my heading section, it has a conflict with the my other javascript codes in the header.

    Code:
    <!-- // Javascripts // -->
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/jquery.easing.1.2.js"></script>
    <script type="text/javascript" src="js/jquery.anythingslider.js"></script>
    <script type="text/javascript" src="js/anythingslider.js"></script>
    <script type="text/javascript" src="js/animatedcollapse.js"></script>
    <script type="text/javascript" src="js/colapse.js"></script>
    <script type="text/javascript" src="js/ddsmoothmenu.js"></script>
    <script type="text/javascript" src="js/menu.js"></script>
    <script type="text/javascript" src="js/contentslider.js"></script>
    <script type="text/javascript" src="js/ddaccordion.js"></script>
    <script type="text/javascript" src="js/acrodin.js"></script>
    <script type="text/javascript" src="js/jquery.fancybox-1.3.1.js"></script>
    <script type="text/javascript" src="js/lightbox.js"></script>
    <script type="text/javascript" src="js/menu-collapsed.js"></script>
    <script type="text/javascript" src="js/cufon-yui.js"></script>
    <script type="text/javascript" src="js/Trebuchet_MS_400-Trebuchet_MS_700-Trebuchet_MS_italic_700-Trebuchet_MS_italic_400.font.js"></script>
    <script type="text/javascript" src="js/cufon.js"></script>
    <script type="text/javascript" src="js/main.js"></script>
    <!-- // Maps //-->
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
    <script type="text/javascript" src="fancybox/jquery.fancybox-1.2.5.pack.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            $("a").fancybox({
                'zoomSpeedIn'        :    500,
                'zoomSpeedOut'        :    500,
                'overlayShow'        :    true
            });
        });
    </script>
    I have two pictures, one with the map javascript/fancybox. And one without them.

    Any suggestions?

    I really want to use the fancybox style instead of having the link just show the map in a blank white page. Thank you

    Danny
    Attached Images Attached Images

  2.  

  3. #2
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    This is pretty likely your problem:
    Code:
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/jquery.easing.1.2.js"></script>
    <script type="text/javascript" src="js/jquery.anythingslider.js"></script>
    <script type="text/javascript" src="js/anythingslider.js"></script>
    <script type="text/javascript" src="js/animatedcollapse.js"></script>
    <script type="text/javascript" src="js/colapse.js"></script>
    <script type="text/javascript" src="js/ddsmoothmenu.js"></script>
    <script type="text/javascript" src="js/menu.js"></script>
    <script type="text/javascript" src="js/contentslider.js"></script>
    <script type="text/javascript" src="js/ddaccordion.js"></script>
    <script type="text/javascript" src="js/acrodin.js"></script>
    <script type="text/javascript" src="js/jquery.fancybox-1.3.1.js"></script>
    <script type="text/javascript" src="js/lightbox.js"></script>
    <script type="text/javascript" src="js/menu-collapsed.js"></script>
    <script type="text/javascript" src="js/cufon-yui.js"></script>
    <script type="text/javascript" src="js/Trebuchet_MS_400-Trebuchet_MS_700-Trebuchet_MS_italic_700-Trebuchet_MS_italic_400.font.js"></script>
    <script type="text/javascript" src="js/cufon.js"></script>
    <script type="text/javascript" src="js/main.js"></script>
    Aside from calling a ridiculous amount of Javascript, which likely at some point conflict with each other, you call 2 separate versions of fancybox, as well as lightbox. And, for the record, you're calling 3 different menu scripts, 2 different versions of cufon and 3 different sliders. How your site does anything is a wonder which should be studied for future generations.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."

  4. #3
    Junior Member
    Join Date
    Sep 2011
    Posts
    5
    Member #
    29276
    I apologize that's how the template came. I just tweaked the look and content.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:14 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com