内容列表页
 
2006-12-22 15:09:00
<html>

<head>

<title>javascript代码格式化和语法着色</title>

<meta http-equiv="content-type" content="text/html; charset=gb2312" />

<style>

* { padding:0px; margin:0px; font-size:13px; ..
 
2007-2-27 14:33:00
<div id="yongfa365"></div>

<input type="button" name="start" value="start" onclick=startshow();>

<input type="button" name="stop" value="stop" onclick="s..
 
2006-12-15 20:21:00
'//--------------------------------------------------
'//原文:http://3rgb.com,作者:柠檬园主
'//转载请保留此信息
'//--------------------------------------------------

FCKeditor至今已经到了2.3.1版本了,对于国内的WEB开发者来说,也基本上都已经“闻风知多少”了,很多人将其融放到自己的项目中,..
 
2006-12-11 14:30:00
<form name="form1">
<input name="username" value="liliil" onclick="aaa()">


</form>
<script>
function aaa()
{
i=1;
iii="form"+i;
iii=eval(iii);
alert(iii.username.value);

}
</script>
 
2006-11-28 20:52:00
 onClick="if(form1.userid.value==''){alert('请输入用户名!');form1.userid.focus();}else{window.open('checkuser.asp?UserID='+form1.userid.value,'check','width=200,height=120');}"
 
2006-11-28 11:02:00
function trim(inputString)
{
    return inputString.replace(/^ +/,"").replace(/ +$/,"");
}

function copycode(obj)
{
    var rng = document.body.createTextRange();
    rng.moveToElement..
 
2006-11-27 10:52:00
<div id="webjx">
<script>
setInterval("webjx.innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());",1000);
</script>
</div>
 
2006-11-27 10:35:00
  想必大家都注意到<marquee>的不循环滚动,所以出现了很多替代脚本,或iframe或JS输出<marquee>,不管怎么做,都略显麻烦。下面说一下这个相对简单的实现思路:一个设定宽度并且隐藏超出它宽度的内容的容器demo,里面放demo1和demo2, demo1是滚动内容,demo2为demo1的直接克隆,通过不断改变demo1的scrol..
 
2006-11-27 10:19:00
*******************************************************《方法一》****************************************************

main.htm:

<html>  
      <head>  
         <meta    htt..
 
2006-11-14 22:28:00
getElementById getElements

后两个是得到集合,byid只是得到单个对象

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

getElementById 的用法

举个例子:
<a id="link1" name="link1" href=&quo..
 
2006-11-14 18:13:00
<select onchange="alert(this.options[this.selectedIndex].innerText)">
<option value=1>111111</option>
<option value=2>222222</option>
<option value=3>333333</option>
<option value=4>444444</option>
<option value=5>555555..
 
2006-11-8 21:43:00
原文: http://www.cnblogs.com/birdshome/archive/2005/01/05/87009.html

    数组是JavaScript提供的一个内部对象,它是一个标准的集合,我们可以添加(push)、删除(shift)里面元素,我们还可以通过for循环遍历里面的元素,那么除了数组我们在JavaScript里还可以有别的集合吗?

   ..
 
2006-11-5 8:56:00
$(*+.[?\^{|
 
2006-11-1 20:18:00
  var delta=0.8;

  var collection;

  var closeB=false;

  function floaters() {

    this.items  = [];

    this.addItem  = function(id,x,y,content)

          {

  &nbs..
 
2006-11-1 10:37:00
Javascript中,也有对字符串操作的类似的方法(.substring(),.indexOf(),.length)。但在Javascript中,求字符串(str)的长度是str.length,而不是str.length()

<script>
function IndexDemo(str2){
   var str1 = "我"
   var s = str1.length;
   return(s);..
 
     
 
 
文章分类
 
 
.Net + C#(73)
 
 
ASP+VBS(161)
 
 
 
Linux(10)
 
 
 
web 2.0(26)
 
 
 
 
 
心程(68)
 
生活(97)
 
 
     

Power by :柳永法(yongfa365)'Blog  | 京ICP备07011491号  QQ:64049027  E-mail:64049027@qq.com yongfa365'CodePlex yongfa365'CodeGoogle

申请友情链接 要求:跟本站主题相类似正规网站,双方交换为首页位置

转载请注明来源,以便后人及时得到最新、修正、加强版!!!