dw小网页怎么实线变为超链接?

来源:百度知道 编辑:UC知道 时间:2024/06/27 18:10:23
我用dw制作网页,想实现点击一个连接后,弹出一个居中的小网页,就像cf官网的登录窗口一样。http://cf.qq.com/index.shtml 我知道可以通过行为中的打开浏览器做到,可是不是一个超链接,那谁会去点击它呢?请问cf官网中的那个窗口怎么做到?

试试这个代码,自己改改,应该是可以实现你说的效果

<style>
html,body{font-size:12px;margin:0px;height:100%;}
.mesWindow{border:#666 1px solid;background:#fff;}
.mesWindowTop{border-bottom:#eee 1px solid;margin-left:4px;padding:3px;font-weight:bold;text-align:left;font-size:12px;}
.mesWindowContent{margin:4px;font-size:12px;}
.mesWindow .close{height:15px;width:28px;border:none;cursor:pointer;text-decoration:underline;background:#fff}
</style>
<script>
var isIe=(document.all)?true:false;
//设置select的可见状态
function setSelectState(state)
{
var objl=document.getElementsByTagName('select');
for(var i=0;i<objl.length;i++)
{
objl[i].style.visibility=state;
}
}
function mousePosition(ev)
{
if(ev.pageX || ev.pageY)
{
return {x:ev.pageX, y:ev.pageY};
}
return {
x:ev.clientX + document.body.scrollLeft - document.body.clien