<머리>
테스트 <스타일>
div,h6,body{padding:0;margin:0;}
div,h6{font:bold 12px/24px 'Tahoma';text-indent:15px;}
.car-mod{ 위치:상대적;너비:200px;}
.car-menu{너비:200px;배경:#c06;cursor:pointer;color:#fff;}
.car-box{테두리:2px 솔리드 #c06 ;너비:300px;디스플레이:없음;}
.car-box h6{배경-색상:#f5f5f5;배경-이미지:-moz-linear-gradient(#f5f5f5,#fff);}
.things {border-top:1px solid #ccc;padding:50px 15px;}
<본문>
<스크립트>
(function(){
//线上调用这个插件的时候直接调用animation.js这个是压缩了的
var D = document,carMod = D.getElementById(" J_car_mod"),carBox = D.getElementById("J_car_box"),carControl=true;
//변경
carMod.onmouseover = function(even){
var even = even || window.event,target = even. target || even.srcElement
if(target.className=="car-menu"){
!!carControl&&(carObj = new ani(carBox,{maxVal:1,sty:"opacity"}, function(){carControl=false;}))
carObj = null
//출제隐藏
this.onmouseout = function(even){
var e = 짝수 | | Window.Event, eltg = e. RelatedTarget? reltg.parentNode;}
if(reltg != this){
!carControl&&(carObj1 = new ani(carBox,{maxVal:0,sty:"opacity"},function(){carControl=true;} )));
carObj1 = null;
}
}
}
})()