博客首页
我的博客首页我是比较满意的,不知道朋友们对次有什么意见或者建议,欢迎提出!
不管大家认为怎么样,我现在就把首页的源文件分享,有点垃圾!不要嘲笑。
首页的导航栏代码
<!–
body {
background: #FFF;
color: #000;
font: 12px Verdana, Arial, Helvetica, sans-serif;
margin: 0;
padding: 0;
}
a:link, a:visited {
color: 颜色16进制代码;
text-decoration: underline;
}
a:hover, a:active {
color: #FFF;
text-decoration: none;
background: #FF2A84;
}
#navigation {
background: #DDD;
border-bottom: 1px solid #A1A1A1;
margin:0;
padding: 0.6em 0 0;
font-weight: bold;
}
#navigation ul, #navigation ul li {
list-style: none;
margin: 0;
padding: 0;
}
#navigation ul {
padding: 5px 0 5px;
text-align: center;
}
#navigation ul li {
display: inline;
}
#navigation ul li a {
background: url(tableft.gif) no-repeat left top;
color: #FFF;
text-decoration: none;
padding: 5px 0;
}
#navigation ul li span {
background: url(tabright.gif) no-repeat right top;
padding: 5px 7px 5px 3px;
margin: 4px 0 4px 4px;
}
#navigation ul li a:hover span {
text-decoration: underline;
background-position: 100% -75px;
}
#navigation ul li a:hover {
background-position: 0 -75px;
}
#navigation #current a {
background-position: 0 -150px;
}
#navigation #current a span {
background-position: 100% -150px;
}
/*- ………………………………………………………*/
/*\*//*/
#navigation ul li a {
display: inline-block;
white-space: nowrap;
width: 1px;
}
#navigation ul {
padding-bottom: 0;
margin-bottom: -1px;
}
/**/
/*\*/
* html #navigation ul li a {
padding: 0;
}
/**/
–>
</style>
</head>
<body>
<div id=”navigation”>
<ul>
<!– …………………… –>
<li><a href=”index.htm”><span>首页</span></a></li>
<li><a href=”xueshen/xinwen.htm”><span>新闻</span></a></li>
<li><a href=”xueshen/rizhi”><span>日志</span></a></li>
<li><a href=”xueshen/tupian.htm”><span>图片</span></a></li>
<li id=”current”><a href=”xueshen/shipin.htm”><span>视频</span></a></li>
<li><a href=”xueshen/shenghuo.htm”><span>生活</span></a></li>
<li><a href=”logo”><span>邮箱logo制作</span></a></li>
<li><a href=”xueshen/sucai”><span>素材下载</span></a></li>
<li><a href=”xueshen/ruanjian”><span></span>源码下载</a></li>
<li><a href=”xueshen/youqing.htm”><span>友情连接</span></a></li>
<li><a href=”xueshen/qita.htm”><span>其它</span></a></li>
<li><a href=”xueshen/liuyan”><span>给我留言</span></a></li>
<li><a href=”xueshen/mingyan”><span>很多名言 </span></a></li>
</ul>
</div>
</body>
雪花背景效果源代码
<!–
Amount=20; //Smoothness! depends on image file size, the smaller the size the more you can use!
//Pre-load your image below!
Image0=new Image();
Image0.src=”sto/flake1.gif”;
Image1=new Image();
Image1.src=”sto/flake2.gif”;
Image2=new Image();
Image2.src=”sto/flake3.gif”;
Image3=new Image();
Image3.src=”sto/flake4.gif”;
Image4=new Image();
Image4.src=”sto/flake5.gif”;
grphcs=new Array(5)
grphcs[0]=”雪花图片地址”
grphcs[1]=”雪花图片地址”
grphcs[2]=”雪花图片地址”
grphcs[3]=”雪花图片地址”
grphcs[4]=”雪花图片地址”
Ypos=new Array();
Xpos=new Array();
Speed=new Array();
Step=new Array();
Cstep=new Array();
ns=(document.layers)?1:0;
if (ns){
for (i = 0; i < Amount; i++){
var P=Math.floor(Math.random()*grphcs.length);
rndPic=grphcs[P];
document.write(“<LAYER NAME=’sn”+i+”‘ LEFT=0 TOP=0><img src=”+rndPic+”></LAYER>”);
}
}
else{
document.write(‘<div style=”position:absolute;top:0px;left:0px”><div style=”position:relative”>’);
for (i = 0; i < Amount; i++){
var P=Math.floor(Math.random()*grphcs.length);
rndPic=grphcs[P];
document.write(‘<img id=”si” src=”‘+rndPic+’” style=”position:absolute;top:0px;left:0px”>’);
}
document.write(‘</div></div>’);
}
WinHeight=(document.layers)?window.innerHeight:window.document.body.clientHeight;
WinWidth=(document.layers)?window.innerWidth:window.document.body.clientWidth;
for (i=0; i < Amount; i++){
Ypos[i] = Math.round(Math.random()*WinHeight);
Xpos[i] = Math.round(Math.random()*WinWidth);
Speed[i]= Math.random()*3+2;
Cstep[i]=0;
Step[i]=Math.random()*0.1+0.05;
}
function fall(){
var WinHeight=(document.layers)?window.innerHeight:window.document.body.clientHeight;
var WinWidth=(document.layers)?window.innerWidth:window.document.body.clientWidth;
var hscrll=(document.layers)?window.pageYOffset:document.body.scrollTop;
var wscrll=(document.layers)?window.pageXOffset:document.body.scrollLeft;
for (i=0; i < Amount; i++){
sy = Speed[i]*Math.sin(90*Math.PI/180);
sx = Speed[i]*Math.cos(Cstep[i]);
Ypos[i]+=sy;
Xpos[i]+=sx;
if (Ypos[i] > WinHeight){
Ypos[i]=-60;
Xpos[i]=Math.round(Math.random()*WinWidth);
Speed[i]=Math.random()*5+2;
}
if (ns){
document.layers['sn'+i].left=Xpos[i];
document.layers['sn'+i].top=Ypos[i]+hscrll;
}
else{
si[i].style.pixelLeft=Xpos[i];
si[i].style.pixelTop=Ypos[i]+hscrll;
}
Cstep[i]+=Step[i];
}
setTimeout(‘fall()’,10);
}
fall();
//–>
</script>
背景图片代码
<TBODY>
<TR>
<TD class=ArticleTitle align=left>
<DIV id=divTitle style=”FONT-SIZE: 30px”><B></B> </DIV></TD></TR>
<TR>
<TD class=ArticleContent style=”FONT-SIZE: 30px; LINE-HEIGHT: 150%” align=left>
<CENTER> </CENTER>
<STYLE type=text/css><!–body {background-image:url(图片地址);background-repeat:no-repeat;background-attachment:fixed;background-position:50% 50%}</STYLE>
</TD></TR></TBODY></TABLE></SPAN>
背景音乐是: 《剑侠情缘2)
<param name=URL value=jxqy.wma>
<PARAM NAME=UIMode value=full><PARAM NAME=AutoStart value=true>
<PARAM NAME=Enabled value=true>
<PARAM NAME=enableContextMenu value=false>
</object>
浏览器灰色边框:
if (document.all)
document.body.style.cssText=”border:边框大小 ridge 这里填上颜色英文”
</script>
日志调用:前面已经说过
本文链接:博客首页
