标题 | jQuery实现的鼠标经过时变宽的效果(附demo源码) |
内容 | 这篇文章主要介绍了jQuery实现的鼠标经过时变宽的效果,实例演示了jQuery的Kwicks插件实现针对鼠标事件的响应与页面元素样式动态变换的相关技巧,并附带demo源码供读者下载参考,需要的朋友可以参考下 本文实例讲述了jQuery实现的鼠标经过时变宽的效果。分享给大家供大家参考,具体如下: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> <head> <title>Kwicks 1.5.1 Example Page</title> <!-- IMPORTANT!!! Include the stylesheet *BEFORE* the JavaScript (necessary for Safari 3.1.1) --> <link rel="stylesheet" type="text/css" href="css/main.css" /> <script src="js/jquery-1.2.6.min.js" type="text/javascript"></script> <script src="js/jquery.easing.1.3.js" type="text/javascript"></script> <script src="js/jquery.kwicks-1.5.1.pack.js" type="text/javascript"></script> <script type="text/javascript"> $().ready(function() { $('.kwicks').kwicks({ max : 220, spacing : 5 }); }); </script> </head> <body> <ul > <li id="kwick_1"></li> <li id="kwick_2"></li> <li id="kwick_3"></li> <li id="kwick_4"></li> </ul> </body> </html> 希望本文所述对大家jQuery程序设计有所帮助。 |
随便看 |
|
在线学习网考试资料包含高考、自考、专升本考试、人事考试、公务员考试、大学生村官考试、特岗教师招聘考试、事业单位招聘考试、企业人才招聘、银行招聘、教师招聘、农村信用社招聘、各类资格证书考试等各类考试资料。