- <!DOCTYPE html>
- <html lang="zh">
- <meta charset="utf-8">
- <title>Google</title>
- <style>
- html { background: #fff; margin: 0 1em; }
- body { font: .8125em/1.5 arial, sans-serif; text-align: center; }
- h1 { font-size: 1.5em; font-weight: normal; margin: 1em 0 0; }
- p#footer { color: #767676; font-size: .77em; }
- div { -moz-border-radius: 20px; -webkit-border-radius: 20px; border: 1px solid #ccc; border-radius: 20px; margin: 2em auto 1em; max-width: 650px; min-width: 544px; }
- div:hover, div:hover * { cursor: pointer; }
- div:hover { border-color: #999; }
- div p { margin: .5em 0 1.5em; }
- img { border: 0; }
- </style>
- <div>
- <a href="http://www.google.com.hk/webhp?hl=zh-CN&sourceid=cnhp"><img src="http://www.google.cn/landing/cnexp/google-search.png" alt="Google"></a>
- <h1>我们已移至<a href="http://www.google.com.hk/webhp?hl=zh-CN&sourceid=cnhp"><strong>google.com.hk</strong></a></h1>
- <p>请收藏我们的新网址
- </div>
- <p id="footer">© 2010
- <script>
- var gcn=gcn||{};gcn.listen=function(a,e,b){if(a.addEventListener){a.addEventListener(e,b,false)}else if(a.attachEvent){a.attachEvent('on'+e,b)}};gcn.redirect=function(){window.location='http://www.google.com.hk/webhp?hl=zh-CN&sourceid=cnhp'};
- gcn.listen(document, 'click', gcn.redirect);
- </script>
复制代码 |