推荐不分先后都是自己用过的
1.DD_belatedPNG (IE6处理png图片透明问题)
1 <!--[if lte IE 6]> 2 <script type="text/javascript" src="js/DD_belatedPNG_0.0.8a-min.js"></script> 3 <script type="text/javascript"> 4 DD_belatedPNG.fix(‘div, ul, img, li, input , a, .png_bg‘); 5 /* 将 .png_bg 改成你应用了透明PNG的CSS选择器*/ 6 </script> 7 <![endif]-->
2.jquery-placeholder(HTML5 Placeholder jQuery Plugin)
1<script src="Scripts/jquery-1.11.3.min.js" type="text/javascript"></script> 2<script src="Scripts/jquery.placeholder.min.js" type="text/javascript"></script> 3<script type="text/javascript"> 4 $(function() { 5 // Invoke the plugin 6 $(‘input, textarea‘).placeholder({ customClass: ‘my-placeholder‘ }); 7 8 }); 9</script>
3.lhgDialog(是一个功能强大且兼容面广的对话框组件,它拥有精致的界面与友好的接口)
4.odometer(实现里程表特效)
1 <link href="js/odometer/themes/odometer-theme-default.css" rel="stylesheet" type="text/css" /> 2 <script src="js/odometer/odometer.min.js" type="text/javascript"></script> 3 <script type="text/javascript"> 4 window.odometerOptions = { 5 format: ‘(,ddd)‘ 6 }; 7 8 function getdata() { 9 $.ajax({ 10 url: ‘Ajax/getnum.ashx‘, 11 type: ‘POST‘, 12 dataType: "json", 13 cache: false, 14 timeout: 10000, 15 error: function () { }, 16 success: function (data) { 17 $(‘.odometer‘).html(data.count); 18 } 19 }); 20 } 21 22 $(function() { 23 getdata(); 24 setInterval(‘getdata()‘, 10000); //每隔10秒执行一次 25 }); 26 </script>
5.
时间: 2024-11-05 13:45:13