复制代码 代码如下:
//直接在js中写
<script language="javascript">
function EnterTextBox()
{
if(event.keyCode == 13 && document.all["TextBox1"].value != "")
{
event.keyCode = 9;
event.returnValue = false;
document.all["TextBox1"].click();
}
}
</script>
<body onkeypress="return EnterTextBox()">
//此处TextBox1为页面上TextBox的ID
<script language="javascript">
function EnterTextBox(button)
{
if(event.keyCode == 13 && document.all["TextBox1"].value != "")
{
event.keyCode = 9;
event.returnValue = false;
document.all[button].click();
}
}
</script>
复制代码 代码如下:
TextBox1.Attribute.add("onkeypress","EnterTextBox('Button1')");
复制代码 代码如下:
<img src="<%# Eval("ImageName","image/{0}")>"
复制代码 代码如下:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<script language="javascript"><!--
function makevisible(cur,which){
if (which==0)
cur.filters.alpha.opacity=70
else
cur.filters.alpha.opacity=100
}
</script>
<img src="http://www.vevb.com/images/logo.gif">
</body>
</html>
新闻热点
疑难解答
图片精选