现在用JS做了一个拼图的网页应用 ,网页中间是拼图的主界面有一个东西不知道怎么实现,就是有一个“查看原图”的按钮点击后,会出现第二层,中间显示当前拼图的原图片其实就是类似于大多数网站的“登陆的悬浮框”请问如何实现有类似的代码可以给我参考吗?谢谢了。。!
解决方案 »
- jquery的scrollTop()函数,在firefox的18.0版本浏览器不能使用,在17的版本中可以使用,到底是怎么回事
- JS限制文本框输入问题
- 请教在ie7下怎样才能提示有javascript 错误?
- eglic(圪圪) 进来,给剩余的200分你
- select下拉菜单如何显示层隐藏内容?
- 让电脑在每天下午6点对lan里的每一台电脑发送信息 !
- 求一个树
- 我可以得到在IE里按F1,F5等键的消息吗?并且拦截作自己的处理,而不要一按F54就刷新
- 怎么样用javascript页运行时,调用dos命令???
- 谁会在页面上加入右建菜单?
- 相当棘手的问题,求解啊!
- 在form表单里有多个div,判断隐藏与显示
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title> </head> <body>
<div style="width:1002px; height:500px; background:#000; margin:0 auto; color:#fff; font-size:22px;">底下的拼图<input type="button" value="显示原图按钮" id="btn" /></div>
<div id="show" style="width:200px; display:none; height:200px; position:absolute; left:200px; top:200px; z-index:111; background:#fff; font-size:22px;">显示原图弹出框</div>
</body>
<script>
document.getElementById('btn').onclick = function(){
document.getElementById('show').style.display = 'block';
};
</script>
</html>
document.getElementById('btn').onclick = function(){
document.getElementById('show').style.display = 'block';
};
</script>