日历

« 2008-07-25  
  12345
6789101112
13141516171819
20212223242526
2728293031  

RSS订阅

  • prototype.js函数介绍

    2007-06-02 18:29:56

    函数名 解释 举例
    Element.toggle 交替隐藏或显示 Element.toggle(''div1'',''div2'')
    Element.hide 隐藏 Element.hide(''div1'',''div2'')
    Element.show 显示 Element.show(''div1'',''div2'')
    Element.remove 删除 Element.remove(''div1'',''div2'')
    Element.getHeight 取得高度 Element.getHeight(''div1'')
    Toggle.display 和Element.toggle相同 Toggle.display(''div1'',''div2'')
    Insertion.Before 在DIV前插入文字 Insertion.Before(''div1'',''my content'')
    Insertion.After 在DIV后插入文字 Insertion.After(''div1'',''my content'')
    Insertion.Top 在DIV里最前插入文字 Insertion.Top(''div1'',''this is a text'')
    Insertion.Bottom 在DIV里最后插入文字 Insertion.Bottom(''div1'',''this is a text'')
    PeriodicalExecuter 以给定频率调用一段Javascrīpt PeridicalExecutor(test, 1)"这里test是Javascrīpt的函数,1是频率(1秒).
    $ 取得一个DIV, 相当于getElementById() $(''div1'')
    Field.clear 清空一个输入框 Field.clear(''textfield1'')
    Field.focus 把焦点集中在输入框上 Field.focus(''select1'')
    Field.present 判断内容是否为空 alert(Field.present(''textfield1''))"
    Field.select 选择输入框的内容 Field.select(''textfield1'')"
    Field.activate 把焦点集中在输入框上并选择输入框的内容 Field.activate(''textfield1'')"
    Form.serialize 把表格内容转化成string  
    Form.getElements 取得表格内容为数组形式  
    Form.disable disable表格所有内容 Form.disable(''form1'') (这个好象不work)
    Form.focusFirstElement 把焦点集中在表格第一个元素上 Form.focusFirstElement(''form1'')
    Form.reset Reset表格 Form.reset(''form1'')
    Form.Element.getValue 取得表格输入框的值 Form.Element.getValue(''text1'')
    Form.Element.serialize 把表格中输入框内容转化成string Form.Element.serialize(''text1'')
    $F 等同于Form.Element.getValue() $F(''text1'')
    Effect.Highlight 高亮特效. Effect.Highlight(''text1'')
    Effect.Fade 褪色特效  
    Effect.Scale 放大缩小(百分比)

    Effect.Scale(''text1'', 200)
    这里200 = 200%, 即两倍

    Effect.Squish 消失特效.文字缩小后消失 Effect.Squish(''text1'')
    Effect.Puff 消失特效.文字放大后消失 Effect.Puff(''text1'')
    Effect.Appear 出现特效  
    Effect.ContentZoom ZOOM特效.  
    Ajax.Request 传送Ajax请求给服务器 Ajax.Request(''http://server/s.php'')
    Ajax.Updater 传送Ajax请求给服务器并用答复的结果更新指定的Container Ajax.Updater(''text1'',''http://server/s.php'')
    基本用法:prototype.js给每个主要的类都分了一个Class,使用起来很方便.要产生特定的效果,只要用new Class.function(<argument>)就可以了.例如:
    <DIV id="div1"><a href="#" ōnclick="new Element.toggle('div2')">Click Me</a></DIV>
    <DIV id="div2">Hello!</DIV>

    当点击Click Me的时候,div2就会交替隐藏或显示.注意,你可以给toggle加上无限个parameter,比如Element.toggle(''div2'',''div3'',''div4'',...)

  • 六 让你的文本链接渐隐渐显

    2007-04-19 16:31:56

    引用








    让你的文本链接渐隐渐显

    Tags -

    Link URL: http://www.jiaqixiaoyu.com/blog/read.php?51
  • 类似与QQ的好友/黑名单之类的树型菜单_极品

    2007-04-19 16:31:56

    引用




    New Document












          
       

      


    Tags -

    Link URL: http://www.jiaqixiaoyu.com/blog/read.php?52
  • DIV的透明层实现

    2007-04-19 16:31:56

    引用


            
             
                                    
                
                                  
                                  
                                    
                
                                  
                                  
                                    
                
                                  
                                  
                                    
                
                                  
                                  
                                    
                
                                  
                                  
                                    
                
                                  
                               
    你也可以在这里插入图片
    你想注册地图名片吗
    http://mc.mapabc.com
    EMAIL:lipeng@mapabc.com
    地址
    邮编

                  

    Tags -

    Link URL: http://www.jiaqixiaoyu.com/blog/read.php?53
  • 漂亮的脚本日历

    2007-04-19 16:31:56

    3 年 月 4
    引用









         
      


      






       3 4
      


    Calendar();

    Tags -

    Link URL: http://www.jiaqixiaoyu.com/blog/read.php?54
  • 进入,退出页面的各种效果:

    2007-04-19 16:31:56


    进入页面
    推出页面
    这个是页面被载入和调出时的一些特效。duration表示特效的持续时间,以秒为单位。transition表示使用哪种特效,取值为1-23:
      0 矩形缩小
      1 矩形扩大
      2 圆形缩小
      3 圆形扩大
      4 下到上刷新
      5 上到下刷新
      6 左到右刷新
      7 右到左刷新
      8 竖百叶窗
      9 横百叶窗
      10 错位横百叶窗
      11 错位竖百叶窗
      12 点扩散
      13 左右到中间刷新
      14 中间到左右刷新
      15 中间到上下
      16 上下到中间
      17 右下到左上
      18 右上到左下
      19 左上到右下
      20 左下到右上
      21 横条
      22 竖条
      23 以上22种随机选择一种

    Tags -

    Link URL: http://www.jiaqixiaoyu.com/blog/read.php?55
  • DIV_圆边圆角的实现

    2007-04-19 16:31:56

    引用







    Tags -

    Link URL: http://www.jiaqixiaoyu.com/blog/read.php?56
  • 客户端静态页面玩分页

    2007-04-19 16:31:56

    引用




    New Document








    header


    footer



    Tags -

    Link URL: http://www.jiaqixiaoyu.com/blog/read.php?57
  • 类似与google个性页面的好东东

    2007-04-19 16:31:56

    引用


    DRAG the DIV







            
            
            


                   
                            
                                    
                            
                            
                                    
                            
                   
    GMAIL
    暂时无法显示GMAIL内容

                            
                                    
                            
                            
                                    
                            
                   
    新浪体育
    解剖威队独门利器FW28 2万转引擎匹配超级变速器颁奖:辛吉斯欣喜能以冠军起步
    印度搭档创下纪录法新社前瞻冬奥短道速滑:中韩唱主角 美加施冷箭

                   
                            
                                    
                            
                            
                                    
                            
                   
    焦点
    京广线中断4小时20临客返汉晚点 中国新闻网-湖北分社 - 所有 235 相关报道 &raquo;哈马斯已有总理人选
                    解放日报报业集团 - 所有 489 相关报道 &raquo;陈水扁是两岸关系麻烦制造者 武汉晨报 - 所有 179 相关报道 &raquo;

            

                   
                            
                                    
                            
                            
                                    
                            
                   
    中关村在线
    新年行情速递 双敏板卡低价推荐 终于等到了,映泰6600GT一降降一百 罗技G15游戏键盘热力促销,代购价仅529元

                   
                            
                                    
                            
                            
                                    
                            
                   
    网易商业
    上海GDP增幅去年出现回落应对反倾销 中国鞋企联手对抗欧盟尹家绪操盘南方汽车 长安谋求曲线整体境外上市
                   
                            
                                    
                            
                            
                                    
                            
                   
    黑可天下
    上海GDP增幅去年出现回落应对反倾销 中国鞋企联手对抗欧盟尹家绪操盘南方汽车 长安谋求曲线整体境外上市

            




    Tags -

    Link URL: http://www.jiaqixiaoyu.com/blog/read.php?58
  • 漂亮的表格

    2007-04-19 16:31:56

    引用

    Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">



    CSS Tables





    G5 series">

      
       

       
       
            
      
      
       
       

       
       
      
      
       
       
       

       
      
      
       
       
       
       

      
      
       
       
       
       
      

    ConfigurationsDual 1.8GHzDual 2GHzDual 2.5GHz
    lipengM9454LL/AM9455LL/AM9457LL/A
    mapabcDual 1.8GHz PowerPC G5Dual 2GHz PowerPC G5Dual 2.5GHz PowerPC G5
    地图名片900MHz per processor1GHz per processor1.25GHz per processor
    图秀卡512K per processor512K per processor512K per processor




    Tags -

    Link URL: http://www.jiaqixiaoyu.com/blog/read.php?59
  • test

    2007-04-19 16:25:50

    ww
Open Toolbar