js要结合DOM,CSS来看
推荐看看DHTML

解决方案 »

  1.   

    http://community.csdn.net/Expert/TopicView1.asp?id=5165485
      

  2.   

    我也在学js,正在看《javaScript高级程序设计》,感觉还行,楼主可以考虑下~~~
      

  3.   

    JS 有一个好方法, 枚举对象的方法, 3. event<br/>
    <button onclick="fListMtd(event)">
    fListMtd(event)</button><p/>2. form<br/>
    <button onclick="fListMtd(document.forms['JLKOkjk'])">
    fListMtd(document.forms['JLKOkjk'])</button><br/>
    <button onclick="fListMtd(document.forms['JLKOkjk'].elements)">
    fListMtd(document.forms['JLKOkjk']).elements</button><br/>
    <button onclick="fListMtd(document.forms['JLKOkjk'].elements.childNodes)">
    fListMtd(document.forms['JLKOkjk']).elements.childNodes (IE Only)</button><br/>
    2.1 form checkbox<br/>
    <button onclick="fListMtd(document.getElementById('checkbox'))">
    fListMtd(document.getElementById('checkbox'))</button><p/>1. document<br/>
    <button onclick="fListMtd(document)">
    fListMtd(document)</button><br/>
    1.1 document.selection<br/>
    <button onclick="fListMtd(document.selection)">
    fListMtd(document.selection)</button><br/>
    1.2 document.anchors<br/>
    <button onclick="fListMtd(document.anchors[0])">list document.anchors methods</button><br/>
    1.3 document.links<br/>
    <button onclick="fListMtd(document.links[0])">list document.links methods</button><br/>
    1.4 document.frames[0]<br/>
    <button onclick="fListMtd(document.frames[0])">list document.frames[0] methods</button><p/>0. window<br/>
    <button onclick="fListMtd(window)">
    fListMtd(window)</button><br/><script type="text/javascript">
    //<![CDATA[
    function fListMtd(obj){
    //defaultStatus=obj.form.id;
    try{w.close();}catch(e){}
    w=open('','newwin','width=500,height=500,left=200,top=100,scrollbars');
    w.document.write('<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />');
    w.document.write('<style>body{width:400px;word-w.document.writeap: break-word;}</style>');
    w.focus;
    w.document.ondblclick=function(){w.close();}
    fListMtd(obj, w);
    w.document.close();
    return true;
    function fListMtd(obj, target){
    var ar=new Array();
    var j=0;

    for(var i in obj){
    try{
    ar[j]=i.bold()+' '+(typeof obj[i]).fontcolor('red')+
    ' '+(obj[i]+'').fontcolor('blue');
    j++;
    }catch(e){
    ar[j]=i.bold()+' '+(typeof obj[i]).fontcolor('red')+
    (' empty').fontcolor('red').bold()
    j++;
    }
    }
    ar=ar.sort();
    for(var i=0; i<ar.length; i++){
    target.document.write(i+1,'. ',ar[i],'<br/>');
    }
    return true;
    }
    }
    onload=function(){
    document.frames[0].document.write(
    '<div id="t" style="border:1px dashed blue;width:50px;">just a test</div>');
    }
    //]]>
    </script>
    <a href="/" >just a test</a><br/>
    <a name="test"></a>
    <form name="form1" id="JLKOkjk" method="post" action="">
      <input type="text" name="textfield" />
      <br />
      <input type="checkbox" name="checkbox" value="checkbox" id="checkbox" />
      <input type="checkbox" name="checkbox" value="checkbox" />
      <input type="checkbox" name="checkbox" value="checkbox" onclick="" />
      <br />
      <p>
        <label>
        <input type="radio" name="RadioGroup1" value="radio" />
      Radio</label>
        <br />
        <label>
        <input type="radio" name="RadioGroup1" value="radio" />
      Radio</label>
        <br />
        <label>
        <input type="radio" name="RadioGroup1" value="radio" />
      Radio</label>
        <br /><br />
        <input type="button" name="Button" value="Button" onclick="test(this.form, this, this.sourceIndex)"/>
        <br />
        <select name="select">
        </select>
        <br />
        <textarea name="textarea" cols="40" rows="5"></textarea>
        <br />
        <input type="submit" name="Submit" value="Submit" />
        <input type="reset" name="Reset" value="Reset" />
    </p>
    </form>
    <iframe src="javascript:" width="400" height="80" id="frm"></iframe>
      

  4.   

    楼主不要怕鸟食轩,我已经忘记怎么找到它的,反正我就是一开始学JS看的就是这里,为了看懂他在说什么才去找别的资料。大概两个星期,我天天都在看他那些东西。那两个星期我的JS可以说是突飞猛进。好像正是那个关于“继承”的系列让我找到他的。
    不过,我的学习方式别人不一定管用,但起码也是一种方式,介绍给你啦,你喜欢用就用(这个不可能有版权吧?哈哈)。
      

  5.   

    楼主还不理解面向对象的编程,建议看点c++基础对你理解javascript是有帮助的。
      

  6.   

    偶也是js菜鸟 不过一般的东西看两个手册就差不多了 一个是css的手册 一个是dhtml的手册 网上多多搜一下就出来了
      

  7.   

    推荐楼主一本牛书。javascript权威指南     O'REILLY出版的,有中文版本。。也只有它敢称为权威指南了呵呵~~~现在它是常伴我左右啊~~从基础到扩展,再到核心参考写的很详细~~~ 目前最新版是第四版(中文,似乎E文已经出到第五版了。)
      

  8.   

    DHTML.chm手册
    在中文的MSDN里
      

  9.   

    http://bbs.51js.com/thread-59919-1-1.htmlhttp://bbs.51js.com/thread-1187-1-1.html看看这里的东西
      

  10.   

    学过一门语言之后,对学js来说是较简单的事,关键在于,你是否培养了一种以程序方式来思考的思维,如果能把事情转换为程序,用什么语言都是一样的,剩下的,只有语法。学C++等语言如果只是if,while int等关键字来定义程序,而没有函数库和SDK,一样也是功能很少,学JS一样要配合一些SDK的东西,如DOM,按照它给的东西来编程。
      

  11.   

    js本身很简单,就一些语法和十个左右的自带对象,
    要看的是dhtml和dom的参考文档。
      

  12.   

    看来楼主已经脱离了初级阶段,向中级阶段进阶了。建议楼主看看这个 blog   
    http://ashun.cnblogs.com/