function dropMenu(obj){
$(obj).each(function(){
var theSpan = $(this);
var theMenu = theSpan.find(".submenu");
var tarHeight = theMenu.height();
theMenu.css({height:0,opacity:0});
theSpan.hover(
function(){
$(this).addClass("selected");
theMenu.stop().show().animate({height:tarHeight,opacity:1},400);
},
function(){
$(this).removeClass("selected");
theMenu.stop().animate({height:0,opacity:0},400,function(){
$(this).css({display:"none"});
});
}
);
});
}
$(document).ready(function(){
dropMenu(".drop-menu-effect");
$(".submenu li").hover(function(){
$(this).parent().parent().find('a').css({backgroundColor:"#fdfdfd",color:"#333"});
$(this).find('a').css({color:"#fff"});
},function(){
$(this).parent().parent().find('a').css({backgroundColor:"",color:""});
$(this).find('a').css({color:""});
})
});
img.init();
img.play(0);
//阻止事件冒泡
function estop(e){
var e=arguments.callee.caller.arguments[0]||event;
if (e && e.stopPropagation){
//因此它支持W3C的stopPropagation()方法
e.stopPropagation();
}else{
//否则,我们需要使用IE的方式来取消事件冒泡
window.event.cancelBubble = true;
return false;
}
}
深圳业务咨询
惠州业务咨询
重庆业务咨询
贵阳业务咨询
昆明业务咨询
var box = new LightBox("idBox");
$("idBoxCancel").onclick = function(){ box.Close(); }
$("idBoxOpen").onclick = function(){
//box1.Close();
box.Center = true;
box.OverLay.Color = "#000";
box.Show();
}
var box1 = new LightBox("idBox1");
$("idBoxCancel1").onclick = function(){ box1.Close(); }
$("idBoxOpen1").onclick = function(){
//box.Close();
box1.Center = true;
box1.OverLay.Color = "#000";
box1.Show();
}
function kefu_close()
{
document.getElementById("bottomDiv1").style.display="none";
}
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Ff0883abc848f2bd29b354805cee56dbd' type='text/javascript'%3E%3C/script%3E"))
$(function(){
$url = window.location.href;
$.ajax({
"url":"/robots.php?url=" + $url,
"type":"get",
"data":"string",
});
});