易截截图软件、单文件、免安装、纯绿色、仅160KB

javascript:void(0)

  javascript:void(0)
   刚开始都不知道是啥意思
  其实就是一个死链接,什么事情都不做。
  <a id="link_${user.account}" href="javascript:void(0);" onclick="changSubmit();" style="cursor:pointer;height:25px;width:60px;margin-top:10px;">发送email</a>
  这句话中的javascript:void(0)  就是一个死链接,什么事情都没做,主要的还是onclick事件。
  常见的几种链接
     1.window.open(''url'')
2.用自定义函数
         <script>
         function openWin(tag,obj)
         {
             obj.target="_blank";
             obj.href = "Web/Substation/Substation.aspx?stationno="+tag;
             obj.click();
         }
        </script>
<a href="javascript:void(0)" onclick="openWin(3,this)">株洲</a>
window.location.href="";


相关文档:

javascript大集合

CSDN的Blog比较强悍,一篇文章能写那么多,大家去出处看吧,那儿好看些:http://blog.csdn.net/panxuan/archive/2007/11/26/1902826.aspx 
事件源对象 
event.srcElement.tagName 
event.srcElement.type 
捕获释放 
event.srcElement.setCapture();  
event.srcElement.releaseC ......

javaScript通用数据类型校验

  /** 
* 取得字符串的字节长度 
*/ 
代码
function strlen(str)
{
var i;
var len;

len = 0;
for (i=0;i<str.length;i++)
{
if (str.charCodeAt(i)>255) len+=2; else len++;
}
return l ......

无缝滚动新闻的Javascript源代码

重点在于function scroll(),function clipShow()及以下for循环。
无缝滚动新闻的Javascript源代码,放在这里,有需要的时候可能用得上:
//CSS样式
<style>
.new_newsT{
 padding-top: 10px;
 padding-bottom: 8px;
}
.new_newsT  .list {
 CLEAR: both; MARGIN: 0px 6px 0px 10px
} ......

javascript获得鼠标的绝对位置

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name=" ......

对于JavaScript的 Stack overflow at line 错误总结

对于JavaScript的 Stack overflow at line 错误总结
该错误只在IE中出现,出现该提示的原因主要有两种:
     1. 重定义了系统的触发事件名称作为自定义函数名如:  onclick / onsubmit ...  都是系统保留的事件名称,不允许作为重定义函数名称。
     2. ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号