zl程序教程

您现在的位置是:首页 >  前端

当前栏目

常见网页特效

网页 常见 特效
2023-09-14 08:59:46 时间
复制到剪切板 - 兼容 ie, firefox, chrome flash10 flash部署到服务器上才可以,不能直接打开页面
        $(.copy).mouseenter(function() {               ZeroClipboard.setMoviePath("/statics/js/ZeroClipboard.swf");               var id = $(this).attr(id), dom = $(this).get(0);               var clip = new ZeroClipboard.Client(dom);               clip.setHandCursor(true); //设置鼠标手型               clip.setText(http://www.test.com/index/+id+.html);  //复制的文本               //复制成功:               clip.addEventListener( "complete", function(){                   alert("复制成功!");               });           });       });   /script   
    else if (VBS) printIt();       else alert(This script does not work in your browser);   --    /script    /head    body onload="javascript:prePrint();"    

   body oncontextmenu="window.event.returnValue=false"
   或者: body oncontextmenu="self.event.returnValue=false"
   或者: body oncontextmenu="return false"

 

文本框里禁止自动完成功能,不再出现window自带的提示功能
input type="text" name="T1" size="20" autocomplete="off"


无关闭按钮IE 
window.open("aa.htm", "meizz", "fullscreen=7"); 
ENTER键可以让光标移到下一个输入框 
input  

文本框的默认值 
input type=text value="123" onChange="alert(this.defaultValue)"  
自动全选 
input type=text name=text1 value="123" onfocus="this.select()"

 


JavaScript + CSS3 实现的海报画廊特效 原文:JavaScript + CSS3 实现的海报画廊特效 这是慕课网上《CSS3+JS 实现超炫的散列画廊特效》的源代码,我修改了一些 bug 和调优了一些细节,并把学习过程中并不了解的知识点以及一些基本思路用注释写在了源码里供以后查阅,同时欢迎指正其中的问题。