中国SEO公司

邮箱

service@pinchuan.net

全球热线

400 021 6186

手机

13020258881

从HTML标签到服务器配置:独立站SEO的30个技术细节清单」

2025-03-10 Visits:

上述完整的文章内容

好的,以下是根据你提供的大纲生成的文章内容以及相关SEO信息:



HTML标签相关

- HTML标签基础设置

在独立站中,HTML标签的正确设置至关重要。例如``标签,它不仅是网页在浏览器标签上显示的名称,更是搜索引擎抓取页面时首先关注的元素之一。合理设置`<title>`标签,包含核心关键词且简洁明了,能有效提高网站在搜索结果中的可见性。同时,`<meta>`标签中的description和keywords也需准确填写,description要能吸引人且准确概括页面内容,keywords则要选取与页面主题紧密相关的词,这些都有助于搜索引擎更好地理解页面。</p><p>- H标签的层级运用</p><p>H标签从H1到H6有着明确的层级关系。H1标签通常用于页面的主标题,应该包含最重要的关键词,且每个页面最好只有一个H1标签,它代表了该页面的核心主题。而H2、H3等标签则可用于副标题或段落标题等,通过合理运用H标签的层级结构,可以让页面内容的逻辑更加清晰,方便搜索引擎抓取和理解页面的重点内容,也有利于提升用户的阅读体验。</p><p>- 图片的Alt属性优化</p><p>独立站中的图片如果不添加Alt属性,搜索引擎就无法识别其内容。为图片添加准确且包含关键词的Alt属性非常关键,比如一张产品图片,其Alt属性可以是“产品名称+产品特色关键词”。这样当图片无法正常显示时,用户能通过Alt属性了解图片大致内容,同时搜索引擎也能通过Alt属性来判断图片与页面主题的相关性,从而对页面的整体优化起到积极作用。</p><p>网站结构与页面布局</p><p>- 清晰合理的网站结构规划</p><p>一个好的独立站需要有清晰合理的网站结构。像树形结构就是比较常用且有效的,首页作为树干,各个分类页面作为树枝,而具体的产品或内容页面就是树叶。这种结构方便搜索引擎的蜘蛛程序爬行和抓取页面,也便于用户快速找到自己需要的内容。同时,要注意网站的内部链接布局,通过合理的内链将各个页面相互关联起来,提高整个网站的权重传递和用户的浏览深度。</p><p>- 页面布局的<a href="/tags/1358.html" target="_blank" >用户体验</a>与SEO兼顾</p><p>在设计页面布局时,既要考虑用户体验又要兼顾SEO。例如,将重要的内容和关键词放在页面的上方和显眼位置,这样不仅能第一时间吸引用户的注意力,也能让搜索引擎快速抓取到关键信息。同时,要避免页面过于杂乱,保证内容的可读性和视觉上的舒适性,像合理设置段落间距、字体大小等。而且,页面的加载速度也受页面布局中元素的影响,要精简不必要的代码和元素,确保页面快速加载。</p><p>服务器配置与性能优化</p><p>- 选择合适的服务器类型</p><p>对于独立站来说,根据自身的流量、业务需求等选择合适的服务器类型很重要。如果是小型独立站且流量不大,虚拟主机可能是比较经济实惠的选择;而对于流量较大、对性能要求高的独立站,可能就需要选择独立服务器或者云服务器。不同的服务器类型在稳定性、安全性、可扩展性等方面都有不同的特点,要综合考虑各种因素来做出最佳选择,以保障网站的正常运行和良好的用户体验。</p><p>- 服务器性能的优化措施</p><p>为了提高服务器的性能,有多种优化措施可以采取。首先要保证服务器的硬件资源足够,如CPU、内存等要能满足网站的运行需求。其次,要对服务器的软件进行优化,像合理配置服务器软件的参数、及时更新补丁等。另外,对数据库进行优化也很关键,如优化查询语句、定期清理无用数据等。通过这些优化措施,可以提高服务器的响应速度,降低网站的加载时间,这对SEO和用户体验都有着重要的影响。</p><p>- CDN的运用与配置</p><p>CDN(内容分发网络)可以将网站的静态资源如图片、脚本等缓存到离用户更近的节点上。当用户访问网站时,能从就近的节点获取资源,从而大大提高网站的加载速度。在配置CDN时,要根据网站的实际情况选择合适的CDN服务商,并正确设置相关参数,如缓存规则等。同时,要注意CDN与源站的同步问题,确保用户获取到的始终是最新的内容,利用好CDN能有效提升独立站的性能和SEO效果。</p><p><a href="/tags/1386.html" target="_blank" >内容优化</a>与更新</p><p>- 高质量内容的创作原则</p><p>独立站的内容质量是吸引用户和搜索引擎的关键。内容要具有原创性,不能抄袭,同时要有深度和价值,能够真正解决用户的问题或满足用户的需求。在写作风格上要通俗易懂,避免过于晦涩难懂的专业术语(除非是面向专业领域的网站)。而且,内容要与网站的主题紧密相关,围绕核心关键词展开,但又不能堆砌关键词,要自然流畅,这样才能打造出高质量的内容,提升网站的权威性和用户的粘性。</p><p>- 内容的定期更新策略</p><p>搜索引擎喜欢经常更新内容的网站,所以独立站要有一个合理的内容定期更新策略。可以制定一个内容发布计划,比如每周或每月更新一定数量的文章、产品信息等。更新的内容要有新鲜感和时效性,不能总是重复旧的内容。同时,在更新内容时可以适当结合当前的热点话题或行业趋势,这样既能吸引用户的关注,也能让搜索引擎认为网站是活跃且有价值的,从而提高网站的排名。</p><p>移动端优化</p><p>- 响应式设计的实现</p><p>在如今移动互联网时代,独立站必须要做好移动端的优化,而响应式设计是其中的重要手段。通过使用CSS媒体查询等技术,让网站能够根据用户设备的屏幕大小自动调整页面布局和元素大小等,确保在不同尺寸的移动设备上都能有良好的显示效果和用户体验。比如在手机上浏览时,页面的字体大小要合适、图片要自适应等,实现响应式设计能让网站在移动端更具竞争力。</p><p>- 移动端页面加载速度优化</p><p>移动端用户对页面加载速度更为敏感,所以要特别注重移动端页面加载速度的优化。可以压缩图片大小、精简代码、减少重定向等。另外,要注意移动端的网络环境相对复杂,要尽量减少对大文件的依赖,优先加载关键内容。通过这些优化措施,可以提高移动端页面的加载速度,降低用户的跳出率,这对独立站在移动端的SEO效果有着重要的影响。</p><p>外部链接建设与社交媒体推广</p><p>- 高质量外部链接的获取策略</p><p>外部链接对于独立站的SEO有着重要的作用,但要注重质量而非数量。可以通过与同行业的优质网站进行友情链接交换,这些网站的权重和相关性要高。还可以撰写高质量的客座文章发布在相关领域的权威网站上,并在文章中合理插入指向自己独立站的链接。另外,参与行业论坛、社区等,在合适的地方留下自己网站的链接也是获取高质量外部链接的有效途径。</p><p>- 社交媒体平台的推广与引流</p><p>社交媒体平台是独立站推广和引流的重要渠道。可以在各大社交媒体平台如微信、微博、Facebook、Twitter等创建官方账号,定期发布有吸引力的内容,包括网站的产品信息、优惠活动、优质文章等,并在内容中巧妙地插入独立站的链接,引导用户点击进入网站。同时,要积极与用户互动,回复用户的评论和私信,建立良好的品牌形象和用户关系,通过社交媒体的传播力量来提高独立站的知名度和流量。</p><p>网站安全与维护</p><p>- 保障网站安全的重要性与措施</p><p>网站安全对于独立站来说至关重要,一旦遭受黑客攻击等安全问题,不仅会导致网站数据丢失、无法正常运行,还会严重影响用户的信任和搜索引擎的评价。要采取多种安全措施,如安装防火墙、定期更新网站程序和插件、设置强密码等。同时,要做好数据备份工作,定期备份网站的数据到安全的地方,以便在出现问题时能够及时恢复。</p><p>- 网站的日常维护与监测</p><p>独立站需要进行日常的维护和监测,包括检查网站的链接是否正常、页面是否有错误、服务器的运行状态等。可以使用一些网站监测工具,及时发现并解决网站出现的问题。另外,要关注网站的流量数据、关键词排名等SEO相关指标,通过分析这些数据来调整网站的优化策略,确保网站始终保持良好的运行状态和SEO效果。</p> </article> </div> <div class="share-btn-list"></div> </div> <div class="pagelink"> <div class="pagelink-item prev"> <div class="pagelink-info"> <p class="link-intro">Previous</p> <p><a href="/xbwz/yxzk/seozhishi/4309.html">独立站架构师必看:如何通过『分页策略』提升长尾词收录量?」</a></p> </div> </div> <div class="pagelink-item next"> <div class="pagelink-info"> <p><a href="/xbwz/yxzk/seozhishi/4311.html">独立站如何用『结构化数据』让产品在搜索结果中『弹窗』?」</a></p> <p class="link-intro">Next</p> </div> </div> </div> </div> </div> </div> </section> </main> <footer> <div class="l-wrap"> <div class="foot-main"> <div class="foot-info"> <a href="http://pinchuan.de" class="foot-logo" title="Pinchuan SEO"><img class="lazy" data-src="/uploads/allimg/20241023/1-2410230I40LB.jpg" width="120" height="60" loading="lazy" alt="Pinchuan SEO"/></a> <div class="foot-tel"> 网站公告: 中国SEO公司<br> E-mail: <a href="mailto:service@pinchuan.net" target="_blank" id="A_1">service@pinchuan.net</a></div> <div class="foot-share"> <ul> <li><a href="13020258881" class="social-item fb" rel="nofollow" target="_blank" title="facebook"><i class="iconfont icon-facebook"></i></a></li> <li><a href="400 021 6186" class="social-item tw" rel="nofollow" target="_blank" title="twitter"><i class="iconfont icon-twitter"></i></a></li> <li><a href="" class="social-item lk" rel="nofollow" target="_blank" title="linkedin"><i class="iconfont icon-linkedin"></i></a></li> <li><a href="" class="social-item ins" rel="nofollow" target="_blank" title="instagram"><i class="iconfont icon-instagram"></i></a></li> </ul> </div> </div> <div class="foot-nav"> <div class="foot-item foot-quick"> <div class="foot-title">Quick Navigation</div> <ul class="foot-list"> <li id="li_Menu101_MainHome"> <a href="http://pinchuan.de">网站首页</a></li> <li><a href="/bjseo/" class="inmenu">SEO服务</a></li> <li><a href="/jcfy/" class="inmenu">SEO费用</a></li> <li><a href="/anli/" class="inmenu">SEO案例</a></li> <li><a href="/news/" class="inmenu">SEO智库</a></li> <li><a href="/gywm/" class="inmenu">关于我们</a></li> <li><a href="/pinchuan/" class="inmenu">多国语言</a></li> <li><a href="/xbwz/" class="inmenu">独立站SEO</a></li> <li><a href="/fz/" class="inmenu">全球分站</a></li> <li><a href="/hywz/" class="inmenu">网站建设</a></li> <li><a href="/wzdj/" class="inmenu">网站搭建</a></li> </ul> </div> <div class="foot-item foot-cate"> <div class="foot-title">language</div> <ul class="foot-list"> <li><a href="/pinchuan/china/">China</a></li> <li><a href="/pinchuan/english/">English</a></li> <li><a href="/pinchuan/ru118/">Russian</a></li> <li><a href="/pinchuan/india/">India</a></li> <li><a href="/pinchuan/french/">French</a></li> <li><a href="/pinchuan/spanish/">Spanish</a></li> </ul> </div> <div class="foot-item foot-code"> <div class="foot-title">经理微信</div> <div class="foot-qrimg"><img src="/uploads/allimg/20241023/1-2410230F143132.png" width="180" height="180" loading="lazy" class="ErWeiImg" alt="QR Code"/></div> </div> </div> </div> <div class="copyright"> <!--网站版权信息 开始--> <p> <script type="text/javascript"> copyright = new Date(); update = copyright.getFullYear(); document.write("© 2011-" + update + "品传"); </script> <a href="https://beian.miit.gov.cn/" title="网站ICP备案信息" style="line-height:40px; display:inline-block; background:url('/template/eyou/pc/skin/quanwei/gxb.png') no-repeat 0px 9px; padding-left:22px; background-size:20px 20px;" >沪ICP备12049525号-32</a>  <a href="//www.zcsxy.com.cn/wailian/gongan/" title="沪公网安备31011502003903号" style="line-height:40px; display:inline-block; background:url('/template/eyou/pc/skin/quanwei/gongan.png') no-repeat 0px 9px; padding-left:22px; background-size:20px 20px;">沪公网安备31011502003903号</a>  <a href="/zuopin/dzzz.html" title="电子营业执照" style="line-height:40px; display:inline-block; background:url('/template/eyou/pc/skin/quanwei/gsj.png') no-repeat 0px 9px; padding-left:22px; background-size:20px 20px;">电子执照</a>  <a href="/sitemap.xml" title="SITEMAP" style="line-height:40px; display:inline-block; background:url('/template/eyou/pc/skin/quanwei/zhizhu.png') no-repeat 0px 9px; padding-left:22px; background-size:20px 20px;">Sitemap</a>  <a href="/fz/" title="SITEMAP" style="line-height:40px; display:inline-block; background:url('/template/eyou/pc/skin/quanwei/ciku.png') no-repeat 0px 9px; padding-left:22px; background-size:20px 20px;">导航</a>  <a href="/al/" rel="nofollow" target="_blank">案例</a>  <a href="/bjseo/bjseowzjs/" rel="nofollow" target="_blank">建站</a>  <a href="/bjseo/seofuwu/" rel="nofollow" target="_blank">独立站SEO</a>  <a href="/gg/" rel="nofollow" target="_blank">广告策划</a>  <a href="/DigitalMarketing/" rel="nofollow" target="_blank">营销咨询</a>  <a href="/pinchuan/english/" rel="nofollow" target="_blank">英文SEO</a>  <a href="/zbmm/" rel="nofollow" target="_blank">招聘</a>  <a href="/pdf/" rel="nofollow" target="_blank">PDF资料</a>  </p> <!--网站版权信息 结束--> <div class="gotop"><em class="iconfont icon-xiangshang"></em></div> </div> </div> <div class="bottom-btn"> <!-- <div class="btn-item"><a href="https://api.whatsapp.com/send?l=en&phone=13020258881" id="M8" rel="nofollow" target="_blank" title="whatsapp"><em class="iconfont icon-whatsapp"></em> <p>在线沟通</p> </a> </div>--> <div class="btn-item"><a href="https://affim.baidu.com/unique_22548141/chat?siteId=13770960&userId=22548141&siteToken=6e458546a9e0bcc1e73f6200002c7209" id="M8" rel="nofollow" target="_blank" title="whatsapp"><em class="iconfont icon-whatsapp"></em> <p>在线沟通</p> </a> </div> <div class="btn-item"><a href="skype:pinchuan" id="M23" rel="nofollow" target="_blank" title="skype"><em class="iconfont icon-skype"></em> <p>skype</p> </a></div> <div class="btn-item"><a href="mailto:service@pinchuan.net" id="M8" rel="nofollow" title="Email"><em class="iconfont icon-email"></em> <p>邮箱</p> </a></div> <div class="company_subscribe btn-item inquiry"><a href="javascript:;" class="button"><em class="iconfont icon-message"></em> <p>Inquiry</p> </a></div> </div> </footer> <div id='ey-mkf'> <ul class='ey-list'> <li class='ey-whatsapp'><a href='https://affim.baidu.com/unique_22548141/chat?siteId=13770960&userId=22548141&siteToken=6e458546a9e0bcc1e73f6200002c7209' target='_blank' id='F21'><i class='ey-icon'></i> <p>在线沟通</p> </a></li> <!-- <li class='ey-whatsapp'><a href='https://web.whatsapp.com/send?l=en&phone=13020258881' target='_blank' id='F21'><i class='ey-icon'></i> <p>在线沟通</p> </a></li>--> <li class='ey-skype'><a href='skype:pinchuan' target='_blank' title='skype' id='F23'><i class='ey-icon'></i> <p>pinchuan</p> </a></li> <li class='ey-email'><a href='mailto:service@pinchuan.net' target='_blank' id='F8'><i class='ey-icon'></i> <p>E-Mail</p> </a></li> <li class='ey-wechat'><a href='javascript:;'><i class='ey-icon'></i> <p>手机</p> </a> <div class='ey-wechat-img'><img src="/uploads/allimg/20241023/1-2410230F143132.png" width='100' height='100'> <p><em></em>手机: 13020258881</p> </div> </li> </ul> </div> <script language="javascript" type="text/javascript" src="/template/eyou/pc/skin20241022/js/jquery-3.7.0.min.js"></script> <script language="javascript" type="text/javascript" src="/template/eyou/pc/skin20241022/js/swiper.js"></script> <script language="javascript" type="text/javascript" src="/template/eyou/pc/skin20241022/js/lazyload.js"></script> <div class="inquiry-pop-bd"> <div class="inquiry-pop"><i class="ico-close-pop" onclick="hideMsgPop();"></i> <div class="content-wrap form" style="min-width:280px;min-height:420px;width:100%;height:100%;background:transparent;border:none;outline:none;margin:0;padding:0;box-shadow: 0 0 10px rgb(0,0,0,.1);overflow: hidden;"> <div class="ch_form_wrap"> <div class="email_point"> </div> <h1 class="title"><em>Leave Your Message</em> </h1> <form method="POST" action="/index.php?m=home&c=Lists&a=gbook_submit&lang=cn" enctype="multipart/form-data" onsubmit="return submit2a3cddd9830e65858ddfd222d8162a9b(this);" class="ch_form"> <ul> <li class="item item_name"> <input type="text" name="attr_70" id="attr_70" placeholder="* 公司/联系人名称"/> </li> <li class="item item_email"> <input type="text" name="attr_72" id="attr_72" placeholder="* 手机号"/> </li> <li class="item item_phone"> <input type="text" name="attr_74" id="attr_74" placeholder="电子邮箱"/> </li> <li class="item item_message"> <textarea name="attr_76" id="attr_76" placeholder="* 留言内容"></textarea> </li> </ul> <div class="item item_submit"> <!-- 验证码开始 --> <!-- 验证码结束 --> <input type="submit" value="Send" name="submit" class="submit_btn gtm_submit_btn" style=" margin:0" /> </div> <br /> <input type="hidden" name="gourl" id="gourl_2a3cddd9830e65858ddfd222d8162a9b" value="http%3A%2F%2Fde.zcsxy.com.cn" /><input type="hidden" name="typeid" value="7" /><input type="hidden" name="__token__2a3cddd9830e65858ddfd222d8162a9b" id="2a3cddd9830e65858ddfd222d8162a9b" value="" /><input type="hidden" name="form_type" value="1" /><script type="text/javascript"> function submit2a3cddd9830e65858ddfd222d8162a9b(elements) { if (document.getElementById('gourl_2a3cddd9830e65858ddfd222d8162a9b')) { document.getElementById('gourl_2a3cddd9830e65858ddfd222d8162a9b').value = encodeURIComponent(window.location.href); } var x = elements; for (var i=0;i<x.length;i++) { if(x[i].name == 'attr_70' && x[i].value.length == 0){ alert('公司/联系人名称不能为空!'); return false; } if(x[i].name == 'attr_72' && x[i].value.length == 0){ alert('手机号不能为空!'); return false; } if(x[i].name == 'attr_72' && !(/^1\d{10}$/.test( x[i].value)) && x[i].value.length > 0){ alert('手机号格式不正确!!'); return false; } if(x[i].name == 'attr_74' && x[i].value.length == 0){ alert('电子邮箱不能为空!'); return false; } if(x[i].name == 'attr_74' && !(/^(.+)@([^\@]+)\.([^\.]+)$/.test( x[i].value)) && x[i].value.length > 0){ alert('电子邮箱格式不正确!!'); return false; } if(x[i].name == 'attr_76' && x[i].value.length == 0){ alert('留言内容不能为空!'); return false; } } elements.submit(); } function ey_fleshVerify_1742473559(id) { var token = id.replace(/verify_/g, '__token__'); var src = "/index.php?m=api&c=Ajax&a=vertify&type=guestbook&lang=cn&token="+token; src += "&r="+ Math.floor(Math.random()*100); document.getElementById(id).src = src; } function f5c8bdefea85d0930e6da2c5cc57b1728() { var ajax = new XMLHttpRequest(); ajax.open("post", "/index.php?m=api&c=Ajax&a=get_token", true); ajax.setRequestHeader("X-Requested-With","XMLHttpRequest"); ajax.setRequestHeader("Content-type","application/x-www-form-urlencoded"); ajax.send("name=__token__2a3cddd9830e65858ddfd222d8162a9b"); ajax.onreadystatechange = function () { if (ajax.readyState==4 && ajax.status==200) { document.getElementById("2a3cddd9830e65858ddfd222d8162a9b").value = ajax.responseText; document.getElementById("gourl_2a3cddd9830e65858ddfd222d8162a9b").value = encodeURIComponent(window.location.href);  } } } f5c8bdefea85d0930e6da2c5cc57b1728(); function getNext1598839807(id,name,level) { var input = document.getElementById('attr_'+name); var first = document.getElementById('first_id_'+name); var second = document.getElementById('second_id_'+name); var third = document.getElementById('third_id_'+name); var findex ='', fvalue = '',sindex = '',svalue = '',tindex = '',tvalue = '',value=''; if (level == 1){ if (second) { second.style.display = 'none'; second.innerHTML = ''; } if (third) { third.style.display = 'none'; third.innerHTML = ''; } findex = first.selectedIndex; fvalue = first.options[findex].value; input.value = fvalue; value = fvalue; } else if (level == 2){ if (third) { third.style.display = 'none'; third.innerHTML = ''; } findex = first.selectedIndex; fvalue = first.options[findex].value; sindex = second.selectedIndex; svalue = second.options[sindex].value; if (svalue) { input.value = fvalue+','+svalue; value = svalue; }else{ input.value = fvalue; } } else if (level == 3){ findex = first.selectedIndex; fvalue = first.options[findex].value; sindex = second.selectedIndex; svalue = second.options[sindex].value; tindex = third.selectedIndex; tvalue = third.options[tindex].value; if (tvalue) { input.value = fvalue+','+svalue+','+tvalue; value = tvalue; }else{ input.value = fvalue+','+svalue; } } if (value) { if(document.getElementById(id)) { document.getElementById(id).options.add(new Option('请选择','')); var ajax = new XMLHttpRequest(); ajax.open("post", "/index.php?m=api&c=Ajax&a=get_region", true); ajax.setRequestHeader("X-Requested-With","XMLHttpRequest"); ajax.setRequestHeader("Content-type","application/x-www-form-urlencoded"); ajax.send("pid="+value); ajax.onreadystatechange = function () { if (ajax.readyState==4 && ajax.status==200) { var data = JSON.parse(ajax.responseText).data; if (data) { data.forEach(function(item) { document.getElementById(id).options.add(new Option(item.name,item.id)); document.getElementById(id).style.display = "block"; }); }  } } } } } </script> </form> </div> </div> </div> </div> <!--右下角留言弹窗--> <div class="ey_message"> <div class="message-header"> <span class="label"> <i class="fa fa-commenting-o"></i> </span> <b>Leave a message</b> <span class="arrow-toggle"> <i class="fa fa-angle-up"></i> </span> </div> <div class="message-form"> <div class="ey_input"> <form method="POST" action="/index.php?m=home&c=Lists&a=gbook_submit&lang=cn" enctype="multipart/form-data" onsubmit="return submitdda55db0b884ae8091ea7011ed76fc2e(this);"> <p> <span> <input type="text" name="attr_70" id="attr_70" value="" size="40" class="ey_input-text" placeholder="公司/联系人名称"/> </span> </p> <p> <span> <input type="text" name="attr_72" id="attr_72" value="" size="40" class="ey_input-text" placeholder="手机号"/> </span> </p> <p> <span> <input type="text" name="attr_74" id="attr_74" value="" size="40" class="ey_input-text" placeholder="电子邮箱"/> </span> </p> <p> <span> <textarea name="attr_76" id="attr_76" cols="40" rows="10" class="ey_input-textarea" placeholder="留言内容"></textarea> </span> </p> <p> <!-- 验证码开始 --> <!-- 验证码结束 --> <input type="submit" value="Submit" class="ey_input-submit" name="submit"/> </p> <input type="hidden" name="gourl" id="gourl_dda55db0b884ae8091ea7011ed76fc2e" value="http%3A%2F%2Fde.zcsxy.com.cn" /><input type="hidden" name="typeid" value="7" /><input type="hidden" name="__token__dda55db0b884ae8091ea7011ed76fc2e" id="dda55db0b884ae8091ea7011ed76fc2e" value="" /><input type="hidden" name="form_type" value="1" /><script type="text/javascript"> function submitdda55db0b884ae8091ea7011ed76fc2e(elements) { if (document.getElementById('gourl_dda55db0b884ae8091ea7011ed76fc2e')) { document.getElementById('gourl_dda55db0b884ae8091ea7011ed76fc2e').value = encodeURIComponent(window.location.href); } var x = elements; for (var i=0;i<x.length;i++) { if(x[i].name == 'attr_70' && x[i].value.length == 0){ alert('公司/联系人名称不能为空!'); return false; } if(x[i].name == 'attr_72' && x[i].value.length == 0){ alert('手机号不能为空!'); return false; } if(x[i].name == 'attr_72' && !(/^1\d{10}$/.test( x[i].value)) && x[i].value.length > 0){ alert('手机号格式不正确!!'); return false; } if(x[i].name == 'attr_74' && x[i].value.length == 0){ alert('电子邮箱不能为空!'); return false; } if(x[i].name == 'attr_74' && !(/^(.+)@([^\@]+)\.([^\.]+)$/.test( x[i].value)) && x[i].value.length > 0){ alert('电子邮箱格式不正确!!'); return false; } if(x[i].name == 'attr_76' && x[i].value.length == 0){ alert('留言内容不能为空!'); return false; } } elements.submit(); } function ey_fleshVerify_1742473559(id) { var token = id.replace(/verify_/g, '__token__'); var src = "/index.php?m=api&c=Ajax&a=vertify&type=guestbook&lang=cn&token="+token; src += "&r="+ Math.floor(Math.random()*100); document.getElementById(id).src = src; } function f5c8bdefea85d0930e6da2c5cc57b1728() { var ajax = new XMLHttpRequest(); ajax.open("post", "/index.php?m=api&c=Ajax&a=get_token", true); ajax.setRequestHeader("X-Requested-With","XMLHttpRequest"); ajax.setRequestHeader("Content-type","application/x-www-form-urlencoded"); ajax.send("name=__token__dda55db0b884ae8091ea7011ed76fc2e"); ajax.onreadystatechange = function () { if (ajax.readyState==4 && ajax.status==200) { document.getElementById("dda55db0b884ae8091ea7011ed76fc2e").value = ajax.responseText; document.getElementById("gourl_dda55db0b884ae8091ea7011ed76fc2e").value = encodeURIComponent(window.location.href);  } } } f5c8bdefea85d0930e6da2c5cc57b1728(); function getNext1598839807(id,name,level) { var input = document.getElementById('attr_'+name); var first = document.getElementById('first_id_'+name); var second = document.getElementById('second_id_'+name); var third = document.getElementById('third_id_'+name); var findex ='', fvalue = '',sindex = '',svalue = '',tindex = '',tvalue = '',value=''; if (level == 1){ if (second) { second.style.display = 'none'; second.innerHTML = ''; } if (third) { third.style.display = 'none'; third.innerHTML = ''; } findex = first.selectedIndex; fvalue = first.options[findex].value; input.value = fvalue; value = fvalue; } else if (level == 2){ if (third) { third.style.display = 'none'; third.innerHTML = ''; } findex = first.selectedIndex; fvalue = first.options[findex].value; sindex = second.selectedIndex; svalue = second.options[sindex].value; if (svalue) { input.value = fvalue+','+svalue; value = svalue; }else{ input.value = fvalue; } } else if (level == 3){ findex = first.selectedIndex; fvalue = first.options[findex].value; sindex = second.selectedIndex; svalue = second.options[sindex].value; tindex = third.selectedIndex; tvalue = third.options[tindex].value; if (tvalue) { input.value = fvalue+','+svalue+','+tvalue; value = tvalue; }else{ input.value = fvalue+','+svalue; } } if (value) { if(document.getElementById(id)) { document.getElementById(id).options.add(new Option('请选择','')); var ajax = new XMLHttpRequest(); ajax.open("post", "/index.php?m=api&c=Ajax&a=get_region", true); ajax.setRequestHeader("X-Requested-With","XMLHttpRequest"); ajax.setRequestHeader("Content-type","application/x-www-form-urlencoded"); ajax.send("pid="+value); ajax.onreadystatechange = function () { if (ajax.readyState==4 && ajax.status==200) { var data = JSON.parse(ajax.responseText).data; if (data) { data.forEach(function(item) { document.getElementById(id).options.add(new Option(item.name,item.id)); document.getElementById(id).style.display = "block"; }); }  } } } } } </script> </form> </div> </div> </div> <!--右下角留言弹窗END--> <script language="javascript" type="text/javascript" src="/template/eyou/pc/skin20241022/js/guestbook.js"></script> <link href="/template/eyou/pc/skin20241022/css/guestbook.css" rel="stylesheet" media="screen" type="text/css" /> <link href="/template/eyou/pc/skin20241022/css/font-awesome.min.css" rel="stylesheet" media="screen" type="text/css" /> <!-- 应用插件标签 start --> <!-- 应用插件标签 end --> <script language="javascript" type="text/javascript" src="/template/eyou/pc/skin20241022/js/page.js"></script> <script type="text/javascript">var root_dir="";var ey_aid=4310; var __lang__='cn';</script> <script language="javascript" type="text/javascript" src="/public/static/common/js/ey_footer.js?v=v1.7.1"></script> </body> </html>