一个不错滴首页 - IM286 - 个人觉得蛮有创意

[ 2007-12-15 11:44:28 | 作者: Admin ] 字号: | |
<html><head><title>Blueteeth Official Site</title>
<style>
body {
 background: #667788;
 font-family: tahoma;
 font-size: 16px;
 padding: 0;
 margin: 0;
 overflow: hidden;
}
img#background {
}

h1 {
 font-size: 140%;
}

#window1 {
 top: 50px;
 left: 150px;
 width: 400px;
 height: 200px;
}
#window2 {
 top: 270px;
 left: 250px;
 width: 500px;
 height: 300px;
}
#window3 {
 top: 150px;
 left: 400px;
 width: 400px;
 height: 400px;
}
#window4 {
 top: 200px;
 left: 100px;
 width: 400px;
 height: 400px;
}

#window1 .border {
 border-color: #F8E0C0;
}
#window1 .glass {
 background: #F8E0C0;
}

#window2 .border {
 border-color: #E0F8C0;
}
#window2 .glass {
 background: #E0F8C0;
}

#window3 .border {
 border-color: #E0F0F8;
}
#window3 .glass {
 background: #E0F0F8;
}

.window {
 position: absolute;
}
.shadow {
 position: absolute;
 top: -2px;
 left: -2px;
 width: 100%;
 height: 100%;
 background: #002030;
 filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=4, makeShadow=true, shadowOpacity=.20);
}
.glass {
 position: absolute;
 top: 0px;
 left: 0px;
 width: 100%;
 height: 100%;
 background: #F0F0F0;
 filter:
 alpha(opacity=100, style=1, finishOpacity=50, startx=60, starty=50, finishx=20, finishy=70)
 alpha(opacity=50, style=1, finishOpacity=100, startx=100, starty=50, finishx=60, finishy=70);
}
.border {
 position: absolute;
 top: 0px;
 left: 0px;
 width: 100%;
 height: 100%;
 border: 1px solid #F0F0F0;
 padding: 80px 10px 10p 10px;
}
.content {
 height: 100%;
 width: 100%;
 overflow: auto;
 background: white;
 padding: 0.5em;
 cursor: default;
 filter: alpha(opacity=60);
}
.title {
 color: white;
 font-weight: bold;
 font-size: 25px;
 position: absolute;
 top: 0px;
 left: 0px;
 width: 100%;
 height: 80px;
 padding: 25px 20px;
 cursor: move;
}
.current .shadow {
 top: 1px;
 left: 1px;
}
.current .content {
 filter: none;
}
.current .title {
 z-index: 1;
}

#menu {
 position: absolute;
 border: 1px solid rgb(182, 184, 196);
 padding: 1px 2px;
 background: #f4f4f5;
 font-family: trebuchet ms;
 font-size: 9pt;
}
#menu a {
 display: block;
 width: 200px;
 color: black;
 text-decoration: none;
 height: 18px;
 cursor: default;
}
#menu a i {
 display: block; float: left;
 position:relative;
 height: 14px; width: 26px;
 background: #ececed;
 border-left: 1px solid #ffffff;
 border-right: 1px solid #e0e0e1;
 margin-left: -2px;
 margin-right: -3px;
 padding: 2px 0px;
}
#menu a span {
 display: block;
 position:relative;
 height: 14px;
 background: #f4f4f5;
 border-left: 1px solid #ffffff;
 border-right: 1px solid #ffffff;
 padding: 2px 3px;
 margin-right: -2px;
}
.current #menu a:hover {
 border: 1px solid; border-color: rgb(158, 215, 240) #ffffff;
 padding: 0px;
}
.current #menu a:hover i {
 border: 1px solid;
 border-color: #ececed #e0e0e1 #d8e0f0 rgb(158, 215, 240);
 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffe2eaf2, endColorstr=#ffd8e0f0);
 padding: 0px;
 width: 25px;
}
.current #menu a:hover span {
 border: 1px solid;
 border-color: #f4f4f5 rgb(158, 215, 240) #e8f2f8 #e8f2f8;
 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffeef2f8, endColorstr=#ffddedf8);
 padding: 0px 3px;
}
</style>

<script>
var current = null;
var dragging = false;
var startedDragging = false;
function setCurrent(w)
{
 if (w != current)
 {
 // unset old current
 if (current)
 current.className = 'window';
 // set current
 current = w;
 current.className = 'current window';
 // put current on top
 document.getElementById("windows").appendChild(current);
 }

 // init drag
 var offsetX = event.x - parseInt(w.currentStyle.left);
 var offsetY = event.y - parseInt(w.currentStyle.top);
 if (offsetY < 80)
 {
 dragging = true;
 dragEffect = function()
 {
 w.style.pixelLeft = event.x - offsetX;
 w.style.pixelTop = event.y - offsetY;
 }
 }
 else
 {
 var width = parseInt(w.currentStyle.width);
 var resizeX = offsetX > width - 10;
 var height = parseInt(w.currentStyle.height);
 var resizeY = offsetY > height - 10;
 if (resizeX || resizeY)
 {
 dragging = true;
 var offsetX = event.x - width;
 var offsetY = event.y - height;

 dragEffect = function()
 {
 if (resizeX)
 w.style.pixelWidth = event.x - offsetX;
 if (resizeY)
 w.style.pixelHeight = event.y - offsetY;
 }
 }
 }
}

function calcResize(w)
{
 var offsetX = event.x - parseInt(w.currentStyle.left);
 var offsetY = event.y - parseInt(w.currentStyle.top);
 var width = parseInt(w.currentStyle.width);
 var resizeX = offsetX > width - 10;
 var height = parseInt(w.currentStyle.height);
 var resizeY = offsetY > height - 10;
 w.style.cursor = (resizeX||resizeY)?(resizeY?"S":"")+(resizeX?"E":"")+"-resize":"default";
}

var dragEffect;
function moveCurrent()
{
 if (!dragging || !current)
 return;
 
 if (event.button == 0)
 {
 releaseCurrent();
 return;
 }
 
 if (!startedDragging)
 {
 current.className = 'dragging current window';
 startedDragging = true;
 }
 
 dragEffect();
}

function releaseCurrent()
{
 if (!current)
 return;
 
 current.className = 'current window';
 dragging = false;
 startedDragging = false;
}

function makeUnselectable(e)
{
 e.unselectable=true;
 if (e.className == 'content')
 return;
 
 for (var c=e.firstChild;c;c=c.nextSibling)
 if (c.nodeType == 1)
 makeUnselectable(c);
}
</script>
</head>
<body onload="makeUnselectable(document.body);setCurrent(window1)" onmouseup="releaseCurrent()" onmousemove="moveCurrent()">
<!--img id="background" src="grass.jpg" /-->
<div id="windows">
<div class="window" id="window1" onmousedown="setCurrent(this)" onmousemove="calcResize(this)">
 <div class="shadow"></div>
 <div class="title"><font color="#E0E0E1">Blueteeth Official Site</font></div>
 <div class="glass"></div>
 <div class="border">
 <div class="content">
 <h1><font color="#F8E0C0">欢迎进入blueteeth的世界!</font></h1>
 <p><font color="#F8E0C0">请随意拖曳,拉伸本网页上的组件!</font></p>
 <p><font color="#F8E0C0">This page uses no images, except the background image. Everything is done with
 HTML, CSS, a bit of JavaScript and a lot of Internet Explorer filters.</font></p>
 <p><font color="#F8E0C0">Yes, it's slow, but it's pretty isn't it?</font></p>
 <p><font color="#F8E0C0">Looks horrible in any browser but Internet
 Explorer.</font></p>
 
 </div>
 </div>
</div>
<div class="window" id="window3" onmousedown="setCurrent(this)" onmousemove="calcResize(this)">
 <div class="title"><font color="#B6B8C4">版权</font></div>
 <div class="glass"></div>
 <div class="border">
 <div class="content">
 <p><font color="#9ED7F0">来源:互联网</font></div>
 </div>
</div>
<div class="window" id="window4" onmousedown="setCurrent(this)" onmousemove="calcResize(this)">
 <div class="shadow"></div>
 <div class="title"><font color="#667788">网站导航</div>
 </font><font color="#00FFFF">
 <div class="glass"></div>
 <div class="border">
 <div class="content">
 <div id="menu">
 <span><a href="#">
 <font color="#B6B8C4" size="6" face="Small Fonts">进入blog</font></a></span></font><font size="6" color="#B6B8C4" face="Small Fonts">
 </font><font color="#00FFFF"><font face="Small Fonts"><span>
 <a href="#">
 <font size="6" color="#B6B8C4">进入论坛</font></a></span></font><font face="汉仪醒示体繁">&nbsp;
 </font>
 </div>
 </div>
 </div>
</div>
<div class="window" id="window2" onmousedown="setCurrent(this)" onmousemove="calcResize(this)">
 <div class="shadow"></div>
 <div class="title"><font face="汉仪醒示体繁">友情链接</font></div>
 <div class="glass"></div>
 <div class="border">
 <div class="content"><!--这里写上你的友情链接内容-->
 </div>
 </div>
</div>
</div>
</body>
</html>
Share
评论Feed 评论Feed: http://www.85815.com/feed.asp?q=comment&id=205
UTF-8 Encoding 引用链接: http://www.85815.com/trackback.asp?id=205&key=
浏览模式: 显示全部 | 评论: 3 | 引用: 0 | 排序 | 浏览: 10617
引用 sunu*
[ 2005-05-29 11:18:49 ]
国外一牛人做的,如果国内有一样的肯定是抄袭。
作者的blog
http://w3future.com/weblog/
我以前也收集过的,呵呵
http://www.freehome.org/lbs/article.asp?id=595
引用 Admin
[ 2005-05-29 11:30:49 ]
引用至 sunu
国外一牛人做的,如果国内有一样的肯定是抄袭。
作者的blog
http://w3future.com/weblog/
我以前也收集过的,呵呵
http://www.freehome.org/lbs/article.asp?id=595
呵呵,在落伍看到的
引用 winyi*
[ 2005-06-23 02:14:18 ]
用层来实现..我也做一个...在以前/..
http://winyi.com/ad
发表
表情图标
[smile] [confused] [cool] [cry]
[eek] [angry] [wink] [sweat]
[lol] [stun] [razz] [redface]
[rolleyes] [sad] [yes] [no]
[heart] [star] [music] [idea]
UBB代码
转换链接
表情图标
悄悄话
用户名:   密码:   注册?
验证码 * 请输入验证码