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



62 244 82



特效描述:利用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>



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


热门标签: 滚动导航菜单 导航切换 文字标签 滚动切换 彩色文字 图片滚动 图片切换 文字闪烁 文字滚动 文字切换 打字机 背景切换 文字列表 图片文字滚动 手风琴 全屏滚动 文字弹幕 选项卡自动切换 页面滚动 文字高亮 视频切换 列表切换 渐隐切换 全屏切换 切换按钮 缩放切换 文字叠加 滚动流动 滚动切换 滑动选项卡切换 文字拖动 文字提示框 文字收缩展开 文字放大缩小 文字翻转旋转 文字淡出淡进 文字全屏 文字延迟加载 360全景 html5文字动画 文字滚动 文字滑动 文字切换 自动滚动图片轮播 选项卡切换 滑动手风琴 图片文字 文字导航菜单 文字

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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