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 怎么写颜色高亮显示??? 求助 一个SQL语句!! 请问php生成一个渐变图片怎么写? 关于PHP 压缩函数的问题 验证码字体大小问题 cgi问题 怎么使得zend 5.2 支持我本机的php 5.1.4? 后台无法把数据添加进数据库?谢谢了 急救!在新用户注册中,当用户输入的内容含有“'”或“"”时,如何屏蔽或者如何给出错误提示? PHP 急救!! 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";