您所在的位置:首页 > SSL证书
PositiveSSL 安全签章
发布时间:2016/10/25 0:53:11 浏览:97打印字号:大中小
适用于 COMSSL、PositiveSSL、EssentialSSL
第一步: 下载COMODO 安全签章LOGO, 上传到 自己网站根目录.
例如: https://www.gworg.com/comodo.png (能访问即可)
白色背景图片
![]() 52 x 63 | ![]() 76 x 26 | ![]() 100 x 85 | ![]() 113 x 59 |
黑色背景图片
![]() 52 x 63 | ![]() 76 x 26 | ![]() 100 x 85 | ![]() 113 x 59 |
透明背景图片
![]() 52 x 63 | ![]() 76 x 26 | ![]() 100 x 85 | ![]() 113 x 59 |
第二步: 把代码插入到网页的 header 和 footer
把下面代码插入到 <head>与</head>之间
<script type="text/javascript"> //<![CDATA[ var tlJsHost = ((window.location.protocol == "https:") ? "https://secure.comodo.com/" : "http://www.trustlogo.com/"); document.write(unescape("%3Cscript src='" + tlJsHost + "trustlogo/javascript/trustlogo.js' type='text/javascript'%3E%3C/script%3E")); //]]> </script>
把下面代码插入到 <body>与</body>之间
<script language="JavaScript" type="text/javascript"> TrustLogo("https://www.getssl.cn/logo.png", "CL1", "none"); </script>
需要注意的是, TrustLogo(“https://www.getssl.cn/logo.png“, “CL1”, “none”); 先下载comodo的logo放在自己网站上, 把红色标记的logo地址改成你自己保存的地址
另外一种风格,安全签章的图片显示在网站的右下角,代码如下,把下面代码插入到 <body>与</body>之间:
<div id="cot_tl_fixed" > <script language="JavaScript" type="text/javascript"> TrustLogo("https://www.getssl.cn/logo.png", "CL1", "none"); </script> </div> <style type="text/css">#cot_tl_fixed{position:fixed;_position:absolute;bottom:0px;right:0px;_top:expression(document.documentElement.scrollTop+document.documentElement.clientHeight-this.clientHeight);_left:expression(document.documentElement.scrollLeft + document.documentElement.clientWidth - offsetWidth);}#cot_tl_pop {background-color: transparent;position:fixed;_position:absolute;height:194px;width: 244px;right: 120px;bottom: 20px;overflow: hidden;visibility: hidden;z-index: 100;_top:expression(document.documentElement.scrollTop-20+document.documentElement.clientHeight-this.clientHeight);}</style>