点击一个事件弹出一个层.用来为相册设置密码.怎么取到点击那个按钮的值
我用Repeater绑定的
如图↘
问题补充:
js代码
<script type="text/javascript" language="javascript">
function ShowNo()
//隐藏两个层
{
document.getElementById("doing").style.display="none";
document.getElementById("divLogin").style.display="none";
}
function $(id)
{
return (document.getElementById) ? document.getElementById(id) : document.all[id] ;
}
function showFloat() //根据屏幕的大小显示两个层
{
var range = getRange();
$('doing').style.width = range.width + "px";
$('doing').style.height = range.height + "px";
$('doing').style.display = "block";
document.getElementById("divLogin").style.display="";
}
function getRange() //得到屏幕的大小
{
var top = document.body.scrollTop;
var left = document.body.scrollLeft;
var height = document.body.clientHeight;
var width = document.body.clientWidth;
if (top==0 && left==0 && height==0 && width==0)
{
top = document.documentElement.scrollTop;
left = document.documentElement.scrollLeft;
height = document.documentElement.clientHeight;
width = document.documentElement.clientWidth;
}
return {top:top ,left:left ,height:height ,width:width } ;
}
</script>
前台代码是↘
<a href="javascript:void(0)" onclick="showFloat(<%# Eval("XiangceId") %>)">
<asp:RadioButton ID="RadioButton3" runat="server" /></a>
弹出层代码
周奇
|
初学一级
|
园豆:
150
提问于:2009-09-01 16:37