百度知道里面的浮动登陆框是怎么实现的?
百度知道里面的浮动登陆框是怎么实现的?能不能给个思路?[img]http://www.xtgc.net/upload/baidu.jpg[/img]
我没有做过这个东西,不过我想模式窗口加透明层应该可以完成…… AJAX的过于死板,不能满足客户的要求,最好使用CSS与DOM,XML技术;
上面的可用2个层和触发事件完成 用div层就可以了吧,感觉这个css了解的人,很容易就作出效果来了 ajax DIV+CSS ext
EXT http://freexiaoyu.cnblogs.com 页面中:
<div id="divBG" style="display:none; position: absolute; left:0px; top:0px; background-color:#F7F9FE;">
</div>
<div id="loginCtrl" class="" style="display:none; position: absolute; left:0px; top:0px; background-color:Transparent; width:400px;">
<center>
<table width="100%">
.............
</table>
</center>
</div>
脚本:
function login()
{
sWidth=document.body.offsetWidth;
sHeight=screen.height;
var bgObj = document.getElementById('divBG');
bgObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=2,opacity=25,finishOpacity=75";
bgObj.style.opacity="0.5";
bgObj.style.width = sWidth;
bgObj.style.height = sHeight;
bgObj.style.display="inline";
var bgObjCtrl = document.getElementById('loginCtrl');
bgObjCtrl.style.width = sWidth;
bgObjCtrl.style.display="inline";
} [tk01] 好高深的技术
页:
[1]
