CINXE.COM
网站案例_建站案例_网站建设案例_网站设计案例_企业网站案例_公司网站案例_网页设计案例_网站制作案例-腾云网
<!doctype html> <html> <head><meta charset="utf-8" /><title> 网站案例_建站案例_网站建设案例_网站设计案例_企业网站案例_公司网站案例_网页设计案例_网站制作案例-腾云网 </title><meta id="description" name="description" content="全国各地大量的网站案例是腾云网实力的见证,网站案例有公司网站案例,企业网站案例,网站设计案例,网站制作案例,网页设计案例,网站建设案例,建站案例供您参考." /><meta id="keywords" name="keywords" content="网站案例,建站案例,网站建设案例,公司网站案例,企业网站案例,网站设计案例,网站制作案例,网页设计案例,腾云建站,腾云网" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><link rel="stylesheet" href="/fresh/css/ML_index.css?v=1019" /><link rel="stylesheet" href="/fresh/css/ML_animate.min.css" /><link rel="stylesheet" href="/fresh/css/ML_swiper.min.css" /><link rel="stylesheet" href="/fresh/ML_font-awesome/css/font-awesome.css" /><link rel="stylesheet" href="/fresh/css/ML_siteTemplete.css" /><link rel="stylesheet" href="/fresh/css/ML_case.css" /> <script src="/fresh/js/ML_jquery.min.js"></script> <script src="/fresh/js/ML_swiper.min.js"></script> <script src="/fresh/js/ML_wow.js"></script> <script src="/fresh/js/api.js"></script> <script src="/fresh/js/NewUrl.js"></script> <link rel="stylesheet" href="/fresh/css/ML_aboutus.css" /></head> <style> .sec_cateCon a:hover { color: var(--main-color); } .loadover { text-align: center; color: #999; font-size: 14px; } </style> <body style="background-color: #f4f4f4" class="siteTempleteBody"> <script type="text/javascript"> gethead(); </script> <script> // 假设我们想要在小屏幕下改变元素的宽度和背景色 function adaptElements() { // 获取所有需要自适应的元素(这里使用class选择器) var elements = document.getElementsByClassName('Tem_list_Item'); // 遍历这些元素 for (var i = 0; i < elements.length; i++) { var element = elements[i]; // 假设我们使用视口宽度作为条件来判断是否为小屏幕 var isSmallScreen = window.innerWidth < 996; // 根据条件修改元素的行内样式 if (isSmallScreen) { } else { element.classList.add('myclass'); } } } // 监听窗口大小变化事件 window.addEventListener('resize', adaptElements); // 页面加载时也执行一次以适应当前屏幕大小 window.onload = adaptElements; </script> <!-- 内页通栏图 开始 --> <div class="AB_inner"> <script type="text/javascript"> getnewclass_link(8); </script> </div> <!-- 内页通栏图 结束 --> <script> var page = 1; var finished = 0; var sover = 0; //如果屏幕未到整屏自动加载下一页补满 var setdefult = setInterval(function() { if (sover == 1) clearInterval(setdefult); else if ($(".Tem_list_con").height() < $(window).height() && 0 > 12) loadmore($(window)); else clearInterval(setdefult); }, 500); //加载完 function loadover() { if (sover == 1) { var overtext = "Duang~到底了"; $(".loadmore").remove(); if ($(".loadover").length > 0) { $(".loadover span").eq(0).html(overtext); } else { var txt = '<div class="loadover"><span>' + overtext + '</span></div>' $(".Tem_list").append(txt); } } } //加载更多 var vid = 0; function loadmore(obj) { if (finished == 0 && sover == 0) { var scrollTop = $(obj).scrollTop(); var scrollHeight = $(document).height(); var windowHeight = $(obj).height(); //if ($(".loadmore").length == 0) //{ // var txt = '<div class="loadmore"><span class="loading"></span>加载中...</div>' // $(".Tem_list_con").append(txt); //} //$("#a97").html(scrollTop); //$("#a98").html(windowHeight); //$("#a99").html(scrollHeight); if (scrollTop + windowHeight >= scrollHeight - 1000) { //此处是滚动条到底部时候触发的事件,在这里写要加载的数据,或者是拉动滚动条的操作 //防止未加载完再次执行 finished = 1; vid++; var result = ""; $.ajax({ type: "get", async: false, // 设置同步方式 ******** url: "/Tools/Case/GetMore_fresh.aspx?i=" + vid + "&class_id=24&color=171&adapt=0&ismob=0&k=", datatype: "json", success: function(msg) { result += msg; } }); setTimeout(function() { //$(".loadmore").remove(); adaptElements() $('.Tem_list_con').append(result); page += 1; finished = 0; //最后一页 if (page >= 0) { sover = 1; loadover(); } }, 0); } } } //页面滚动执行事件 </script> <!-- 分类 开始 --> <div class="caseClass"> <div class="caseClassBox"> <div class="caseClassItem "> <a href="/case/0/162/0/0"> 网站建设 </a> </div> <div class="caseClassItem "> <a href="/case/0/164/0/0"> 外贸网站 </a> </div> <div class="caseClassItem "> <a href="/case/0/163/0/0"> WordPress </a> </div> <div class="caseClassItem "> <a href="/miniPrograme/0/170/0/0"> 小程序商城 </a> </div> <div class="caseClassItem cateClassSelected "> <a href="/case/0/171/0/0"> 行业方案 </a> </div> </div> </div> <!-- --> <div class="M_searchTem wow animated fadeIn"> <div class=" M_searchTem_con "> <div class="M_searchTem_left digital "> <strong>保有</strong> <em class="timer count-title " id="count-number " data-to="10000 " data-speed="1500 "></em><em>+</em> <br> <span>网站落户在腾云网</span> </div> <div class="M_searchTem_right "> <input type="text " id="SeachKeyWord" placeholder="请输入行业类型,如:机械 " onkeydown="enter();"> <a href="javascript:dosearch()"> <img src="/fresh/images/sousuo.png" id="SearchButton" alt=" "> 搜索 </a> </div> </div> </div> <script type="text/javascript"> function enter() { if (event.keyCode == 13) { event.returnValue = false; switch (document.activeElement.id) { case "SeachKeyWord": document.getElementById('SearchButton').click(); break; } } } function dosearch() { var c = document.getElementById("SeachKeyWord"); if (c.value == '') { c.focus(); return false; } else { GetUrl("k=" + c.value); } } //窗口显示才加载 var wrapTop = $(".digital").offset().top; var istrue = true; $(window).on("scroll", function() { var s = $(window).scrollTop(); if (s > wrapTop - 500 && istrue) { $(".timer").each(count); function count(a) { var b = $(this); a = $.extend({}, a || {}, b.data("countToOptions") || {}); b.countTo(a) }; istrue = false; }; }) //设置计数 $.fn.countTo = function(options) { options = options || {}; return $(this).each(function() { //当前元素的选项 var settings = $.extend({}, $.fn.countTo.defaults, { from: $(this).data('from'), to: $(this).data('to'), speed: $(this).data('speed'), refreshInterval: $(this).data('refresh-interval'), decimals: $(this).data('decimals') }, options); //更新值 var loops = Math.ceil(settings.speed / settings.refreshInterval), increment = (settings.to - settings.from) / loops; //更改应用和变量 var self = this, self = $(this), loopCount = 0, value = settings.from, data = self.data('countTo') || {}; self.data('countTo', data); //如果有间断,找到并清除 if (data.interval) { clearInterval(data.interval); }; data.interval = setInterval(updateTimer, settings.refreshInterval); //初始化起始值 render(value); function updateTimer() { value += increment; loopCount++; render(value); if (typeof(settings.onUpdate) == 'function') { settings.onUpdate.call(self, value); } if (loopCount >= loops) { //移出间隔 self.removeData('countTo'); clearInterval(data.interval); value = settings.to; if (typeof(settings.onComplete) == 'function') { settings.onComplete.call(self, value); } } } function render(value) { var formattedValue = settings.formatter.call(self, value, settings); self.html(formattedValue); } }); }; $.fn.countTo.defaults = { from: 0, //数字开始的值 to: 0, //数字结束的值 speed: 1000, //设置步长的时间 refreshInterval: 100, //隔间值 decimals: 0, //显示小位数 formatter: formatter, //渲染之前格式化 onUpdate: null, //每次更新前的回调方法 onComplete: null //完成更新的回调方法 }; function formatter(value, settings) { return value.toFixed(settings.decimals); } //自定义格式 $('#count-number').data('countToOptions', { formmatter: function(value, options) { return value.toFixed(options.decimals).replace(/\B(?=(?:\d{3})+(?!\d))/g, ','); } }); //定时器 $('.timer').each(count); function count(options) { var $this = $(this); options = $.extend({}, options || {}, $this.data('countToOptions') || {}); $this.countTo(options); } </script> <!-- --> <!-- 二级分类 结束 --> <div class="sec_cate thr_cate"> <div class="sec_cateCon"> <a href="/case/0/171/0/0" >全部</a> <a href="/case/5/171/0/0" >五金、设备、工业制品</a> <a href="/case/24/171/0/0" class="sec_cate_selected" >化工、原材料、农畜牧</a> <a href="/case/6/171/0/0" >服装、饰品、个人护理</a> <a href="/case/28/171/0/0" >数码、家具、家居百货</a> <a href="/case/29/171/0/0" >食品、茶饮、养生保健</a> <a href="/case/30/171/0/0" >礼品、玩具、小商品</a> <a href="/case/31/171/0/0" >婚庆、摄影、生活服务</a> <a href="/case/32/171/0/0" >餐饮、酒店、旅游服务</a> <a href="/case/33/171/0/0" >金融、物流、工商服务</a> <a href="/case/34/171/0/0" >文化、广告、设计服务</a> <a href="/case/35/171/0/0" >教育、政府、机构组织</a> <a href="/case/36/171/0/0" >IT、商城、行业门户</a> <a href="/case/129/171/0/0" >外贸、英文、国际服务</a> </div> </div> <!-- 分类 结束 --> <!-- 模板列表 开始 --> <div class="Tem_list caseList"> <div class="Tem_list_con"> </div> </div> <!-- 模板列表 结束 --> <script> function TempleteView(ele, option) { var _this = this this.ele = ele this.ToUpRate = option.ToUpRate this.ToDownRate = option.ToDownRate $('.pc_picbox').hover(function() { var $img = $(this).find('.sc_img') var eleH = $(this).height() var imgH = $img.height() var H = imgH - eleH if (imgH <= eleH) { return } $img.stop().animate({ top: -H + 'px' }, _this.ToUpRate); }, function() { $(this).find('img').stop().animate({ top: 0 }, _this.ToDownRate); }); } $(function() { new TempleteView('.scroll_box', { // 图片上浮速率 ToUpRate: 10000, // 图片回流速率 ToDownRate: 1000 }) }); </script> <style> @media only screen and (min-width: 996px) { .namespan { width: 65%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; text-align: left; } .areaspan { width: 35%; text-align: right; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; } } @media only screen and (max-width: 996px) { .areaspan { width: 100%; } .namespan { width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; text-align: left; } } </style> <script type="text/javascript"> getfoot(); </script> </body> </html>