假503错误页面,伪装503错误,503.js代码下载

模板网 2014-09-25

在一些特殊情况下,我们需要将我们的网站展现给访客看时是打不开的状态,但是并不希望关闭网站,因为直接关站,会影响搜索引擎的收录。

那么利用下面提供的代码就可以轻松实现这种需求。

代码打包下载:503.js代码下载

压缩包中主要文件:

503.html

复制代码 代码如下:
<html>
<head><title>503 service unavailable</title></head>
<body bgcolor="white">
<center><h1>503 service unavailabled</h1></center>
<hr><center>nginx/0.8.54</center>
</body>
</html>

503.js

复制代码 代码如下:
document.title="服务器错误,错误代码503";
document.writeln("<frameset rows=\"*,2\" frameborder=\"0\" frameborder=\"no\"><frame src=\"/503.html\" name=\"top\"><frame name=\"bottom\"><\/\//frameset>");

使用方法:

将下载的压缩包解压后上传到网站根目录,在想要展现为打不开的网页头部引用503.js即可,采用CMS系统的,可直接在模板中修改,整站生成即可。

相关文章

  1. a标签点击过后出现虚线的解决方法

    问题:a标签点击过后出现虚线 解决方法:a{blr:expression(this.onFocus=this.blur());outline: none;}

  2. 4种动态加载JS的方法

    要实现动态加载JS脚本有4种方法: 1、直接document.write 复制代码 代码如下: script language=javascript document.write(script src=test.js\/script); /script 2、动态改变已有script的src属性 复制代码 代码如下: script src= id=s1/script script langu

  3. 假503错误页面,伪装503错误,503.js代码下载

    在一些特殊情况下,我们需要将我们的网站展现给访客看时是打不开的状态,但是并不希望关闭网站,因为直接关站,会影响搜索引擎的收录。 那么利用下面提供的代码就可以轻松实现这种需求。 代码打包下载: 503.js代码下载 压缩包中主要文件: 503.html 复制代

  4. 让position:fixed在IE6下可用!

    /*让position:fixed在IE6下可用!*/ .fixed-top/*头部固定*/{position:fixed;bottom:auto;top:0px;} .fixed-bottom/*底部固定*/{position:fixed;bottom:0px;top:auto;} .fixed-left/*左侧固定*/{position:fixed;right:auto;left:0px;} .fixed-right/*右侧固定

  5. html input输入时默认启动数字输入法

    当文本框只能输入数字是一个很常见的需求,比如电话号码,身份证号,卡号, 数量....等等只允许数字输入,为了更好的用户体验性,直接写出 启动数字键盘的需求,我和大多数人一样用this.style.imeMode=disabled; imeMode有四种形式,分别是: active 代表输

随机推荐

  1. a标签点击过后出现虚线的解决方法

    问题:a标签点击过后出现虚线 解决方法:a{blr:expression(this.onFocus=this.blur());outline: none;}

  2. 4种动态加载JS的方法

    要实现动态加载JS脚本有4种方法: 1、直接document.write 复制代码 代码如下: script language=javascript document.write(script src=test.js\/script); /script 2、动态改变已有script的src属性 复制代码 代码如下: script src= id=s1/script script langu

  3. 假503错误页面,伪装503错误,503.js代码下载

    在一些特殊情况下,我们需要将我们的网站展现给访客看时是打不开的状态,但是并不希望关闭网站,因为直接关站,会影响搜索引擎的收录。 那么利用下面提供的代码就可以轻松实现这种需求。 代码打包下载: 503.js代码下载 压缩包中主要文件: 503.html 复制代

  4. 让position:fixed在IE6下可用!

    /*让position:fixed在IE6下可用!*/ .fixed-top/*头部固定*/{position:fixed;bottom:auto;top:0px;} .fixed-bottom/*底部固定*/{position:fixed;bottom:0px;top:auto;} .fixed-left/*左侧固定*/{position:fixed;right:auto;left:0px;} .fixed-right/*右侧固定

  5. html input输入时默认启动数字输入法

    当文本框只能输入数字是一个很常见的需求,比如电话号码,身份证号,卡号, 数量....等等只允许数字输入,为了更好的用户体验性,直接写出 启动数字键盘的需求,我和大多数人一样用this.style.imeMode=disabled; imeMode有四种形式,分别是: active 代表输