I am trying to use both these Mootools products (below) in the one HTML site i'm building but can't seem to get them working together. They will work independently but unfortunately not together. From my knowledge i can see that both the .js file names are the same "mootools.js" leading me to believe this could be where the issue is. I have tried saving one in a separate folder **** "mtl/mootools.js" (see code below) but no such luck. I have looked through Mootools documentation http://mootools.net/docs/core for a possible solutions and googled my dilemma but no luck.
Can anyone help?
Thank you - Ross
**** I'M USING THESE MOOTOOLS PRODUCTS ****
#1. http://nettuts.s3.amazonaws.com/022_Moo ... mple.html# ***** (MOUSE HOVER EFFECT)
#2. http://www.roscripts.com/uploads/smooth ... index.html ***** ( SMOOTH SCROLLING)
**** MY 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>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Ross</title>
- <SCRIPT src="mootools.js" type="text/javascript"></SCRIPT>
- <STYLE type="text/css" media="screen">
- /*--- the base ---*/
- #pageWrap {
- position: absolute; z-index: 10; top: 0px; left: 780px;
- }
- #audioPage {
- position:absolute; top:50px; left:-85px; padding:0px; z-index:10;
- }
- #psdPage {
- position:absolute; top:50px; left:-200px; padding:0px; z-index:10;
- }
- /*--- the popup ---*/
- #bubbleWrap {
- position: absolute; z-index: 50; left: 0px; top: 285px;
- }
- .bubble {
- position: absolute;
- }
- .clear {
- clear: both;
- }
- /*--- THE LOGO ---*/
- #pageWrap2 {
- position: absolute; z-index: 5; top: 50px; left: 0px;
- }
- #psdPage2 {
- margin-right: 6px; float: left; cursor: pointer;
- }
- #netPage2 {
- margin-right: 6px; float: left; cursor: pointer;
- }
- #audioPage2 {
- float: left; cursor: pointer;
- }
- #bubbleWrap2 {
- position: absolute; z-index: 10; left: 0px; top: 285px;
- }
- .bubble2 {
- position: absolute;
- }
- .clear {
- clear: both;
- }
- </STYLE>
- <SCRIPT type="text/javascript" charset="utf-8">
- window.addEvent('domready', function() {
- // Create variables (in this case two arrays) representing our bubbles and pages
- var myPages = $$('.page');
- var myBubbles = $$('.bubble');
- // Set bubbles opacity to zero so they're hidden initially and toggle visibility on for their container
- myBubbles.setStyle('opacity', 0);
- $('bubbleWrap').setStyle('visibility','visible')
- // Add our events to the pages
- myPages.each(function(el, i) {
- el.set('morph', {link : 'cancel'});
- el.addEvents({
- 'mouseenter': function() {
- myBubbles[i].morph({
- 'opacity' : 1,
- 'margin-top' : '-0px'
- });
- },
- 'mouseleave' : function() {
- myBubbles[i].morph({
- 'opacity' : 0,
- 'margin-top' : 0
- });
- }
- });
- });
- // 2nd LOT
- // Create variables (in this case two arrays) representing our bubbles and pages
- var myPages2 = $$('.page2');
- var myBubbles2 = $$('.bubble2');
- // Set bubbles opacity to zero so they're hidden initially and toggle visibility on for their container
- myBubbles2.setStyle('opacity', 0);
- $('bubbleWrap2').setStyle('visibility','visible')
- // Add our events to the pages
- myPages2.each(function(el, i) {
- el.set('morph', {link : 'cancel'});
- el.addEvents({
- 'mouseenter': function() {
- myBubbles2[i].morph({
- 'opacity' : 1,
- 'margin-top' : '-0px'
- });
- },
- 'mouseleave' : function() {
- myBubbles2[i].morph({
- 'opacity' : 0,
- 'margin-top' : 0
- });
- }
- });
- });
- });
- </SCRIPT>
- <link rel="stylesheet" href="index5.css" type="text/css" />
- <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
- <style type="text/css">
- body {margin: 0px; padding: 0px;}
- .footer2 {width: 100%; height: 1400px; background-image:url(images/BGgradient.gif);
- position:absolute;
- top:550px;
- padding:0px;
- z-index:10;
- }
- .style5 {color: #6e7681}
- </style>
- <!--SMOOTH SCROLLING -->
- <script language="JavaScript" type="text/javascript" src="mtl/mootools.js"></script>
- <script type="text/javascript">
- window.onDomReady(function(){ new SmoothScroll({duration: 2800}); });
- </script>
- <!-- TO HERE -->
- </head>
- <body>
- <div class="main_box1">
- <a id="main_box_image1" href="#" title="Test"><span>Contact Me</span></a> </div>
- <div class="footer2"></div>
- <div id="wrap">
- <!--SMOOTH SCROLLING -->
- <div style="position:fixed; right:400px; top:30px"><a href="#red" title="smoothly scroll to the red anchor">red</a> / <a href="#blue" title="smoothly scroll to the blue anchor">blue</a> / <a href="#gray" title="smoothly scroll to the gray anchor">gray</a> / <a href="#yellow" title="smoothly scroll to the yellow anchor">yellow</a> / <a href="#black" title="smoothly scroll to the black anchor">black</a> / <a href="#green" title="smoothly scroll to the green anchor">green</a></div>
- <a name="red" id="red"></a>
- <div style="width:10px;height:300px;background-color:red;margin:0px;"></div>
- <a name="blue" id="blue"></a>
- <div style="width:10px;height:300px;background-color:blue;margin:0px;"></div>
- <a name="gray" id="gray"></a>
- <div style="width:10px;height:300px;background-color:gray;margin:0px;"></div>
- <a name="yellow" id="yellow"></a>
- <div style="width:10px;height:300px;background-color:yellow;margin:0px;"></div>
- <a name="black" id="black"></a>
- <div style="width:10px;height:300px;background-color:black;margin:0px;"></div>
- <a name="green" id="green"></a>
- <div style="width:10px;height:300px;background-color:green;margin:0px;"></div>
- <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
- <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
- <div class="designDevelopment"></div>
- <div class="designDevelopmentHeading"></div>
- <div class="navCover"></div>
- <div class="leftCover"></div>
- <div class="plus"></div>
- <div class="homepageWording"></div>
- <div class="plus"></div>
- <!--ENIGMA -->
- <div class="main_box01">
- <a id="main_box_image01" href="#" title="Test"><span>Email Us</span></a> </div>
- <div class="BGimage_enigma"></div>
- <div class="enigma_pic"></div>
- <!--OH SEW -->
- <div class="main_box2">
- <a id="main_box_image2" href="#" title="Test"><span>Email Us</span></a> </div>
- <div class="BGimage_ohsewnoosa"></div>
- <!-- SOUTHSIDE CLEANING -->
- <div class="main_box3">
- <a id="main_box_image3" href="#" title="Test"><span>Email Us</span></a> </div>
- <div class="BGimage_southsidecleaning"></div>
- <!-- FALLOW -->
- <div class="main_box4">
- <a id="main_box_image4" href="#" title="Test"><span>Email Us</span></a> </div>
- <div class="BGimage_fallowfox"></div>
- <!-- CONSTRUCTIONS-->
- <div class="main_box5">
- <a id="main_box_image5" href="#" title="Test"><span>Email Us</span></a> </div>
- <div class="BGimage_suncoastConstructions"></div>
- <!-- ROLLYS -->
- <div class="main_box6">
- <a id="main_box_image6" href="#" title="Test"><span>Email Us</span></a> </div>
- <div class="BGimage_rollysCustoms"></div>
- <DIV id="siteWrap">
- <DIV id="bubbleWrap" style="visibility: visible; ">
- <div class="bubble"><img src="images/homepageWording2.gif" alt="PSDTUTS" /></div>
- <div class="bubble"><img src="images/homepageWording2.gif" alt="NETTUTS" /></div>
- <div class="bubble"><img src="images/homepageWording2.gif" alt="AUDIOTUTS" /></div>
- </DIV>
- <DIV id="pageWrap">
- <div class="page" id="psdPage"><a href="work.html"><img src="images/workHome.gif" alt="PSDTUTS" /></a></div>
- <div class="page" id="audioPage"><a href="work.html"><img src="images/aboutHome.gif" alt="AUDIOTUTS" /></a></div>
- </DIV>
- </DIV>
- <div id="siteWrap2">
- <div id="bubbleWrap2" style="visibility: hidden;">
- <div class="bubble2"><img src="images/homepageWording2.gif" alt="PSDTUTS" /></div>
- </div>
- <div id="pageWrap2">
- <div class="page2" id="psdPage2"><a href="work.html"><img src="images/logoHome.gif" alt="PSDTUTS" /></a></div>
- </div>
- </div>
- </div>
- </body>
- </html>


