Advanced Search

Results 1 to 7 of 7

Thread: Multiple Scripts

  1. #1
    Join Date
    Feb 2009
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Multiple Scripts

    I am using to following scripts from the dynamic drive website

    http://www.dynamicdrive.com/dynamici...menu/index.htm

    http://www.dynamicdrive.com/dynamici...box2/index.htm

    On all the pages within my site the menu bar works fine, but on the gallery page which uses the lightbox script, the menu bar does not funtion properly and does not display the drop down lists

    Why is this?

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Code or a link?

  3. #3
    Join Date
    Feb 2009
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <link rel="stylesheet" type="text/css" href="style.css" />
    
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
    <script type="text/javascript" src="ddsmoothmenu.js">
    
    /***********************************************
    * Smooth Navigational Menu- (c) Dynamic Drive DHTML code library ([url]www.dynamicdrive.com[/url])
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at [url]http://www.dynamicdrive.com/[/url] for full source code
    ***********************************************/
    
    </script>	
    
    <script src="prototype.js" type="text/javascript"></script>
    <script src="scriptaculous.js?load=effects" type="text/javascript"></script>
    <script src="lightbox.js" type="text/javascript"></script>
    
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    </head>
    <body>
    <script Language ="JavaScript">
    
    function validate_JansignUp() 
    {
    	var illegalChars = /[\(\)\<\>\,\;\:\\\/\"\[\]\$\\&\%\*\`\_\@\\!\-\?\|]/
    	var illegalEmailChars= /[ \(\)\<\>\,\;\:\\\/\"\[\]\$\\&\%\*\`\\!\-\?\|]/
    	var name = document.signUp.name.value;
    	var mail = document.signUp.mail.value;
    	atpos=mail.indexOf("@");
    	dotpos=mail.lastIndexOf(".");
    	
    	valid = true; for (var i = 0; i < name.length; i++) 
    	{
    		var ch = name.substring(i, i + 1);
    			if (((ch < "a" || "z" < ch) && (ch < "A" || "Z" < ch)) && ch != ' '&& ch != '.')
    			{
    				valid = false;
    			}
    	}
    	if (name.length<1)
    	{
    		valid = false;
    	}
    	if (!valid)
    	{
    		alert("Please ammend your name");
    	}
    
    	if( (atpos<1||dotpos-atpos<2)||( document.signUp.mail.value.match(illegalEmailChars) ) )
    
    	{
    		alert("Please ammend your email address");
    		valid = false;
    	}
    
    	return valid;
    }
    </script>
    <div id="header">
    	</div>
    	<div id="Dropmenu">
    <div id="smoothmenu1" class="ddsmoothmenu">
    <ul>
    <li><a href="index.html">Home</a></li>
    <li><a href="#">Menu</a>
      <ul>
      <li><a href="mainmeals.html">Main Menu</a></li>
    		  <ul>
    			  <li><a href="specials.htm">Specials</a></li>
    			  <li><a href="HotMeze.html">Hot Mezes</a></li>
    			  <li><a href="ColdMeze.html">Cold Mezes</a></li>
    			  <li><a href="MainMeals.html">Main Meals</a></li>
    			  <li><a href="Fish.html">Fish Dishes</a></li>
    			  <li><a href="VegiDishes.html">Veggie Dishes</a></li>
    			  <li><a href="sides.html">Side Dishes</a></li>
    		  </ul>
    
    			  <li><a href="LunchMenu.html">Lunch Menu</a></li>
    			  <li><a href="TakeAway.html">Take Away Menu</a></li>
    			  <li><a href="WineMenu.html">Wine Menu</a></li>
    			  <li><a href="DrinksMenu.html">Drinks</a></li>
      </ul>
    </li>
    <li><a href="Gallery.html">Gallery</a></li>
    <li><a href="events.html">Events</a></li>
      <ul>
      <li><a href="february.html">February Offers</a></li>				
      <li><a href="valentines.html">Valentines Day</a></li>
      <li><a href="mothers.html">Mothers Day</a></li>
      <li><a href="fathers.html">Fathers Day</a></li>
      <li><a href="eastersun.html">Easter Sunday</a></li>
      </ul>
    <li><a href="VIP.html">Vip Club</a>
    <li><a href="about.html">About Us</a></li>
    <li><a href="contact.html">Contact Us</a></li>
    </ul>
    <br style="clear: left" />
    </div>
    	</div>
    </div>
    
    <div id="page">
    
    	<div id="sidebar1" class="sidebar">
    		<ul>
    			<li id="signUp">
    				<h2>Sign Up</h2>Sign Up For Our January Special Offers And Receive An Introductory 2 For 1 Voucher
    								
    					<CENTER>
    					<form onsubmit="return validate_signUp();" action="mail2.php" enctype="x-www-form-encoded" method="post" target="_self" name="signUp">
    					<p><b>Your Name:</B><br>
    					<input type="text" name="name">
    					<p><B>Email:</B><br>
    					<input type="text" name="mail">
    					<br>
    					<br><input type="submit" name="submit" value="Submit">
    					</form>
    					</CENTER>	
    			</li>
    	</div>
    	<!-- end sidebar1 -->
    	<!-- start content -->
    
    	<div id="content">
    		<div class="post">
    			<h1 class="title">Gallery</a></h1>
    			<div class="entry">
    				<p>
    
    		<h2><CENTER>The Restaurant</CENTER></h2>
    		<p class="tags"></p>
    		<BR><BR><BR>
    		<a href="images\gallery-images\IMG_2.jpg" rel="lightbox[album]"> <img src="images\gallery-images\IMG_2.jpg" width="110" height="81.5" /></a>
    	    <a href="images\gallery-images\IMG_1.jpg" rel="lightbox[album]"> <img src="images\gallery-images\IMG_1.jpg" width="110" height="81.5" /></a>
    		<a href="images\gallery-images\IMG_3.jpg" rel="lightbox[album]"> <img src="images\gallery-images\IMG_3.jpg" width="110" height="81.5" /></a>
    	    <a href="images\gallery-images\IMG_16.jpg" rel="lightbox[album]"> <img src="images\gallery-images\IMG_16.jpg" width="110" height="81.5" /></a>
    
    		<a href="images\gallery-images\IMG_5.jpg" rel="lightbox[album]"> <img src="images\gallery-images\IMG_5.jpg" width="110" height="81.5" /></a>
    	    <a href="images\gallery-images\IMG_6.jpg" rel="lightbox[album]"> <img src="images\gallery-images\IMG_6.jpg" width="110" height="81.5" /></a>
    		<a href="images\gallery-images\IMG_7.jpg" rel="lightbox[album]"> <img src="images\gallery-images\IMG_7.jpg" width="110" height="81.5" /></a>
    		<a href="images\gallery-images\IMG_8.jpg" rel="lightbox[album]"> <img src="images\gallery-images\IMG_8.jpg" width="110" height="81.5" /></a>
    		<a href="images\gallery-images\IMG_9.jpg" rel="lightbox[album]"> <img src="images\gallery-images\IMG_9.jpg" width="110" height="81.5" /></a>
    		<a href="images\gallery-images\IMG_10.jpg" rel="lightbox[album]"> <img src="images\gallery-images\IMG_10.jpg" width="110" height="81.5" /></a>
    
    				</p>
    			</div>
    
    		</div>
    	</div>
    	<!-- end content -->
    	<!-- start sidebar2 -->
    	<!-- end sidebar2 -->
    	<div style="clear: both;">&nbsp;</div>
    </div>
    <!-- end page -->
    <div id="footer">
          <ul>
            <li><a href="index.html">Home</a> | </li>
            <li><a href="about.html">About Us</a> | </li>
            <li><a href="menu.html">Menu</a> | </li>
            <li><a href="events.html">Events</a> | </li>
            <li><a href="vip.html">V.I.P Club</a> | </li>
            <li><a href="contact.html">Contact</a> | </li>
            <li><a href="gallery.html">Gallery</a></li>
          </ul>
    
    	<p class="legal">Meze Meze Restaurant&copy;2008 All Rights Reserved.</p>
    
    </div>
    </body>
    </html>
    Last edited by Snookerman; 04-22-2009 at 09:06 AM. Reason: added [html] tags

  4. #4
    Join Date
    May 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi

    Did you get a resolution to this? I got a similar problem ...

    Cheers
    Al

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,674
    Thanks
    43
    Thanked 3,125 Times in 3,091 Posts
    Blog Entries
    12

    Default

    If you are using:

    Quote Originally Posted by aakinn
    HTML Code:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
    You need to use a lightbox type script that doesn't conflict with jQuery.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    May 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi John

    Thanks for the reply.

    Nope, not using that. Just the code as is from the Lightbox 2 as above.

    Any more cluse?

    Cheers
    Alan

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,674
    Thanks
    43
    Thanked 3,125 Times in 3,091 Posts
    Blog Entries
    12

    Default

    Then you don't have the same problem. Please open a new thread and give details, including a link to the demo page(s) on Dynamic Drive of the script(s) from Dynamic Drive that you are using, and a link to your problem page.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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