-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
72 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"name":"Myfocus","tagline":"myFocus JavaScript Library","body":"myfocus\r\n=======\r\n\r\nmyFocus JavaScript Library\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."} | ||
{"name":"Myfocus","tagline":"myFocus JavaScript Library","body":"myFocus v2.0.4\r\n=======\r\n\r\nmyFocus是一个专注于WEB端焦点图/轮换图的JS库\r\n\r\n## 特点\r\n\r\n* 原生JS编写,独立无依赖\r\n* 性能卓越,同样效果比jQuery更流畅\r\n* 简单易用,傻瓜式API和标准HTML结构\r\n* 效果华丽,媲美Flash焦点图\r\n* 功能强大,30多种风格切换,支持N种常用设置\r\n* 体积小巧,仅5.93KB(minified & gzipped)\r\n* 支持 IE6+ / Chrome / Firefox 等现代浏览器\r\n* 支持自定义开发扩展\r\n\r\n## 用法\r\n\r\n#### HTML:\r\n\r\n\t<!-- 焦点图盒子 -->\r\n\t<div id=\"boxID\">\r\n\t <!-- 载入中的Loading图片(可选) -->\r\n\t <div class=\"loading\"><img src=\"img/loading.gif\" alt=\"请稍候...\" /></div>\r\n\t <!-- 内容列表 -->\r\n\t <div class=\"pic\">\r\n\t \t<ul>\r\n\t <li><a href=\"#\"><img src=\"img/1.jpg\" alt=\"标题1\" /></a></li>\r\n\t <li><a href=\"#\"><img src=\"img/2.jpg\" alt=\"标题2\" /></a></li>\r\n\t <li><a href=\"#\"><img src=\"img/3.jpg\" alt=\"标题3\" /></a></li>\r\n\t <li><a href=\"#\"><img src=\"img/4.jpg\" alt=\"标题4\" /></a></li>\r\n\t <li><a href=\"#\"><img src=\"img/5.jpg\" alt=\"标题5\" /></a></li>\r\n\t <!-- 你可以根据需要添加更多的列 -->\r\n\t \t</ul>\r\n\t </div>\r\n\t</div>\r\n\r\n#### JS:\r\n\r\n\tmyFocus.set({id: 'boxID'});\r\n\r\n[查看效果>> ](http://koen301.github.io/myfocus/demo/base.html)\r\n\r\n当然,你可以使用更多自定义的设置,例如:\r\n\r\n\tmyFocus.set({\r\n\t id: 'boxID',//焦点图盒子ID\r\n\t pattern: 'mF_tbhuabao',//焦点图风格的名称\r\n\t time: 3,//切换时间间隔(秒)\r\n\t trigger: 'mouseover',//触发切换模式:'click'(点击)/'mouseover'(悬停)\r\n\t delay: 200,//'mouseover'模式下的切换延迟(毫秒)\r\n\t txtHeight: 'default'//标题高度设置(像素),'default'为默认CSS高度,0为隐藏\r\n\t});\r\n\r\n[查看效果>> ](http://koen301.github.io/myfocus/demo/custom.html)\r\n\r\n更多效果/详细用法/API,请参考[百度“myfocus”>>](http://www.baidu.com/s?wd=myfocus)。\r\n\r\n## 下载\r\n\r\n请到 [dist](https://github.com/koen301/myfocus/tree/gh-pages/dist) 目录下载 myfocus 的min版(压缩)或full版(无压缩),并在子目录“mf-pattern”选择风格下载。\r\n\r\n注意:myfocus 运行时会自动寻找其子目录“mf-pattern”下相应的风格文件,所以“mf-pattern”文件夹一定要存在。\r\n\r\n[打包下载 myfocus 及它的所有风格文件>>](http://koen301.github.io/myfocus/pack/myfocus.zip)\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."} |