免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
帖子
发帖
查看: 2530|回复: 3
上一主题 下一主题 打印

[求助] 有没有滚动这个代码?   [复制链接]

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

附件:您需要 登录 才可以下载或查看,没有帐号?立即注册

x
哪位朋友有这个代码

111.png
2018-11-22 17:16


网址:http://gtuu.com/

最近看过此主题的会员

李奥
访问时间:2023-10-10 11:43
九七九七
访问时间:2021-08-05 13:55
恒小杰
访问时间:2019-10-01 16:16
天使小小
访问时间:2018-11-26 10:02
icode
访问时间:2018-11-25 09:56
零九三零
访问时间:2018-11-24 22:48
琪乐
访问时间:2018-11-23 23:03
Yenifer
访问时间:2018-11-23 21:17
麻城生活网
访问时间:2018-11-23 17:24

点评
B Color Link Smilies

您还可以输入:个字符
X

 X

回复 1# 天使小小

直接在原网站抠出来的
  1. <link rel="stylesheet" href="http://ria.gtuu.com/css/public.css?201704271137">
  2.     <link rel="stylesheet" href="http://ria.gtuu.com/css/index.css?201704271137">
  3.     <!-- 品牌中心 start -->
  4.     <div class="brand">
  5.         <h1 class="brandTit">品牌中心</h1>
  6.         <div class="brandContain">
  7.             <div class="brandBox clearfix">
  8.                 <a class="previous span1" id="js_pre" target="_blank"><i class="icons preIco"></i></a>
  9.                 <div class="brand-box" id="brandContainer">
  10.                     <div id="box1" class="divbox" style="left: -1075px; width: 2150px; display: block;">
  11.                         <div class="fl brandBody" data-num="1">
  12.                                                                  <div class="brandDiv">
  13.                                     <a href="http://brand.gtuu.com/detail/247.html" class="brandA" target="_blank">
  14.                                         <img src="http://p2.gtuu.com/ad_image/586387b29f0c5.jpg" alt="AMSOIL" style="width:120px;height:120px;">
  15.                                     </a>
  16.                                     <span class="brandSpan">AMSOIL</span>
  17.                                 </div>
  18.                                                             <div class="brandDiv">
  19.                                     <a href="http://brand.gtuu.com/detail/129.html" class="brandA" target="_blank">
  20.                                         <img src="http://p2.gtuu.com/ad_image/58638937d26c3.jpg" alt="ACE" style="width:120px;height:120px;">
  21.                                     </a>
  22.                                     <span class="brandSpan">ACE</span>
  23.                                 </div>
  24.                                                             <div class="brandDiv">
  25.                                     <a href="http://brand.gtuu.com/detail/49.html" class="brandA" target="_blank">
  26.                                         <img src="http://p2.gtuu.com/ad_image/5ad417545ad75.jpg" alt="AME" style="width:120px;height:120px;">
  27.                                     </a>
  28.                                     <span class="brandSpan">AME</span>
  29.                                 </div>
  30.                                                             <div class="brandDiv">
  31.                                     <a href="http://brand.gtuu.com/detail/53.html" class="brandA" target="_blank">
  32.                                         <img src="http://p2.gtuu.com/ad_image/58638a8890c9e.jpg" alt="RAYS" style="width:120px;height:120px;">
  33.                                     </a>
  34.                                     <span class="brandSpan">RAYS</span>
  35.                                 </div>
  36.                                                             <div class="brandDiv">
  37.                                     <a href="http://brand.gtuu.com/detail/863.html" class="brandA" target="_blank">
  38.                                         <img src="http://p2.gtuu.com/ad_image/5b71206abac34.jpg" alt="BRIDE" style="width:120px;height:120px;">
  39.                                     </a>
  40.                                     <span class="brandSpan">BRIDE</span>
  41.                                 </div>
  42.                              
  43.                         </div>
  44.                         <div class="fl brandBody" data-num="2">
  45.                                                         <div class="brandDiv">
  46.                                 <a href="http://brand.gtuu.com/detail/987.html" class="brandA" target="_blank">
  47.                                     <img src="http://p2.gtuu.com/ad_image/59a8f53261d59.jpg" alt="RAVIZE" style="width:120px;height:120px;">
  48.                                 </a>
  49.                                 <span class="brandSpan">RAVIZE</span>
  50.                             </div>
  51.                                                         <div class="brandDiv">
  52.                                 <a href="http://brand.gtuu.com/detail/313.html" class="brandA" target="_blank">
  53.                                     <img src="http://p2.gtuu.com/ad_image/58638c193f354.jpg" alt="CGW" style="width:120px;height:120px;">
  54.                                 </a>
  55.                                 <span class="brandSpan">CGW</span>
  56.                             </div>
  57.                                                         <div class="brandDiv">
  58.                                 <a href="http://brand.gtuu.com/detail/277.html" class="brandA" target="_blank">
  59.                                     <img src="http://p2.gtuu.com/ad_image/589add97de292.jpg" alt="AXR" style="width:120px;height:120px;">
  60.                                 </a>
  61.                                 <span class="brandSpan">AXR</span>
  62.                             </div>
  63.                                                         <div class="brandDiv">
  64.                                 <a href="http://brand.gtuu.com/detail/1621.html" class="brandA" target="_blank">
  65.                                     <img src="http://p2.gtuu.com/ad_image/5bc7011b85048.jpg" alt="TTCOS" style="width:120px;height:120px;">
  66.                                 </a>
  67.                                 <span class="brandSpan">TTCOS</span>
  68.                             </div>
  69.                                                         <div class="brandDiv">
  70.                                 <a href="www.zeroracing.net" class="brandA" target="_blank">
  71.                                     <img src="http://p2.gtuu.com/ad_image/5bbdc30644b6b.jpg" alt="BBS" style="width:120px;height:120px;">
  72.                                 </a>
  73.                                 <span class="brandSpan">BBS</span>
  74.                             </div>
  75.                                                     </div>
  76.                     </div>
  77.                     <div id="box2" class="divbox" style="left: 1075px; width: 2150px; display: block;">
  78.                         <div class="fl brandBody" data-num="1">
  79.                                                            <div class="brandDiv">
  80.                                     <a href="http://brand.gtuu.com/detail/247.html" class="brandA" target="_blank">
  81.                                         <img src="http://p2.gtuu.com/ad_image/586387b29f0c5.jpg" alt="AMSOIL" style="width:120px;height:120px;">
  82.                                     </a>
  83.                                     <span class="brandSpan">AMSOIL</span>
  84.                                 </div>
  85.                                                             <div class="brandDiv">
  86.                                     <a href="http://brand.gtuu.com/detail/129.html" class="brandA" target="_blank">
  87.                                         <img src="http://p2.gtuu.com/ad_image/58638937d26c3.jpg" alt="ACE" style="width:120px;height:120px;">
  88.                                     </a>
  89.                                     <span class="brandSpan">ACE</span>
  90.                                 </div>
  91.                                                             <div class="brandDiv">
  92.                                     <a href="http://brand.gtuu.com/detail/49.html" class="brandA" target="_blank">
  93.                                         <img src="http://p2.gtuu.com/ad_image/5ad417545ad75.jpg" alt="AME" style="width:120px;height:120px;">
  94.                                     </a>
  95.                                     <span class="brandSpan">AME</span>
  96.                                 </div>
  97.                                                             <div class="brandDiv">
  98.                                     <a href="http://brand.gtuu.com/detail/53.html" class="brandA" target="_blank">
  99.                                         <img src="http://p2.gtuu.com/ad_image/58638a8890c9e.jpg" alt="RAYS" style="width:120px;height:120px;">
  100.                                     </a>
  101.                                     <span class="brandSpan">RAYS</span>
  102.                                 </div>
  103.                                                             <div class="brandDiv">
  104.                                     <a href="http://brand.gtuu.com/detail/863.html" class="brandA" target="_blank">
  105.                                         <img src="http://p2.gtuu.com/ad_image/5b71206abac34.jpg" alt="BRIDE" style="width:120px;height:120px;">
  106.                                     </a>
  107.                                     <span class="brandSpan">BRIDE</span>
  108.                                 </div>
  109.                              
  110.                         </div>
  111.                         <div class="fl brandBody" data-num="2">
  112.                                                         <div class="brandDiv">
  113.                                 <a href="http://brand.gtuu.com/detail/987.html" class="brandA" target="_blank">
  114.                                     <img src="http://p2.gtuu.com/ad_image/59a8f53261d59.jpg" alt="RAVIZE" style="width:120px;height:120px;">
  115.                                 </a>
  116.                                 <span class="brandSpan">RAVIZE</span>
  117.                             </div>
  118.                                                         <div class="brandDiv">
  119.                                 <a href="http://brand.gtuu.com/detail/313.html" class="brandA" target="_blank">
  120.                                     <img src="http://p2.gtuu.com/ad_image/58638c193f354.jpg" alt="CGW" style="width:120px;height:120px;">
  121.                                 </a>
  122.                                 <span class="brandSpan">CGW</span>
  123.                             </div>
  124.                                                         <div class="brandDiv">
  125.                                 <a href="http://brand.gtuu.com/detail/277.html" class="brandA" target="_blank">
  126.                                     <img src="http://p2.gtuu.com/ad_image/589add97de292.jpg" alt="AXR" style="width:120px;height:120px;">
  127.                                 </a>
  128.                                 <span class="brandSpan">AXR</span>
  129.                             </div>
  130.                                                         <div class="brandDiv">
  131.                                 <a href="http://brand.gtuu.com/detail/1621.html" class="brandA" target="_blank">
  132.                                     <img src="http://p2.gtuu.com/ad_image/5bc7011b85048.jpg" alt="TTCOS" style="width:120px;height:120px;">
  133.                                 </a>
  134.                                 <span class="brandSpan">TTCOS</span>
  135.                             </div>
  136.                                                         <div class="brandDiv">
  137.                                 <a href="www.zeroracing.net" class="brandA" target="_blank">
  138.                                     <img src="http://p2.gtuu.com/ad_image/5bbdc30644b6b.jpg" alt="BBS" style="width:120px;height:120px;">
  139.                                 </a>
  140.                                 <span class="brandSpan">BBS</span>
  141.                             </div>
  142.                                                     </div>
  143.                     </div>
  144.                 </div>
  145.                 <a class="previous span2" id="js_next" target="_blank"><i class="icons nextIco"></i></a>
  146.             </div>
  147.         </div>
  148.     </div>
  149.     <!-- 品牌中心 end -->

  150. <script type="text/javascript" src="http://ria.gtuu.com/js/jquery-1.9.1.js?201704271137"></script>
  151. <script type="text/javascript" src="http://ria.gtuu.com/js/public.js?201704271137"></script>
  152.     <script>
  153.        
  154.         //搜索
  155.         var local_url = null;
  156.         var search_url = function(){
  157.                 var str= $('#js_val').text();
  158.         str  = str .replace(/\s/g, "");
  159.                 var value = $('#search_val').val();
  160.                 //value   = value  .replace(/\s/g, "");
  161.                 if(value .length  == 0){
  162.                         $time        =        0;
  163.                         t=window.setInterval(function(){
  164.                                 $time++;
  165.                                 if($time<=1){
  166.                                         $("#search_val").css({"border":"1px solid #ff0000"});
  167.                                 }else{
  168.                                         $("#search_val").css({"border":""});
  169.                                         clearInterval(t);
  170.                                 }
  171.                         },500);
  172.                        
  173.                         return false;
  174.                 }
  175.                
  176.                 if(str == '资讯'){
  177.                         local_url = $INFO_URL+"/index/index/w/"+value;
  178.                 }
  179.                 if(str == '案例'){
  180.                         local_url = $CASE_URL+"/special/index/w/"+value;
  181.                 }
  182.                 if(str == '店家'){
  183.                         local_url = $SHOP_URL+"/index/index/w/"+value;
  184.                 }
  185.                 window.open(local_url);
  186.         }
  187.         //检测回车
  188.         document.onkeydown=function(event){
  189.                 e = event ? event :(window.event ? window.event : null);
  190.                 if(e.keyCode==13){
  191.                        
  192.                         search_url();
  193.                 }
  194.         }
  195.         //搜索按钮
  196.         $('#search').click(function(){
  197.                 search_url();
  198.         });
  199.        
  200.     $(function() {
  201.         //搜索   
  202.         $("#js_sel").click(function() {
  203.             if ($("#js_selResult").css("display") == "block") {
  204.                 $("#js_selResult").hide();
  205.             } else {
  206.                 $("#js_selResult").show();
  207.             }
  208.         });
  209.         // totop
  210.         toTop(document.getElementById("toTop"));
  211.         // fixed
  212.         fix(document.getElementById("js_fix_rb"));
  213.    
  214.         // 头像上传预览
  215.         //使用IE条件注释来判断是否IE6,通过判断userAgent不一定准确  
  216.         if (document.all) document.write('<!--[if lte IE 6]><script type="text/javascript">window.ie6= true<\/script><![endif]-->');
  217.         // var ie6 = /msie 6/i.test(navigator.userAgent);//不推荐,有些系统的ie6 userAgent会是IE7或者IE8   getElementsByClassName
  218.         //表单提交
  219.         var oForm = document.getElementById("oForm");
  220.         $("#js_submit").bind("click", function(ev) {
  221.             if (!verifyForm(oForm)) {
  222.                 ev.preventDefault();
  223.             } else {
  224.                 if ($("input[name='gzxm']:checked").length == 0) {
  225.                     alert("请至少选择一个改装项目");
  226.                 } else {
  227.                     alert("通过验证");
  228.                 }
  229.             }
  230.         });
  231.         //手机验证码
  232.         $("#js_yzm").bind("click", function() {
  233.             if (true) {
  234.                 bindCheckTel($("#js_yzm"), 60);
  235.             }
  236.         });
  237.         //品牌中心

  238.         setInterval(left, 3000);
  239.         $("#js_pre").unbind("click").bind("click",function(){
  240.            // console.log(111);
  241.             left();
  242.         });
  243.         $("#js_next").unbind("click").bind("click",function(){
  244.             right();
  245.         });
  246.     }());
  247.     $(document).scroll(function(){
  248.                 //alert($(document).scrollTop());
  249.             if(document.body.scrollTop==0){
  250.                         $('#toTop').css('display','none');
  251.                 }else{
  252.                         $('#toTop').css('display','block');
  253.                 }
  254.         })
  255.     </script>
复制

点评

麻城生活网   

不得不佩服无界你    发表于 2018-11-22 23:12 

点评
B Color Link Smilies

您还可以输入:个字符
X

 X

TOP

回复 2# icode


    可不可以帮我把它的CSS文件 调整一下 可以适合论坛用?

11.JPG
2018-11-23 16:20


我弄上去打乱论坛的
发帖际遇:天使小小 RP值爆棚,系统莫名给了6个威望值
点评
B Color Link Smilies

您还可以输入:个字符
X

 X

TOP

回复 2# icode


    可不可以帮我把它的CSS文件 调整一下 可以适合论坛用?


11.JPG
2018-11-23 16:21
点评
B Color Link Smilies

您还可以输入:个字符
X

 X

TOP

发帖
B Color Image Link Quote Code Smilies
高级模式 | 发新话题

 
您需要登录后才可以回帖 登录|立即注册 
快速
返回顶部
返回首页