天上人间

http://tech.ddvip.com/2007-03/117408503121508.html

用户操作
[即时聊天] [发私信] [加为好友]
wangxfID:wangxfvc
11238次访问,排名10039好友19人,关注者28
......自学成精
wangxfvc的文章
原创 53 篇
翻译 1 篇
转载 19 篇
评论 6 篇
wangxf的公告
最近评论
zhangjunke:好东西,共分享!
感谢
zhangtl:请问BCGControlBar.zip 在什么地方可以下载,如果方便请发给我一份可以吗,我的邮箱zhangtongliang@cltc.com.cn .谢谢
小娟:谢谢
xballista:非常感谢
tdnongkun:刚下载完html help workshop 就看到你的帖子,感觉很幸福,谢谢了。
下来学习。
文章分类
收藏
    相册
    基金Demo
    测试
    好看(RSS)
    存档
    软件项目交易
    订阅我的博客
    XML聚合  FeedSky
    订阅到鲜果
    订阅到Google
    订阅到抓虾
    订阅到BlogLines
    订阅到Yahoo
    订阅到GouGou
    订阅到飞鸽
    订阅到Rojo
    订阅到newsgator
    订阅到netvibes

    原创 CSS收藏

    新一篇: 仿制淘宝上的导航按纽 | 旧一篇: BLOG的装饰

    body {background:url(http://www.huamituan.net/d/0/15/2006110212512646286.jpg) repeat fixed!important}
    #tabs{text-shadow : opacity;font: normal small-caps 500 14pts/18pts ,face="华康少女体";color:#FF33BC!important;margin-left: 0px;
    position: static ; top: 0px; left: 0px; width: 100%; border-style : none ;}
    #phx {float:left;}
    .modhead {float:left;}

    #thisday{color:red;float:right}
    <BODY style='cursor:url(http://www.webjx.com/js/mouse/mouse.cur)'>
    </style>

     

    <!-- 增加了一个cool clock -->
    <SCRIPT language=JavaScript>dCol='000099';//date colour.
    fCol='668099';//face colour.
    sCol='FF0000';//seconds colour.
    mCol='000000';//minutes colour.
    hCol='000000';//hours colour.
    ClockHeight=40;
    ClockWidth=40;
    ClockFromMouseY=0;
    ClockFromMouseX=100;
    //Alter nothing below! Alignments will be lost!
    d=new Array("SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY");
    m=new Array("JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER");
    date=new Date();
    day=date.getDate();
    year=date.getYear();
    if (year < 2000) year=year+1900;
    TodaysDate=" "+d[date.getDay()]+" "+day+" "+m[date.getMonth()]+" "+year;
    D=TodaysDate.split('');
    H='...';
    H=H.split('');
    M='....';
    M=M.split('');
    S='.....';
    S=S.split('');
    Face='1 2 3 4 5 6 7 8 9 10 11 12';
    //font='Arial';
    font='Verdana';
    size=1;
    speed=0.6;
    ns=(document.layers);
    ie=(document.all);
    Face=Face.split(' ');
    n=Face.length;
    a=size*10;
    ymouse=0;
    xmouse=0;
    scrll=0;
    props="<font face="+font+" size="+size+" color="+fCol+"><B>";
    props2="<font face="+font+" size="+size+" color="+dCol+"><B>";
    Split=360/n;
    Dsplit=360/D.length;
    HandHeight=ClockHeight/4.5
    HandWidth=ClockWidth/4.5
    HandY=-7;
    HandX=-2.5;
    scrll=0;
    step=0.06;
    currStep=0;
    y=new Array();x=new Array();Y=new Array();X=new Array();
    for (i=0; i < n; i++){y[i]=0;x[i]=0;Y[i]=0;X[i]=0}
    Dy=new Array();Dx=new Array();DY=new Array();DX=new Array();
    for (i=0; i < D.length; i++){Dy[i]=0;Dx[i]=0;DY[i]=0;DX[i]=0}
    if (ns){
    for (i=0; i < D.length; i++)
    document.write('<layer name="nsDate'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props2+D[i]+'</font></center></layer>');
    for (i=0; i < n; i++)
    document.write('<layer name="nsFace'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props+Face[i]+'</font></center></layer>');
    for (i=0; i < S.length; i++)
    document.write('<layer name=nsSeconds'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+sCol+'><center><b>'+S[i]+'</b></center></font></layer>');
    for (i=0; i < M.length; i++)
    document.write('<layer name=nsMinutes'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+mCol+'><center><b>'+M[i]+'</b></center></font></layer>');
    for (i=0; i < H.length; i++)
    document.write('<layer name=nsHours'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+hCol+'><center><b>'+H[i]+'</b></center></font></layer>');
    }
    if (ie){
    document.write('<div id="Od" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i=0; i < D.length; i++)
    document.write('<div id="ieDate" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props2+D[i]+'</B></font></div>');
    document.write('</div></div>');
    document.write('<div id="Of" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i=0; i < n; i++)
    document.write('<div id="ieFace" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props+Face[i]+'</B></font></div>');
    document.write('</div></div>');
    document.write('<div id="Oh" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i=0; i < H.length; i++)
    document.write('<div id="ieHours" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+hCol+';text-align:center;font-weight:bold">'+H[i]+'</div>');
    document.write('</div></div>');
    document.write('<div id="Om" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i=0; i < M.length; i++)
    document.write('<div id="ieMinutes" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+mCol+';text-align:center;font-weight:bold">'+M[i]+'</div>');
    document.write('</div></div>')
    document.write('<div id="Os" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i=0; i < S.length; i++)
    document.write('<div id="ieSeconds" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+sCol+';text-align:center;font-weight:bold">'+S[i]+'</div>');
    document.write('</div></div>')
    }
    (ns)?window.captureEvents(Event.MOUSEMOVE):0;
    function Mouse(evnt){
    ymouse = (ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY;
    xmouse = (ns)?evnt.pageX+ClockFromMouseX:event.x+ClockFromMouseX;
    }
    (ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse;
    function ClockAndAssign(){
    time = new Date ();
    secs = time.getSeconds();
    sec = -1.57 + Math.PI * secs/30;
    mins = time.getMinutes();
    min = -1.57 + Math.PI * mins/30;
    hr = time.getHours();
    hrs = -1.575 + Math.PI * hr/6+Math.PI*parseInt(time.getMinutes())/360;
    if (ie){
    Od.style.top=window.document.body.scrollTop;
    Of.style.top=window.document.body.scrollTop;
    Oh.style.top=window.document.body.scrollTop;
    Om.style.top=window.document.body.scrollTop;
    Os.style.top=window.document.body.scrollTop;
    }
    for (i=0; i < n; i++){
     var F=(ns)?document.layers['nsFace'+i]:ieFace[i].style;
     F.top=y[i] + ClockHeight*Math.sin(-1.0471 + i*Split*Math.PI/180)+scrll;
     F.left=x[i] + ClockWidth*Math.cos(-1.0471 + i*Split*Math.PI/180);
     }
    for (i=0; i < H.length; i++){
     var HL=(ns)?document.layers['nsHours'+i]:ieHours[i].style;
     HL.top=y[i]+HandY+(i*HandHeight)*Math.sin(hrs)+scrll;
     HL.left=x[i]+HandX+(i*HandWidth)*Math.cos(hrs);
     }
    for (i=0; i < M.length; i++){
     var ML=(ns)?document.layers['nsMinutes'+i]:ieMinutes[i].style;
     ML.top=y[i]+HandY+(i*HandHeight)*Math.sin(min)+scrll;
     ML.left=x[i]+HandX+(i*HandWidth)*Math.cos(min);
     }
    for (i=0; i < S.length; i++){
     var SL=(ns)?document.layers['nsSeconds'+i]:ieSeconds[i].style;
     SL.top=y[i]+HandY+(i*HandHeight)*Math.sin(sec)+scrll;
     SL.left=x[i]+HandX+(i*HandWidth)*Math.cos(sec);
     }
    for (i=0; i < D.length; i++){
     var DL=(ns)?document.layers['nsDate'+i]:ieDate[i].style;
     DL.top=Dy[i] + ClockHeight*1.5*Math.sin(currStep+i*Dsplit*Math.PI/180)+scrll;
     DL.left=Dx[i] + ClockWidth*1.5*Math.cos(currStep+i*Dsplit*Math.PI/180);
     }
    currStep-=step;
    }
    function Delay(){
    scrll=(ns)?window.pageYOffset:0;
    Dy[0]=Math.round(DY[0]+=((ymouse)-DY[0])*speed);
    Dx[0]=Math.round(DX[0]+=((xmouse)-DX[0])*speed);
    for (i=1; i < D.length; i++){
    Dy[i]=Math.round(DY[i]+=(Dy[i-1]-DY[i])*speed);
    Dx[i]=Math.round(DX[i]+=(Dx[i-1]-DX[i])*speed);
    }
    y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed);
    x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed);
    for (i=1; i < n; i++){
    y[i]=Math.round(Y[i]+=(y[i-1]-Y[i])*speed);
    x[i]=Math.round(X[i]+=(x[i-1]-X[i])*speed);
    }
    ClockAndAssign();
    setTimeout('Delay()',10);
    }
    if (ns||ie)window.onload=Delay;
    </SCRIPT>

    <!-- 增加日期列表 -->
    <script>
    <!--
    todayDate = new Date();
    date = todayDate.getDate();
    month= todayDate.getMonth() +1;
    year= todayDate.getYear();
    document.write("<div id=thisday>");
    document.write("今天是")
    document.write("<br>")
    if(navigator.appName == "Netscape")
    {
     document.write(1900+year);
     document.write("年");
     document.write(month);
     document.write("月");
     document.write(date);
     document.write("日");
     document.write("<br>")
    }
    if(navigator.appVersion.indexOf("MSIE") != -1)
    {
    document.write(year);
    document.write("年");
    document.write(month);
    document.write("月");
    document.write(date);
    document.write("日");
    document.write("<br>")
    }
    if (todayDate.getDay() == 5) document.write("星期五")
    if (todayDate.getDay() == 6) document.write("星期六")
    if (todayDate.getDay() == 0) document.write("星期日")
    if (todayDate.getDay() == 1) document.write("星期一")
    if (todayDate.getDay() == 2) document.write("星期二")
    if (todayDate.getDay() == 3) document.write("星期三")
    if (todayDate.getDay() == 4) document.write("星期四")
    document.write("</div>");
    //-->
    </script>


    <!-- 增加链接内容 -->
    <ul id="tabs">
    <li><a href="http://hi.csdn.net/my.html" class="on"><p align="left" style="margin-left: 10px">
    欢迎您的到来!</a>
    <p> </p>
    <a href="http://hi.csdn.net/my.html" class="on"><font color="#FF00FF", face="华文行楷"><p align="left" style="margin-left: 15px">
    个人首页</font></a><font color="#FF00FF", face="华文行楷"> </font>&nbsp;<a href="http://hi.csdn.net/wangxfvc" class="on"><font color="#FF00FF", face="华文行楷">完美天堂</font></a>
    <font color="#FF00FF", face="华文行楷">&nbsp;</font><a href="http://blog.csdn.net/wangxfvc"><font color="#FF00FF", face="华文行楷">博文天下
    </font></a><font color="#FF00FF", face="华文行楷">&nbsp;</font><font color="#FF00FF", face="华文行楷"> </font>
    <a href="http://hi.csdn.net/wangxfvc/profile/contactlist/1.html" >
    <font color="#FF00FF", face="华文行楷">益友比邻</font></a>
    <font color="#FF00FF", face="华文行楷">&nbsp; </font>
    <a href="http://blog.csdn.net/wangxfvc/Gallery.aspx">
    <font color="#FF00FF", face="华文行楷">影迹天涯</font></a>&nbsp;
    <a href="http://hi.csdn.net/wangxfvc/profile/notebook/1.html" class="last" >
    <font color="#FF00FF", face="华文行楷">与我交流</font></a>
    <p> </p>
    <p> </p>
    <dt><p align="left" style="margin-left: 450px">
    专业成就未来!</dt>
    <p> </p>
    <p> </p>
    </li></ul>

     

     

    <!-- 增加背景音乐 -->
    <TABLE class=modth cellSpacing=0 cellPadding=0 width="100%" border=0>
    <TBODY>
    <TR>
    <TD class=modtc noWrap>
    <DIV class=modhead><SPAN class=modtit><font color="#00FFFF">背景音乐</SPAN></DIV></TD>
    <TD class=modtc noWrap align=right></TD>
    <TD class=modtr width=7> </TD></TR></TBODY></TABLE>
    <SCRIPT language=javascript src="/js/bgmusic.js?v=1.0.js"></SCRIPT>

    <SCRIPT>
    creatbgmusic("http://hi.baidu.com/yxy%B1%FD/music/music.pls",3,
    false,
    true,
    true,
    true
    );

    var g_bgmusic_pop=null;
    function editBgMusic(url)
    {
     g_bgmusic_pop=new Popup({ contentType:1, isReloadOnClose:false, width:680, height:310 });
     g_bgmusic_pop.setContent("title","背景音乐设置");
     g_bgmusic_pop.setContent("contentUrl","/yxy%B1%FD/modify/musicurl/0");
     g_bgmusic_pop.build();
     g_bgmusic_pop.show();
     return false;
    }
    function g_close_bgmusic_pop()
    {
     g_bgmusic_pop.close();
    }

    </SCRIPT>

    <OBJECT id=phx width="14%" classid=clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6 height="32"><PARAM NAME="URL" VALUE="http://hi.baidu.com/yxy%B1%FD/music/music.pls?t=0.40839102780340813"><PARAM NAME="rate" VALUE="1"><PARAM NAME="balance" VALUE="0"><PARAM NAME="currentPosition" VALUE="79.4417914"><PARAM NAME="defaultFrame" VALUE=""><PARAM NAME="playCount" VALUE="100"><PARAM NAME="autoStart" VALUE="-1"><PARAM NAME="currentMarker" VALUE="0"><PARAM NAME="invokeURLs" VALUE="0"><PARAM NAME="baseURL" VALUE=""><PARAM NAME="volume" VALUE="100"><PARAM NAME="mute" VALUE="0"><PARAM NAME="uiMode" VALUE="full"><PARAM NAME="stretchToFit" VALUE="0"><PARAM NAME="windowlessVideo" VALUE="-1"><PARAM NAME="enabled" VALUE="-1"><PARAM NAME="enableContextMenu" VALUE="0"><PARAM NAME="fullScreen" VALUE="0"><PARAM NAME="SAMIStyle" VALUE=""><PARAM NAME="SAMILang" VALUE=""><PARAM NAME="SAMIFilename" VALUE=""><PARAM NAME="captioningID" VALUE=""><PARAM NAME="enableErrorDialogs" VALUE="0"><PARAM NAME="_cx" VALUE="4630"><PARAM NAME="_cy" VALUE="847"></OBJECT>


    <!-- CSS内容 -->
    <style type="text/css">
    #csdnblog_header {display : none!important;}}
    #menu {display : none!important;}

    发表于 @ 2008年06月03日 22:28:06|评论(loading...)|编辑

    新一篇: 仿制淘宝上的导航按纽 | 旧一篇: BLOG的装饰

    评论:没有评论。

    发表评论  


    登录
    Csdn Blog version 3.1a
    Copyright © wangxf