div css jquery操作,至于小框框,一般就是用css实现的层而矣. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function showSubCategory(){ $("#AllSort dt").mouseover(function(){ var newDiv=document.getElementById("EFF_div_"+this.id.substr(7)); this.className="curr"; if (newDiv){ newDiv.style.display="block"; return; }else{ var CLASS_NAME=($.browser.msie?($.browser.version>"7.0")?"class":"className":"class"); var newDiv_wrap=document.createElement("div"); newDiv_wrap.setAttribute(CLASS_NAME,"pop_wrap"); newDiv_wrap.setAttribute("id","EFF_div_"+this.id.substr(7)) var newDiv=document.createElement("div"); newDiv.setAttribute(CLASS_NAME,"pop"); newDiv_wrap.appendChild(newDiv); newDiv.innerHTML=this.nextSibling.innerHTML; this.parentNode.insertBefore(newDiv_wrap,this); newDiv_wrap.style.display="block"; } //test/ $(".pop_wrap").mouseover(function(){ $(this).css({"display":"block"}); this.nextSibling.className="curr"; }).bind("mouseleave",function(){ $(this).css({"display":"none"}); this.nextSibling.className=""; }) //test end/ }).bind("mouseleave",function(){ this.className=(this.nextSibling.className=="Dis")?"curr":""; $(".pop_wrap").css({"display":"none"}); }); }它的源码,呵呵. 但就不知道这个层的css是什么啊.就一个文本框后在加了一个大文本框...用css怎么才能表现出这种效果了? 仔细看上面的js代码,只不过是创建两个div. var newDiv_wrap=document.createElement("div"); newDiv_wrap.setAttribute(CLASS_NAME,"pop_wrap"); newDiv_wrap.setAttribute("id","EFF_div_"+this.id.substr(7)) var newDiv=document.createElement("div"); newDiv.setAttribute(CLASS_NAME,"pop"); newDiv_wrap.appendChild(newDiv); newDiv.innerHTML=this.nextSibling.innerHTML; this.parentNode.insertBefore(newDiv_wrap,this); newDiv_wrap.style.display="block"; Lsi raid 模拟器.rar (123 Lsi raid 模拟器.rar (123 帮助文档里的事例输出乱码 请求教 windows2003+iis+php,smtp发送邮件失败,请指点! 数组不能赋值问题 正则疑问 PHP链接mysql出错,请教各位 PHP的分页问题! 如何实现打开一个网页30秒后自动转到另一个页面上?急 急!用php的高手请进!关于文件操作权限问题! Linux 下 , php 調用 java 的 class 出錯,請高手幫忙 PHP关于REQUEST一点问题 PHP调用c++编译的webservice出错 请教一超级死循环
function showSubCategory(){
$("#AllSort dt").mouseover(function(){
var newDiv=document.getElementById("EFF_div_"+this.id.substr(7));
this.className="curr";
if (newDiv){
newDiv.style.display="block";
return;
}else{
var CLASS_NAME=($.browser.msie?($.browser.version>"7.0")?"class":"className":"class");
var newDiv_wrap=document.createElement("div");
newDiv_wrap.setAttribute(CLASS_NAME,"pop_wrap");
newDiv_wrap.setAttribute("id","EFF_div_"+this.id.substr(7))
var newDiv=document.createElement("div");
newDiv.setAttribute(CLASS_NAME,"pop");
newDiv_wrap.appendChild(newDiv);
newDiv.innerHTML=this.nextSibling.innerHTML;
this.parentNode.insertBefore(newDiv_wrap,this);
newDiv_wrap.style.display="block";
}
//test/
$(".pop_wrap").mouseover(function(){
$(this).css({"display":"block"});
this.nextSibling.className="curr";
}).bind("mouseleave",function(){
$(this).css({"display":"none"});
this.nextSibling.className="";
})
//test end/
}).bind("mouseleave",function(){
this.className=(this.nextSibling.className=="Dis")?"curr":"";
$(".pop_wrap").css({"display":"none"});
});
}它的源码,呵呵.
就一个文本框后在加了一个大文本框...用css怎么才能表现出这种效果了?
newDiv_wrap.setAttribute(CLASS_NAME,"pop_wrap");
newDiv_wrap.setAttribute("id","EFF_div_"+this.id.substr(7))
var newDiv=document.createElement("div");
newDiv.setAttribute(CLASS_NAME,"pop");
newDiv_wrap.appendChild(newDiv);
newDiv.innerHTML=this.nextSibling.innerHTML;
this.parentNode.insertBefore(newDiv_wrap,this);
newDiv_wrap.style.display="block";