利用jQuery实现点击文字滚动插件



29 113 38



特效描述:利用jQuery实现 点击文字滚动,利用jQuery实现点击文字滚动插件

代码结构

1. 引入CSS

<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">

2. 引入JS

<script src="js/jquery-2.0.3.js"></script>
<script src="js/scrollocue.js"></script>

3. HTML代码

  <div id="container">
    <h1>Scrollocue</h1>
    <div class="section meta">
      <p>A simple autocue/teleprompter system.</p>
      <p>Just use the arrows or spacebar to scroll.</p>
      <p>Now, let's walk through some text.</p>
    </div>
    <div class="section title">
      <p>Around the World in 80 Days</p>
      <p>Jules Verne</p>
    </div>
    <div class="section passenger">
      <p>"There is no young lady on board,"</p>
      <p>interrupted the purser.</p>
      <p>"Here is a list of the passengers;</p>
      <p>you may see for yourself."</p>
      <p><span class="name">Passepartout</span> scanned the list,</p>
      <p>but his master's name was not upon it.</p>
      <p>All at once an idea struck him.</p>
    </div>
    <div class="section yokohama">
      <p>"Ah! am I on the Carnatic?"</p>
      <p>"Yes."</p>
      <p>"On the way to Yokohama?"</p>
      <p>"Certainly."</p>
    </div>
    <div class="section wrong">
      <p><span class="name">Passepartout</span> had for an instant feared that he was on the wrong boat;</p>
      <p>but, though he was really on the Carnatic, his master was not there.</p>
    </div>
    <div class="section fogg">
      <p>He fell thunderstruck on a seat.</p>
      <p>He saw it all now.</p>
      <p>He remembered that the time of sailing had been changed,</p>
      <p>that he should have informed his master of that fact,</p>
      <p>and that he had not done so.</p>
      <p>It was his fault, then, that Mr. Fogg and Aouda had missed the steamer.</p>
      <p class="emphasis">Yes, but it was still more the fault of the traitor who,</p>
      <p>in order to separate him from his master,</p>
      <p>and detain the latter at Hong Kong,</p>
      <p class="emphasis">had inveigled him into getting drunk!</p>
      <p>He now saw the detective's trick;</p>
      <p>and at this moment Mr. Fogg was certainly ruined,</p>
      <p>his bet was lost,</p>
      <p>and he himself perhaps arrested and imprisoned!</p>
      <p>At this thought <span class="name">Passepartout</span> tore his hair.</p>
    </div>
    <div class="section meta funky">
     <p>applause</p>
   </div>
 </div>
 <script>
  $('#container').scrollocue();
 </script>
<div style="text-align:center;clear:both">
<p></p>
<p></p>
</div>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 文字叠加 文字层叠 滚动 滚动条 页面滚动 滚动插件 滚动条插件 滚动条美化 文字延迟加载 文字延迟 文字加载 文字全屏 文字淡出淡进 文字淡出 文字淡进 文字翻转 文字旋转 文字放大缩小 文字缩放 文字大小 文字放大 文字缩小 文字变大 文字变小 文字收缩展开 文字收缩 文字展开 文字提示框 提示文字 文字拖动 文字拖拽 滑动选项卡 滑动切换 滚动切换 滚动条切换 h5文字动画 h5文字边框动画 html5文字动画 html5文字边框动画 360全景 360度全景 文字切换 文字选项卡 文字滚动 文字无缝滚动 文字间歇滚动 文字滑动 文字滑块 自动滚动图片轮播 选项卡切换 选项卡 切换 tab切换 页面切换 选项卡插件 切换插件 滑动手风琴 图片文字 文字导航菜单 文字导航 文字菜单 文字 文字插件 文字切换 文字选项卡 全屏滚动 文字高亮

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到