jQuery实现标题有打字效果的焦点图代码

给大家分享一款基于jQuery标题有打字效果的焦点图,具有标题打字形式逐渐显示的功能。这款焦点图适用浏览器有:IE8、360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗。

运行效果截图如下:

jQuery实现标题有打字效果的焦点图代码

在线演示地址如下:

完整实例代码代码点击此处本站下载

html代码如下:

<!-- 代码 开始 --> <div> <div> <div> <div> <a href="#" target="_blank"> <img src="https://www.jb51.net/images/a1.jpg" alt="" /></a> <a href="#" target="_blank"> <img src="https://www.jb51.net/images/a2.jpg" alt="" /></a> <a href="#" target="_blank"> <img src="https://www.jb51.net/images/a3.jpg" alt="" /></a> <a href="#" target="_blank"> <img src="https://www.jb51.net/images/a4.jpg" alt="" /></a> <a href="#" target="_blank"> <img src="https://www.jb51.net/images/a5.jpg" alt="" /></a> <a href="#" target="_blank"> <img src="https://www.jb51.net/images/a6.jpg" alt="" /></a> <a href="#" target="_blank"> <img src="https://www.jb51.net/images/a4.jpg" alt="" /></a> <div> <p> <strong></strong><span></span> </p> <p> </p> <p> </p> </div> </div> </div>

js代码如下:

if (!window.slider) { var slider = {}; } slider.data = [ { "id": "slide-img-1", // 与slide-runner中的img标签id对应 "client": "标题1", "desc": "这里修改描述 这里修改描述 这里修改描述" //这里修改描述 }, { "id": "slide-img-2", "client": "标题2", "desc": "add your description here" }, { "id": "slide-img-3", "client": "标题3", "desc": "add your description here" }, { "id": "slide-img-4", "client": "标题4", "desc": "add your description here" }, { "id": "slide-img-5", "client": "标题5", "desc": "add your description here" }, { "id": "slide-img-6", "client": "标题6", "desc": "add your description here" }, { "id": "slide-img-7", "client": "标题7", "desc": "add your description here" } ];

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wgzfzx.html