脚 本 之 家 www.jb51.net
页面导航:  不限条件-->)J
本地搜索:
这是按第2下兰色的横条才开始出效果,就是说第1下没有获得foot.style.display=="none",可是CSS里我定义了<style type="text/css">#top {width:100px; background-color:#00CCFF; height:20px}#foot {width:100px; background-color: #CCCC00; height:50px; display:none}</style><script l...
http://www.jb51.net//article/11034.htm
在我们写javascript的时候经肯定会经常用到 document.getElementById() 这个方法,这么长一串很容易写错,而且其中getElementById又有大小写之分。  其实prototype.js里提倡的一个方法就是使用$()简写,通过以下的函数,你可以用$(’id’)来实现document.getElementById(’id’) 这个功能,怎么样,很爽吧!  [code]function $()  {    var e...
http://www.jb51.net//article/10585.htm
原文出处: http://www.dnew.cn/post/196.htm先看下下面几种写法1.function f(x){return x*x;};f(x);2.(function(x){return x*x;})(x);3.(function(x){return x*x;}(x));第一种我们应该都很熟悉了,这是我们经常使用的写法。第二第三种都是匿名函数的写法。--------------------------------------------------------------------------------第二种可以这样理解:v...
http://www.jb51.net//article/9859.htm
[html]<script>varimg_src='';varToAdd='';functionshow_image(){   varnum1=document.reply_form.first_num.value;   varnum2=document.reply_form.second_num.value;   varnum3=document.reply_form.third_num.value;   varnum=num1+num2+num3; ...
http://www.jb51.net//article/470.htm
共有:4/10,当前1/1页  [首页] [上一页] 1 [下一页] [尾页] 转到: