Dec 26
"^\d+$"  //非负整数(正整数 + 0)

"^[0-9]*[1-9][0-9]*$"  //正整数

"^((-\d+)|(0+))$"  //非正整数(负整数 + 0)

"^-[0-9]*[1-9][0-9]*$"  //负整数

"^-?\d+$"    //整数

"^\d+(\.\d+)?$"  //非负浮点数(正浮点数 + 0)
Oct 19
前台JS代码
 function grdSelect(intIndex){
           var intCount;
           intCount = document.all("hideCount").value;
           document.all("sqlFlag").value = intIndex;
           for(i = 0; i < intCount; i++){
               if(i == intIndex){
                   grdType.rows(intIndex).bgColor="#FFFACD";
                   document.all("txtType").value=grdType.rows(intIndex).cells(1).innerText;                                              
                   }
                   else  
                       grdType.rows(i).bgColor="#FFFFFF";                                        
               }                
             }          

后台_ItemDataBound代码
Nov 22
用来做个看图网页真是不错哦!
<html>
<head>
<title>Image Zoom</title>
<script language="JavaScript1.2">
var zoomfactor=0.05 //Enter factor (0.05=5%)

function zoomhelper(){
if (parseInt(whatcache.style.width)>10&&parseInt(whatcache.style.height)>10){
whatcache.style.width=parseInt(whatcache.style.width)+parseInt(whatcache.style.width)*zoomfactor*prefix
whatcache.style.height=parseInt(whatcache.style.height)+parseInt(whatcache.style.height)*zoomfactor*prefix
}
}

function zoom(originalW, originalH, what, state){
if (!document.all&&!document.getElementById)
return
whatcache=eval("document.images."+what)
prefix=(state=="in")? 1 : -1
if (whatcache.style.width==""&#124;&#124;state=="restore"){
whatcache.style.width=originalW
whatcache.style.height=originalH
if (state=="restore")
return
}
else{
zoomhelper()
}
beginzoom=setInterval("zoomhelper()",100)
}

function clearzoom(){
if (window.beginzoom)
clearInterval(beginzoom)
}

</script>
</head>
<body >
<!-- CHANGE first 43 to your image width, second 43 to image height, and "logo" to your image's name-->
<a href="#" onmouseover="zoom(43,43,'logo','in')" onmouseout="clearzoom()">Zoom In</a> &#124; <a href="#" onmouseover="zoom(43,43,'logo','restore')">Normal</a> &#124; <a href="#" onmouseover="zoom(43,43,'logo','out')" onmouseout="clearzoom()">Zoom Out</a><br><br><br>
<div style="position:relative;width:43;height:43" align="center"><div style="position:absolute">
<img name="logo" src="logo.gif">
</div></div>
</body>
</html>
Tags:
分页: 2/2 第一页 上页 1 2 最后页 [ 显示模式: 摘要 | 列表 ]