新手引导插件intro.js的使用示例
来源:互联网 发布:asp.net连接sql数据库 编辑:程序博客网 时间:2024/06/07 09:15
请在这里查看示例 ☞ intro示例
<!doctype html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> <meta name="renderer" content="webkit"> <title>demo</title> <link rel="stylesheet" href="css/introjs.min.css"> <script type="text/javascript" src="../js/jquery-1.11.3.min.js"></script> <script type="text/javascript" src="js/intro.min.js"></script> <style> * {margin: 0; padding: 0;} .f {margin: 30px 50px; background: red;} .b {display: inline-block;} </style> </head> <body> <div class="a f" data-step="1" data-intro='介绍1'>这是第1个引导</div> <div class="b f" data-step="3" data-intro='<img src="../images/a1.png">'>这是第3个引导</div> <div class="c f" data-step="2" data-intro='<div style="border: 1px solid blue"><p style="border: 1px solid yellow">使用html元素丰富介绍内容使用html元素丰富介绍内容使用html元素丰富介绍内容</p></div>'>这是第2个引导</div> </body> <script> ;$(function() { //官方网址: http://www.jq22.com/jquery-info1320 //github: https://github.com/usablica/intro.js/blob/master/README.md introJs().setOptions({ 'prevLabel': '← 上一步', 'nextLabel': '下一步 →', 'skipLabel': '跳过', 'doneLabel': '完成', 'showBullets': false,//隐藏直接跳转按钮(避免onchangebug) }).start().onexit(function() {//非常规退出 console.log(2); }).oncomplete(function() {//正常完成 console.log(1); }).onchange(function(obj) {//已完成当前一步 var curNum = parseInt($(obj).attr('data-step').match(/\d+/)[0]);//当前的下标 $('.tipStep'+ (curNum-1)).hide();//隐藏前一个 $('.tipStep'+ (curNum+1)).hide();//隐藏后一个 $(obj).show();//显示当前 }); }); </script> </html>
0 0
- 新手引导插件intro.js的使用示例
- 网站引导页插件intro.js 的用法
- 关于使用 intro 插件进行网站引导
- 上传插件webuploader.js的使用示例
- 分页插件jPages.js的使用示例
- intro.js官方示例改变
- js新手引导
- 新手引导页(GuideView)的使用
- 使用cocos2d-js制作游戏新手引导(一)
- 使用cocos2d-js制作游戏新手引导(二)
- 使用cocos2d-js制作游戏新手引导-源码篇(三)
- 颜色动画插件jquery.color.js的使用示例
- 自动补全插件autocomplete.js的使用示例
- 提示框插件jBox.js的使用示例
- 美化滚动条插件mCustomScrollbar.js的使用示例
- 二维码插件jquery.qrcode.js的使用示例
- 省市区选择插件jquery.cityselect.js的使用示例
- intro.js 官方示例及其说明
- C# .NET Random 生成随机数字和字母
- 4_View的工作原理
- LintCode 433. 岛屿的个数
- javascript笔记
- D2RQ简介
- 新手引导插件intro.js的使用示例
- 3.15交作业
- DevExpress控件的GridControl控件小结
- 自定义控件-宽度固定 高度随宽度变化的图片
- Android Gesture
- iOS 8 中UIAlertController使用
- cacti安装笔记
- Android系统性能调优工具介绍
- maven3常用命令、java项目搭建、web项目搭建详细图解