新手站长论坛|网站建设论坛|菜鸟建站论坛

注册

 

发新话题 回复该主题

ceoweb代码 [复制链接]

1#
  1. <div class="deanroll">
  2.                         <ul>[loop]<li>
  3.                                 <div class="deanrll">
  4.                                     <div class="deanavater">
  5.                                     <a href="http://www.ceoweb.cn/home.php?mod=space&{uid}={uid}&do=profile" target="_blank">
  6.                                     <img src="{avatar}" /></a></div>
  7.                                 </div>
  8.                                 <div class="deanrlr">
  9.                                     <i></i>
  10.                                     <div class="deanrlrpic">
  11.                                     <a href="{url}" target="_blank">
  12.                                     <img src="{pic}" width="80" height="80" /></a></div>
  13.                                     <div class="deamrlrt">
  14.                                         <p class="p1">
  15.                                         <a href="{url}"
  16.                                         target="_blank">{title}</a></p>
  17.                                         <p class="p2">
  18. {summary}
  19. ...</p>
  20.                                     </div>
  21.                                     <div class="clear"></div>
  22.                                 </div>
  23.                                 <div class="clear"></div>
  24.                             </li>[/loop]
  25.                             
  26.                             
  27.                             
  28.                             
  29.                             </ul>
  30.                     </div>
  31.                     <script type="text/javascript">
  32.                         jq(function () {
  33.                             var scrtime;
  34.                             jq(".deanroll").hover(function () {
  35.                                 clearInterval(scrtime);

  36.                             }, function () {

  37.                                 scrtime = setInterval(function () {
  38.                                     var jqul = jq(".deanroll ul");
  39.                                     var liHeight = jqul.find("li:last").height();
  40.                                     jqul.animate({ marginTop: liHeight + 1 + "px" }, 1000, function () {

  41.                                         jqul.find("li:last").prependTo(jqul)
  42.                                         jqul.find("li:first").hide();
  43.                                         jqul.css({ marginTop: 0 });
  44.                                         jqul.find("li:first").fadeIn(1000);
  45.                                     });
  46.                                 }, 4000);

  47.                             }).trigger("mouseleave");
  48.                         });
  49.                     </script>
复制代码
分享 转发
TOP
发新话题 回复该主题