Home  >  Article  >  Web Front-end  >  jQuery implements focus image code with typing effect on title_jquery

jQuery implements focus image code with typing effect on title_jquery

WBOY
WBOYOriginal
2016-05-16 15:32:091290browse

The example in this article describes the jQuery code to implement a focus image with a typing effect on the title. Share it with everyone for your reference, the details are as follows:

I would like to share with you a focus image with typing effect based on jQuery title, which has the function of gradually displaying the typing form of the title. This focus map is suitable for browsers: IE8, 360, FireFox, Chrome, Safari, Opera, Maxthon, Sogou, and Window of the World.

The screenshot of the running effect is as follows:

The online demo address is as follows:

http://demo.jb51.net/js/2015/jquery-title-print-style-flash-codes/

Click here for complete example codeDownload from this site.

The html code is as follows:

<!-- 代码 开始 -->
<div id="header">
 <div class="wrap">
 <div id="slide-holder">
  <div id="slide-runner">
   <a href="#" target="_blank">
    <img id="slide-img-1" src="images/a1.jpg" class="slide" alt="" /></a> <a href="#"
     target="_blank">
     <img id="slide-img-2" src="images/a2.jpg" class="slide" alt="" /></a> <a href="#"
      target="_blank">
      <img id="slide-img-3" src="images/a3.jpg" class="slide" alt="" /></a>
   <a href="#" target="_blank">
    <img id="slide-img-4" src="images/a4.jpg" class="slide" alt="" /></a> <a href="#"
     target="_blank">
     <img id="slide-img-5" src="images/a5.jpg" class="slide" alt="" /></a> <a href="#"
      target="_blank">
      <img id="slide-img-6" src="images/a6.jpg" class="slide" alt="" /></a>
   <a href="#" target="_blank">
    <img id="slide-img-7" src="images/a4.jpg" class="slide" alt="" /></a>
   <div id="slide-controls">
    <p id="slide-client" class="text">
     <strong></strong><span></span>
    </p>
    <p id="slide-desc" class="text">
    </p>
    <p id="slide-nav">
    </p>
   </div>
  </div>
</div>

js code is as follows:

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"
}
];

I hope this article will be helpful to everyone in jQuery programming.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn