[jQuery] Mootools and Jquery conflict

2008-10-04 Thread [EMAIL PROTECTED]

Hey guys,
sorry to bother you with this one, I read the pages about the
nonconflict script etc,...but I 've spent the whole day trying to
figure out how to solve this.

Basicly I have a script made on a mootools library.
I now want to add jQuery's Fancybox to the page. When I do this my
mootools accoridon style menu won't work anymore.
When I delete the jQuery.js file it works again.
I understand its a problem with the '$' which is used in both scripts.
But I really cant find the way to solve it by using the nonconflict
way.

I will post the code I have in my head.
Only the last rules of the script are jQuery lines.
All the rest is either the mootools script, and a dynamic content
script I use (but this one doenst hav any conflict with either
mootools as jQuery.

I really hope someone can get me on my way since I am quite a beginner
in javascript.
Thanks

!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=iso-8859-1
script type=text/javascript src=htr_ex2_bestanden/mootools2.js/
script
script type=text/javascript src=htr_ex2_bestanden/ajax-dynamic-
content.js/script
script type=text/javascript src=htr_ex2_bestanden/ajax.js/
script
link rel=stylesheet type=text/css href=fancy.css
media=screen /

script type=text/javascript src=jquery.js/script
script type=text/javascript src=jquery.metadata.js/script
script type=text/javascript src=jquery.pngFix.pack.js/script
script type=text/javascript src=jquery.fancybox.js/script



script language=javascript

!--
function changeColor(obj,color){
obj.style.backgroundColor = color;
}
function ClearForm() {
  document.testform.email.value= ;
}

/script
script type=text/javascript
window.onload = function(){
//select the first button
var button1 = $('button1');
//select the second button
var button2 = $('button2');
//select the first content element
var content1 = $('contentElement1');
//select the second content element
var content2 = $('contentElement2');

//The height transition we attach to 'contentElement1'
var b1Toggle = new Fx.Style('contentElement1', 'height',{duration:
500});
//The height transition we attach to 'contentElement2'
var b2Toggle = new Fx.Style('contentElement2', 'height',{duration:
500});

//add an onclick event listener to button1
button1.addEvent('click', function(){
  //toggle height transition (hide-show)
  if(content2.getStyle('height').toInt()  0){
//hide
b2Toggle.start(0);
  }if(content1.getStyle('height').toInt()  0){
//hide
b1Toggle.start(0);

  }else{
//show
b1Toggle.start(c1Height);

  }

  return false;
});

//add an onclick event listener to button2
button2.addEvent('click', function(){
  //toggle height transition (hide-show)
  if(content1.getStyle('height').toInt()  0){
//hide
b1Toggle.start(0);
  }if(content2.getStyle('height').toInt()  0){
//hide
b2Toggle.start(0);
  }else{
//show
b2Toggle.start(c2Height);
  }

  return false;
});

//set css display:block for the contentElements
content1.setStyle('display','block');
content2.setStyle('display','block');

//get the scrollSize of the contentElements
var c1Height = content1.getSize().scrollSize.y;
var c2Height = content2.getSize().scrollSize.y;
};
/script

script type=text/javascript
$j(document).ready(function() { $j(p#test1 a).fancybox();
$j(p#test2 a).fancybox({ 'hideOnContentClick': true }); $j(p#test3
a).fancybox({ 'zoomSpeedIn': 0, 'zoomSpeedOut': 0, 'overlayShow':
true }); });

/script


[jQuery] mootools and jquery conflict....

2008-09-11 Thread KEVIN EVANS

Hello,

I have a page here where the ScrollFollow plugin for Jquery is  
conflicting with the phatfusion plugin in mootools.

The scrollfollow is on the bottom left ribbon button. The phatfusion  
is on the  4 vertical photos you see in the banner area.

http://67.199.21.74/default.asp

I have read the page where how to fix it but I must not be doing it  
right. The phatfusion is working but not the scrollfollow, which works  
if I take out the phatfusion code.

I have this in the head

link href=imageMenu2.css rel=stylesheet type=text/css  
media=screen /
script type=text/javascript src=mootools.js/script
script type=text/javascript src=imageMenu.js/script

script type=text/javascript 
src=http://67.199.21.74/js/jquery.validate.pack.js 
/script
script type=text/javascript src=http://67.199.21.74/js/ 
ui.core.js/script
script type=text/javascript src=http://67.199.21.74/js/jquery.easing.js 
/script
script type=text/javascript src=http://67.199.21.74/js/jquery.cookie.js 
/script
script type=text/javascript 
src=http://67.199.21.74/js/jquery.scrollFollow.js 
/script

script type=text/javascript
  $( document ).ready( function () {
   $( '#call' ).scrollFollow( {
container: 'wrap'
   } );
  } );
/script

script
  jQuery.noConflict();

  // Use jQuery via jQuery(...)
  jQuery(document).ready(function(){
jQuery(div).hide();
  });
/script


script src=sifr/sifr.js type=text/javascript/script
script src=sifr/sifr-addons.js type=text/javascript/script
link rel=stylesheet href=sifr/sIFR-screen.css type=text/css  
media=screen /


--

Any ideas how to fix it?

Thanks!
Kevin



[jQuery] Mootools and Jquery conflict?

2008-09-11 Thread Netherscurial

Hello,

I have a page here where the ScrollFollow plugin for Jquery is
conflicting with the phatfusion plugin in mootools.

The scrollfollow is on the bottom left ribbon button. The phatfusion
is on the  4 vertical photos you see in the banner area.

http://67.199.21.74/default.asp

I have read the page where how to fix it but I must not be doing it
right. The phatfusion is working but not the scrollfollow, which works
if I take out the phatfusion code.

I have this in the head

link href=imageMenu2.css rel=stylesheet type=text/css
media=screen /
script type=text/javascript src=mootools.js/script
script type=text/javascript src=imageMenu.js/script

script type=text/javascript src=http://67.199.21.74/js/
jquery.validate.pack.js/script
script type=text/javascript src=http://67.199.21.74/js/
ui.core.js/script
script type=text/javascript src=http://67.199.21.74/js/
jquery.easing.js/script
script type=text/javascript src=http://67.199.21.74/js/
jquery.cookie.js/script
script type=text/javascript src=http://67.199.21.74/js/
jquery.scrollFollow.js/script

script type=text/javascript
 $( document ).ready( function () {
  $( '#call' ).scrollFollow( {
   container: 'wrap'
  } );
 } );
/script

script
 jQuery.noConflict();

 // Use jQuery via jQuery(...)
 jQuery(document).ready(function(){
   jQuery(div).hide();
 });
   /script


script src=sifr/sifr.js type=text/javascript/script
script src=sifr/sifr-addons.js type=text/javascript/script
link rel=stylesheet href=sifr/sIFR-screen.css type=text/css
media=screen /


--

Any ideas how to fix it?

Thanks!