Difference: JavaScript (2 vs. 3)

Revision 316 Jul 2010 - FlavioAraujo

Line: 1 to 1
 
%STARTINCLUDE%
<script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script>
Line: 9 to 9
 var tout;

$("document").ready(function(){

Changed:
<
<
$("#menu").children("ul").children("li").children("a").mouseenter(function(){ $(this).parents("li").children("ul").toggle();
>
>
$("#menu ul li").mouseenter(function(){ $(this).children("ul").toggle(); $(this).css("background-color", "#b37d46");
  });
Changed:
<
<
$("#menu").children("ul").children("li").children("a").mouseleave(function(){ $(this).parents("li").children("ul").toggle();
>
>
$("#menu ul li").mouseleave(function(){ $(this).children("ul").toggle(); $(this).css("background-color", "#DD7F1F");
  });

//macra com a classe "active" o item de menu caso leve à página atual

 
This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback