天台新闻
商业信息
旅游
网友爆料
畅所欲言
爱心
摄影
戏曲
体育
诗词文学
情感世界
二手房源
家在天台
美容健康
二手市场
网友相约
亲子
电脑
招聘求职
休闲灌水
投资理财
打工生活
户外运动
帮忙
站务
精彩图文

几个常用网页制作html码

[复制链接]
查看: 2316|回复: 20

该用户从未签到

发表于 2004-11-19 14:34 | 显示全部楼层 |阅读模式
<>右键失效
加入到&lt;body&gt;里面
oncontextmenu=self.event.returnValue=false
onselectstart=self.event.returnValue=false
ondragstart=self.event.returnValue=false</P>
<>隐藏滚动条
加入到&lt;body&gt;里面
style="OVERFLOW-Y: hidden; OVERFLOW-X: hidden; OVERFLOW: scroll"

</P>
<>渐清晰图片(改变图片透明度)</P>
<>
&lt;SCRIPT language=JavaScript1.2&gt;
function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=30
}
function highlightit(cur2){
if (cur2.filters.alpha.opacity&lt;100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}
&lt;/SCRIPT&gt;</P>


<>
&lt;a href="1.htm" target="_blank"&gt;&lt;img onmouseover=high(this)
style="FILTER: alpha(opacity=40)" onmouseout=low(this)
src="010%5B1%5D.gif" width="80" height="60" border="0"&gt;&lt;/a&gt;</P>

<>加入背景音乐
随便加在那都可以
&lt;BGSOUND src="../mid/11.mid" loop=never&gt;</P>
<>自制滚动条
&lt;SCRIPT&gt;
function movstar(a,time){
movx=setInterval("mov("+a+")",time)
}
function movover(){
clearInterval(movx)
}
function mov(a){
scrollx=new_date.document.body.scrollLeft
scrolly=new_date.document.body.scrollTop
scrolly=scrolly+a
new_date.window.scroll(scrollx,scrolly)
}
function wback(){
if(new_date.history.length==0){window.history.back()}
else{new_date.history.back()}
}
&lt;/SCRIPT&gt;</P>
<>每天的日期更新
&lt;script LANGUAGE="JavaScript"&gt;
function number(index1){
var numberstring="一二三四五六七八九十";
  if(index1 ==0) {document.write("十")}
  if(index1 &lt; 10){
    document.write(numberstring.substring(0+(index1-1),index1))}
  else if(index1 &lt; 20 ){
    document.write("十"+numberstring.substring(0+(index1-11),(index1-10)))}
  else if(index1 &lt; 30 ){
    document.write("二十"+numberstring.substring(0+(index1-21),(index1-20)))}
  else{
    document.write("三十"+numberstring.substring(0+(index1-31),(index1-30)))}
  }</P>
<>var today1 = new Date()
var month = today1.getMonth()+1
var date = today1.getDate()
var day = today1.getDay()</P>
<>
document.write("&lt;br&gt;&lt;strong&gt;&lt;small&gt;&lt;center&gt;")
document.write("今天是:2000年")
number(month)
document.write("月")
number(date)
document.write("日&lt;/small&gt;&lt;center&gt;")
&lt;/script&gt;</P>
<P>这些都是常用的一些!各位高手都上些吧呵呵!!
http://love.tt.zj.cn/bbs这是我在老树空间里放的一个很小的留言本,如果有人要可以去里面下载,在留言本右下角有连接
</P>

该用户从未签到

发表于 2004-11-19 15:30 | 显示全部楼层
不错

该用户从未签到

发表于 2004-11-19 16:38 | 显示全部楼层
我跟老树讲过了,现在有20M了,那个论坛,全是我自己用动网然后插件都是自己加进去的呢。那个book好像是下载的,自己也修改了一下下,感觉好有形个,所以就放出来了。。。希望大家指点一下。。。

该用户从未签到

发表于 2004-11-19 14:37 | 显示全部楼层
<>可以去我那个看看吗,我感觉那个留言本错个。</P><>ie66.tt.zj.cn/book</P>

该用户从未签到

 楼主| 发表于 2004-11-19 14:41 | 显示全部楼层
的确不错好象太占空间了!!不要忘记你只有10M的空间啊!!你在空间上还放论坛哈哈!!!!浪费资源啊兄弟

该用户从未签到

 楼主| 发表于 2004-11-26 17:14 | 显示全部楼层
<>万年历代码</P><>&lt;script language="JavaScript"&gt;
&lt;!-- Begin
monthnames = new Array(
"1月",
"2月",
"3月",
"4月",
"5月",
"6月",
"7月",
"8月",
"10月",
"11月",
"12月"); </P><>var linkcount=0;
function addlink(month, day, href) {
var entry = new Array(3);
entry[0] = month;
entry[1] = day;
entry[2] = href;
this[linkcount++] = entry;
}
Array.prototype.addlink = addlink;
linkdays = new Array();
monthdays = new Array(12);
monthdays[0]=31;
monthdays[1]=28;
monthdays[2]=31;
monthdays[3]=30;
monthdays[4]=31;
monthdays[5]=30;
monthdays[6]=31;
monthdays[7]=31;
monthdays[8]=30;
monthdays[9]=31;
monthdays[10]=30;
monthdays[11]=31;
todayDate=new Date();
thisday=todayDate.getDay();
thismonth=todayDate.getMonth();
thisdate=todayDate.getDate();
thisyear=todayDate.getYear();
thisyear = thisyear % 100;
thisyear = ((thisyear &lt; 50) ? (2000 + thisyear) : (1900 + thisyear));
if (((thisyear % 4 == 0)
&amp;&amp; !(thisyear % 100 == 0))
||(thisyear % 400 == 0)) monthdays[1]++;
startspaces=thisdate;
while (startspaces &gt; 7) startspaces-=7;
startspaces = thisday - startspaces + 1;
if (startspaces &lt; 0) startspaces+=7;
document.write("&lt;table border=2 bgcolor=white ");
document.write("bordercolor=black&gt;&lt;font color=black&gt;");
document.write("&lt;tr&gt;&lt;td colspan=7&gt;&lt;center&gt;"
+ thisyear
+"年"+monthnames[thismonth]+"&lt;/center&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;");
document.write("&lt;tr&gt;");
document.write("&lt;td align=center&gt;日&lt;/td&gt;");
document.write("&lt;td align=center&gt;一&lt;/td&gt;");
document.write("&lt;td align=center&gt;二&lt;/td&gt;");
document.write("&lt;td align=center&gt;三&lt;/td&gt;");
document.write("&lt;td align=center&gt;四&lt;/td&gt;");
document.write("&lt;td align=center&gt;五&lt;/td&gt;");
document.write("&lt;td align=center&gt;六&lt;/td&gt;");
document.write("&lt;/tr&gt;");
document.write("&lt;tr&gt;");
for (s=0;s&lt;startspaces;s++) {
document.write("&lt;td&gt;&amp;nbsp&lt;/td&gt;");
}
count=1;
while (count &lt;= monthdays[thismonth]) {
for (b = startspaces;b&lt;7;b++) {
linktrue=false;
document.write("&lt;td&gt;");
for (c=0;c&lt;linkdays.length;c++) {
if (linkdays[c] != null) {
if ((linkdays[c][0]==thismonth + 1) &amp;&amp; (linkdays[c][1]==count)) {
document.write("&lt;a href=\"" + linkdays[c][2] + "\"&gt;");
linktrue=true;
}
}
}
if (count==thisdate) {
document.write("&lt;font color='FF0000'&gt;&lt;strong&gt;");
}
if (count &lt;= monthdays[thismonth]) {
document.write(count);
}
else {
document.write("&amp;nbsp");
}
if (count==thisdate) {
document.write("&lt;/strong&gt;&lt;/font&gt;");
}
if (linktrue)
document.write("&lt;/a&gt;");
document.write("&lt;/td&gt;");
count++;
}
document.write("&lt;/tr&gt;");
document.write("&lt;tr&gt;");
startspaces=0;
}
document.write("&lt;/table&gt;&lt;/p&gt;");
// End --&gt;
&lt;/script&gt;</P>

该用户从未签到

 楼主| 发表于 2004-11-26 17:21 | 显示全部楼层
<>跟随鼠标的十字型准架!!!</P><>&lt;style&gt;
&lt;!--
  #leftright, #topdown{
  position:absolute;
  left:0;
  top:0;
  width:1px;
  height:1px;
  layer-background-color:black;
  background-color:black;
  z-index:100;
  font-size:1px;
  }
  --&gt;
&lt;/style&gt;</P><>&lt;script language="JavaScript"&gt;
&lt;!--
if (document.all&amp;&amp;!window.print){
  leftright.style.width=document.body.clientWidth-2
  topdown.style.height=document.body.clientHeight-2
  }
else if (document.layers){
  document.leftright.clip.width=window.innerWidth
  document.leftright.clip.height=1
  document.topdown.clip.width=1
  document.topdown.clip.height=window.innerHeight
  }</P><>function followmouse1(){
  //move cross engine for IE 4+
  leftright.style.pixelTop=document.body.scrollTop+event.clientY+1
  topdown.style.pixelTop=document.body.scrollTop
  if (event.clientX&lt;document.body.clientWidth-2)
  topdown.style.pixelLeft=document.body.scrollLeft+event.clientX+1
  else
  topdown.style.pixelLeft=document.body.clientWidth-2
  }</P><>function followmouse2(e){
  //move cross engine for NS 4+
  document.leftright.top=e.y+1
  document.topdown.top=pageYOffset
  document.topdown.left=e.x+1
  }
if (document.all)
document.onmousemove=followmouse1
else if (document.layers){
  window.captureEvents(Event.MOUSEMOVE)
  window.onmousemove=followmouse2
  }</P><>function regenerate(){
  window.location.reload()
  }</P><>function regenerate2(){
  setTimeout("window.onresize=regenerate",400)
  }
if ((document.all&amp;&amp;!window.print)||document.layers)
//if the user is using IE 4 or NS 4, both NOT IE 5+
window.onload=regenerate2
//--&gt;
&lt;/script&gt;</P><>&lt;div id="leftright" style="width:expression(document.body.clientWidth-2)"&gt;&lt;/div&gt;
&lt;div id="topdown" style="height:expression(document.body.clientHeight-2)"&gt;&lt;/div&gt;</P>

该用户从未签到

 楼主| 发表于 2004-11-26 17:23 | 显示全部楼层
<>也是十字型准架!不过效果不同!</P><>&lt;style type="text/css"&gt;
&lt;!--
#leftright{
position:absolute;
left:0;
top:0;
width:1px;
height:1px;
layer-background-color:black;
background-color:#CC9900;
z-index:100;
font-size:0px;
}
#topdown { position:absolute;
left:0;
top:0;
width:1px;
height:1px;
layer-background-color:black;
background-color:#CC9900;
z-index:100;
font-size:0px;
} a { color: #CC9900; text-decoration: none; cursor: default}
a:hover { color: #FF0000; text-decoration: none; cursor: default}
.article {
BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; FILTER: revealTrans(transition=23,duration=0.5) blendTrans(duration=0.5); POSITION: absolute; VISIBILITY: hidden
; padding-top: 3px; padding-right: 3px; padding-bottom: 3px; padding-left: 3px; color: #CC9900}
--&gt;
&lt;/style&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=gb2312"&gt;
&lt;SCRIPT language=JavaScript1.2&gt;
&lt;!--
function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=40
}
function highlightit(cur2){
if (cur2.filters.alpha.opacity&lt;100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}
function navChange(formName, popupName, target) {
var popup = document[formName].elements[popupName];
if (popup.options[popup.selectedIndex].value != "") {
window.open(popup.options[popup.selectedIndex].value, target);
popup.selectedIndex=0;
}
}
function Show(divid) {
divid.filters.revealTrans.apply();
divid.style.visibility = "visible";
divid.filters.revealTrans.play();
}
function Hide(divid) {
divid.filters.revealTrans.apply();
divid.style.visibility = "hidden";
divid.filters.revealTrans.play();
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//--&gt;
&lt;/script&gt;
&lt;script language="JavaScript"&gt;
&lt;!--
function tmt_LayerSlider(targetNN, targetIE, x, y, step, delay) {
var changed = false;
if (document.layers) {
target = eval(targetNN);
if (eval(target.moving)) {
clearTimeout(target.tmtSlide);
}
if (target.left &gt; x) {
target.left -= eval(step);
changed = true;
}
if (target.left &lt; x) {
target.left += eval(step);
changed = true;
}
if (target.top &gt; y) {
target.top -= eval(step);
changed = true;
}
if (target.top &lt; y) {
target.top += eval(step);
changed = true;
}
if (changed) {
target.moving = true;
target.tmtSlide = setTimeout("tmt_LayerSlider(\"" + targetNN + "\",\"" + targetIE + "\",\"" + x + "\",\"" + y + "\",\"" + step + "\",\"" + delay + "\")", delay);
} else {
target.moving = false;
}
} else {
if (document.all) {
IEobjStr = targetIE.replace("['", ".");
target = eval(IEobjStr.replace("']", ""));
if (eval(target.moving)) {
clearTimeout(target.tmtSlide);
}
if (target.style.pixelLeft &gt; x) {
target.style.pixelLeft -= eval(step);
changed = true;
}
if (target.style.pixelLeft &lt; x) {
target.style.pixelLeft += eval(step);
changed = true;
}
if (target.style.pixelTop &gt; y) {
target.style.pixelTop -= eval(step);
changed = true;
}
if (target.style.pixelTop &lt; y) {
target.style.pixelTop += eval(step);
changed = true;
}
if (changed) {
target.moving = true;
target.tmtSlide = setTimeout("tmt_LayerSlider(\"" + targetNN + "\",\"" + targetIE + "\",\"" + x + "\",\"" + y + "\",\"" + step + "\",\"" + delay + "\")", delay);
} else {
target.moving = false;
}
}
}
}
//--&gt;
&lt;/script&gt;
&lt;body bgcolor="#000000" text="#FFCC00"&gt;
&lt;span&gt;&lt;/span&gt;
&lt;div id="leftright" style="width:expression(document.body.clientWidth-2)"&gt;&lt;/div&gt;
&lt;div id="topdown" style="height:expression(document.body.clientHeight-2)"&gt;&lt;/div&gt;
&lt;div id="Layer1" style="position:absolute; left:328px; top:216px; width:50px; height:20px; z-index:101; visibility: hidden" class="article"&gt;&lt;font color="#00FF00"&gt;01010101010101010101010101010101010&lt;/font&gt;
&lt;/div&gt;
&lt;div id="Layer2" style="position:absolute; left:328px; top:116px; width:50px; height:20px; z-index:102" class="article"&gt;&lt;font color="#FFCC00"&gt;10101010101010101010101010101010101&lt;/font&gt;&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table width="300" border="0" cellspacing="0" cellpadding="0" height="128"&gt;
&lt;tr&gt;
&lt;td height="50" align="right" class="my001"&gt;&lt;a href="####" onMouseOut="tmt_LayerSlider('document.layers[\'leftright\']','document.all[\'leftright\']','0','0','22','50');tmt_LayerSlider('document.layers[\'topdown\']','document.all[\'topdown\']','0','0','32','50');Hide(Layer2)" onMouseOver="tmt_LayerSlider('document.layers[\'leftright\']','document.all[\'leftright\']','0','150','22','50');tmt_LayerSlider('document.layers[\'topdown\']','document.all[\'topdown\']','260','0','32','50');Show(Layer2)" class="my001" onFocus="if(this.blur)this.blur()"&gt;&lt;font color="#FFCC00"&gt;9876543210&lt;/font&gt;
&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height="120" align="right"&gt;&lt;a href="####" onMouseOut="tmt_LayerSlider('document.layers[\'leftright\']','document.all[\'leftright\']','0','0','22','50');tmt_LayerSlider('document.layers[\'topdown\']','document.all[\'topdown\']','0','0','32','50');Hide(Layer1)" onMouseOver="tmt_LayerSlider('document.layers[\'leftright\']','document.all[\'leftright\']','0','223','22','50');tmt_LayerSlider('document.layers[\'topdown\']','document.all[\'topdown\']','260','0','32','50');Show(Layer1)" onFocus="if(this.blur)this.blur()"&gt;&lt;font color="#00FF00"&gt;0123456789&lt;/font&gt;
&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;span&gt;&lt;/span&gt; &lt;span&gt;&lt;/span&gt; </P>

该用户从未签到

 楼主| 发表于 2004-11-26 17:27 | 显示全部楼层
<>下面是几各!鼠标特效!!跟随鼠标的彩色小点!各有不同很好看的!!</P><>&lt;!--将以下代码加入HTML的&lt;Body&gt;&lt;/Body&gt;之间--&gt;
&lt;body bgcolor=#000000&gt;</P><>&lt;SCRIPT language=JavaScript&gt;
&lt;!--
Clrs=new Array('ff0000','00ff00','ffffff','ff00ff','ffa500','ffff00','00ff00','ffffff','ff00ff')
var speed=1;
var RunTime = 0;
var cntr=0;
var xcntr=100;
var Nslayers;
var pulse=25;
var onClrs;
var Xpos = 421;
var Ypos = 231;
var _y;
if (document.layers){
  window.captureEvents(Event.MOUSEMOVE);
  
  function xFollowMouse(evnt){
    Xpos = evnt.pageX;
    Ypos = evnt.pageY;
    }
  window.onMouseMove = xFollowMouse;
  document.write('&lt;layer name="a0" left=10 top=10 bgcolor="#ff0000" clip="0,0,2,2"&gt;&lt;/layer&gt;'
  +'&lt;layer name="a1" left=10 top=10 bgcolor="#00ff00" clip="0,0,2,2"&gt;&lt;/layer&gt;'
  +'&lt;layer name="a2" left=10 top=10 bgcolor="#ffffff" clip="0,0,2,2"&gt;&lt;/layer&gt;'
  +'&lt;layer name="a3" left=10 top=10 bgcolor="#ffa500" clip="0,0,2,2"&gt;&lt;/layer&gt;'
  +'&lt;layer name="a4" left=10 top=10 bgcolor="#ff00ff" clip="0,0,2,2"&gt;&lt;/layer&gt;'
  +'&lt;layer name="a5" left=10 top=10 bgcolor="#8888ff" clip="0,0,2,2"&gt;&lt;/layer&gt;'
  +'&lt;layer name="a6" left=10 top=10 bgcolor="#fff000" clip="0,0,2,2"&gt;&lt;/layer&gt;');
  }
else if (document.all){
  
  function FollowMouse(){
    Xpos = document.body.scrollLeft+event.x;
    Ypos = document.body.scrollTop+event.y;
    }
  document.onmousemove = FollowMouse;
  document.write('&lt;div id="ieDiv" style="position:absolute;top:0px;left:0px"&gt;'
  +'&lt;div id="c" style="position:relative"&gt;'
  +'&lt;div style="position:absolute;top:0px;left:0px;width:2px;height:2px;background:#ff0000;font-size:2px"&gt;&lt;/div&gt;'
  +'&lt;div style="position:absolute;top:0px;left:0px;width:2px;height:2px;background:#00ff00;font-size:2px"&gt;&lt;/div&gt;'
  +'&lt;div style="position:absolute;top:0px;left:0px;width:2px;height:2px;background:#ffffff;font-size:2px"&gt;&lt;/div&gt;'
  +'&lt;div style="position:absolute;top:0px;left:0px;width:2px;height:2px;background:#ffa500;font-size:2px"&gt;&lt;/div&gt;'
  +'&lt;div style="position:absolute;top:0px;left:0px;width:2px;height:2px;background:#ff00ff;font-size:2px"&gt;&lt;/div&gt;'
  +'&lt;div style="position:absolute;top:0px;left:0px;width:2px;height:2px;background:#8888ff;font-size:2px"&gt;&lt;/div&gt;'
  +'&lt;div style="position:absolute;top:0px;left:0px;width:2px;height:2px;background:#fff000;font-size:2px"&gt;&lt;/div&gt;'
  +'&lt;/div&gt;'
  +'&lt;/div&gt;');
  }</P><>function sv2(){
  if (document.layers){
    for (i=0;i&lt;7;i++)
    {
      Nslayers="a"+i;
      document.layers[0].top=Ypos+cntr*Math.cos((RunTime+i*4.5)/5);
      document.layers[0].left=Xpos+cntr*Math.sin((RunTime+i*4.5)/5);
      var randCol=Math.round(Math.random()*8);
      document.layers[0].bgColor=Clrs[randCol];
      }
    cntr+=1;
    RunTime+=speed;
    stp=setTimeout('sv2()',10);
    if (cntr&gt;=100)
    {
      cntr=100;
      speed=2.5;
      for (i=0;i&lt;7;i++)
      {
        Nslayers="a"+i;
        document.layers[Nslayers].top=Ypos+cntr*Math.cos((RunTime-100)*i/90);
        document.layers[Nslayers].left=Xpos+cntr*Math.sin((RunTime-100)*i/90);
        }
      }
    if (RunTime&gt;182)
    {
      speed=0.5;
      for (i=0;i&lt;7;i++)
      {
        Nslayers="a"+i;
        document.layers[Nslayers].top=Ypos+xcntr*Math.cos(((RunTime-182)+i*4.5)/5)*Math.cos((RunTime-182)/5);
        document.layers[Nslayers].left=Xpos+xcntr*Math.sin(((RunTime-182)+i*4.5)/5);
        }
      }
    }
  else if (document.all){
    for (i=0;i&lt;ieDiv.all.c.all.length;i++)
    {
      var randCol=Math.round(Math.random()*8);
      ieDiv.all.c.all[0].style.background=Clrs[randCol];
      ieDiv.all.c.all[0].style.top=Ypos+cntr*Math.cos((RunTime+i*4.5)/5);
      ieDiv.all.c.all[0].style.left=Xpos+cntr*Math.sin((RunTime+i*4.5)/5);
      }
    cntr+=1;
    RunTime+=speed;
    window.status=RunTime;
    stp=setTimeout('sv2()',10);
    if (cntr&gt;=100)
    {
      cntr=100;
      speed=2.5;
      for (i=0;i&lt;ieDiv.all.c.all.length;i++)
      {
        ieDiv.all.c.all<i>.style.top=Ypos+cntr*Math.cos((RunTime-100)*i/90);
        ieDiv.all.c.all<i>.style.left=Xpos+cntr*Math.sin((RunTime-100)*i/90);
        }
      }
    if (RunTime&gt;182)
    {
      speed=0.5;
      for (i=0;i&lt;ieDiv.all.c.all.length;i++)
      {
        ieDiv.all.c.all<i>.style.top=Ypos+xcntr*Math.cos(((RunTime-182)+i*4.5)/5)*Math.cos((RunTime-182)/5);
        ieDiv.all.c.all<i>.style.left=Xpos+xcntr*Math.sin(((RunTime-182)+i*4.5)/5);
        }
      }
    }
  if (RunTime&gt;210)
  {
    xcntr-=10;
    }
  if (document.layers)
  _y=-window.innerWidth-90;
  else if (document.all)
  _y=-document.body.clientWidth-90;
  if (xcntr &lt;= _y)
  {
    RunTime=0;
    speed=1;
    cntr=0;
    xcntr=100;
    }
  }
sv2()
//--&gt;
&lt;/SCRIPT&gt;</P><>&lt;/body&gt;</P>

该用户从未签到

 楼主| 发表于 2004-11-26 17:29 | 显示全部楼层
<>第2个
&lt;!--脚本代码--&gt;</P><>&lt;script language="JavaScript"&gt;
&lt;!--
var speed=20,divTop=0,divLeft=0,angle=0,ypos=0,xpos=0,amount=13;
if (document.layers){
for (i = 0; i &lt; amount; i++)
{document.write('&lt;layer name=nsa'+i+' top=0 left=0 width='+i/3+' height='+i/3+' bgcolor=#ffffff&gt;&lt;/layer&gt;');}
window.captureEvents(Event.MOUSEMOVE);</P><>function nsMouse(evnt){
xpos=evnt.pageX;ypos=evnt.pageY;
}
window.onMouseMove = nsMouse;
}
else if (document.all){
document.write('&lt;div style="position:absolute;top:0px;left:0px"&gt;');
document.write('&lt;div style="position:relative"&gt;');
for (i = 0; i &lt; amount; i++)
{document.write('&lt;div id=k style="position:absolute;top:0px;left:0px;width:'+i/3+';height:'+i/3+';background:#ffffff;font-size:'+i/3+'"&gt;&lt;/div&gt;')}
document.write('&lt;/div&gt;&lt;/div&gt;');</P><>function iMouse(){xpos=event.x;ypos=document.body.scrollTop+event.y}
document.onmousemove = iMouse;
}</P><>function getAngle(){
Y = ypos - divTop;X = xpos - divLeft;angle = Math.round(Math.atan2(Y,X) * 180/Math.PI);
if (angle &lt; 0)angle += 360;
}</P><>function bomb(){
if (document.layers){
Yscroll=window.pageYOffset;
ybase=Math.round(Math.random()*window.innerHeight);xbase=Math.round(Math.random()*window.innerWidth);
yybase=window.innerHeight-10;xxbase=window.innerWidth-10;
}
else if (document.all){
Yscroll=document.body.scrollTop;
ybase=Math.round(Math.random()*window.document.body.offsetHeight);xbase=Math.round(Math.random()*window.document.body.offsetWidth);
xxbase=window.document.body.offsetWidth-10;yybase=window.document.body.offsetHeight-10;
}
if ((xbase &gt; 10 &amp;&amp; xbase &lt; xxbase) &amp;&amp; (ybase &gt; 10 &amp;&amp; ybase &lt; yybase))
bomb();
else
{
  if ((divLeft &gt; xpos-speed/1.5) &amp;&amp; (divLeft &lt; xpos+speed/1.5) &amp;&amp; (divTop &gt;= ypos-speed/1.5) &amp;&amp; (divTop &lt;= ypos+speed/1.5))
  {divTop=ybase+Yscroll;divLeft=xbase}
y = Math.round(speed*Math.sin(angle*Math.PI/180));x = Math.round(speed*Math.cos(angle*Math.PI/180));
divTop+=y;divLeft+=x;
getAngle();
T=setTimeout('bomb()',20);
}
}</P><>function Split(){
Clrs=new Array('fff000','ffffff','ffa500')
var ntscp=document.layers,msie=document.all;
if (document.layers){
for (i = 0; i &lt; amount; i++)
{
if (i &lt; amount-1)
{ntscp['nsa'+i].top=ntscp['nsa'+(i+1)].top;ntscp['nsa'+i].left=ntscp['nsa'+(i+1)].left}
else  
{ntscp['nsa'+i].top=divTop;ntscp['nsa'+i].left=divLeft}
}
}
else if (document.all){
for (i = 0; i &lt;  amount; i++)
{
if (i &lt; amount-1)
{msie.k<i>.style.top=msie.k[i+1].style.top;msie.k<i>.style.left=msie.k[i+1].style.left}
  else
  {msie.k<i>.style.top=divTop;msie.k<i>.style.left=divLeft}
}
}
for (i=0; i &lt; amount-1; i++)
  {
   for (n=0; n &lt; Clrs.length; n++)
   {var x=Math.round(Math.random()*n)}
   if (document.layers){ntscp['nsa'+i].bgColor=Clrs[x]}
   else if (document.all){msie.k<i>.style.background=Clrs[x]}
  }
setTimeout("Split()",20);
}</P><>function StArT(){bomb();Split()}
window.onload=StArT;
//--&gt;
&lt;/script&gt;</P>

该用户从未签到

 楼主| 发表于 2004-11-26 17:29 | 显示全部楼层
<>第三个</P><>&lt;!--将以下代码加入HTML的&lt;Body&gt;&lt;/Body&gt;之间--&gt;
&lt;body bgcolor=#000000&gt;</P><>&lt;SCRIPT language=JavaScript&gt;
&lt;!--
//To add more stars simply add more colours in below array!!
colours=new Array('ff0000','00ff00','3366ff','ff00ff','ffa500','ffffff','fff000')
//Alter nothing below!!
amount=colours.length;
YgetDelay=0,XgetDelay=0,Ydelay=0,Xdelay=0,ns=(document.layers)?1:0,step=0.2,currStep=0,my=0,mx=0;
if (ns){
  for (i=0; i &lt; amount; i++)
  document.write('&lt;LAYER NAME="nsstars'+i+'" BGCOLOR='+colours<i>+' CLIP="0,0,2,2"&gt;&lt;/LAYER&gt;');
  }
else{
  document.write('&lt;div id="ie" style="position:absolute;top:0;left:0;"&gt;&lt;div style="position:relative"&gt;');
  for (i=0; i &lt; amount; i++)
  document.write('&lt;span id="iestars" style="position:absolute;top:0;left:0;width:2px;height:2px;background:'+colours<i>+';font-size:2px"&gt;&lt;/span&gt;');
  document.write('&lt;/div&gt;&lt;/div&gt;');
  }
if (ns){
  window.captureEvents(Event.MOUSEMOVE);
  
  function nMouse(evnt){
    my=evnt.pageY;mx=evnt.pageX
    }
  window.onMouseMove=nMouse;
  }
else{
  
  function iMouse(){
    my=event.y;mx=event.x;
    }
  document.onmousemove=iMouse
  }</P><>function stars(){
  if (!ns)ie.style.top=document.body.scrollTop;
  for (i=0; i &lt; amount; i++)
  {
    var layer=(document.layers)?document.layers["nsstars"+i]:iestars<i>.style;
    layer.top= Ydelay+100*Math.sin((5*Math.sin((currStep-15.99)/10))+i*70)*Math.sin((currStep)/10)*Math.cos((currStep+i*25)/10);
    layer.left=Xdelay+180*Math.cos((5*Math.sin((currStep-15.99)/10))+i*70)*Math.sin((currStep)/10)*Math.cos((currStep+i*25)/10);
    }
  currStep+=step;
  }</P><>function delay(){
  Ydelay = YgetDelay+=(my-YgetDelay)*1/20;
  Xdelay = XgetDelay+=(mx-XgetDelay)*1/20;
  stars();
  setTimeout('delay()',10);
  }
delay();
//--&gt;
&lt;/SCRIPT&gt;</P>

该用户从未签到

 楼主| 发表于 2004-11-26 17:30 | 显示全部楼层
<>四</P><>&lt;!--将以下代码加入HTML的&lt;Body&gt;&lt;/Body&gt;之间--&gt;
&lt;body bgcolor=#000000&gt;
&lt;script language="JavaScript"&gt;
&lt;!--
var a_Colour='fff000';
var b_Colour='00ff00';
var c_Colour='ff00ff';
var Size=120;</P><>var YDummy=new Array(),XDummy=new Array(),xpos=0,ypos=0,ThisStep=0;step=0.6;
if (document.layers){
window.captureEvents(Event.MOUSEMOVE);
function nsMouse(evnt){
xpos = window.pageYOffset+evnt.pageX+6;
ypos = window.pageYOffset+evnt.pageY+16;
}
window.onMouseMove = nsMouse;
}
else if (document.all)
{
function ieMouse(){
xpos = document.body.scrollLeft+event.x+6;
ypos = document.body.scrollTop+event.y+16;
}
document.onmousemove = ieMouse;
}</P><>function swirl(){
for (i = 0; i &lt; 3; i++)
{
YDummy<i>=ypos+Size*Math.sin((1*Math.sin((ThisStep)/10))+i*2)*Math.sin((ThisStep)/4);
XDummy<i>=xpos+Size*Math.cos((1*Math.sin((ThisStep)/10))+i*2)*Math.sin((ThisStep)/4);
}
ThisStep+=step;
setTimeout('swirl()',10);
}</P><>var amount=10;
if (document.layers){
for (i = 0; i &lt; amount; i++)
{
document.write('&lt;layer name=nsa'+i+' top=0 left=0 width='+i/2+' height='+i/2+' bgcolor='+a_Colour+'&gt;&lt;/layer&gt;');
document.write('&lt;layer name=nsb'+i+' top=0 left=0 width='+i/2+' height='+i/2+' bgcolor='+b_Colour+'&gt;&lt;/layer&gt;');
document.write('&lt;layer name=nsc'+i+' top=0 left=0 width='+i/2+' height='+i/2+' bgcolor='+c_Colour+'&gt;&lt;/layer&gt;');
}
}
else if (document.all){
document.write('&lt;div id="ODiv" style="position:absolute;top:0px;left:0px"&gt;'
+'&lt;div id="IDiv" style="position:relative"&gt;');
for (i = 0; i &lt; amount; i++)
{
document.write('&lt;div id=x style="position:absolute;top:0px;left:0px;width:'+i/2+';height:'+i/2+';background:'+a_Colour+';font-size:'+i/2+'"&gt;&lt;/div&gt;');
document.write('&lt;div id=y style="position:absolute;top:0px;left:0px;width:'+i/2+';height:'+i/2+';background:'+b_Colour+';font-size:'+i/2+'"&gt;&lt;/div&gt;');
document.write('&lt;div id=z style="position:absolute;top:0px;left:0px;width:'+i/2+';height:'+i/2+';background:'+c_Colour+';font-size:'+i/2+'"&gt;&lt;/div&gt;');
}
document.write('&lt;/div&gt;&lt;/div&gt;');
}
function prepos(){
var ntscp=document.layers;
var msie=document.all;
if (document.layers){
for (i = 0; i &lt; amount; i++)
{
if (i &lt; amount-1)
{
ntscp['nsa'+i].top=ntscp['nsa'+(i+1)].top;ntscp['nsa'+i].left=ntscp['nsa'+(i+1)].left;
ntscp['nsb'+i].top=ntscp['nsb'+(i+1)].top;ntscp['nsb'+i].left=ntscp['nsb'+(i+1)].left;
ntscp['nsc'+i].top=ntscp['nsc'+(i+1)].top;ntscp['nsc'+i].left=ntscp['nsc'+(i+1)].left;
}
else  
{
ntscp['nsa'+i].top=YDummy[0];ntscp['nsa'+i].left=XDummy[0];
ntscp['nsb'+i].top=YDummy[1];ntscp['nsb'+i].left=XDummy[1];
ntscp['nsc'+i].top=YDummy[2];ntscp['nsc'+i].left=XDummy[2];
}
}
}
else if (document.all){
for (i = 0; i &lt;  amount; i++)
{
if (i &lt; amount-1)
{
msie.x<i>.style.top=msie.x[i+1].style.top;msie.x<i>.style.left=msie.x[i+1].style.left;
msie.y<i>.style.top=msie.y[i+1].style.top;msie.y<i>.style.left=msie.y[i+1].style.left;
msie.z<i>.style.top=msie.z[i+1].style.top;msie.z<i>.style.left=msie.z[i+1].style.left;
}
else
{
msie.x<i>.style.top=YDummy[0];msie.x<i>.style.left=XDummy[0];
msie.y<i>.style.top=YDummy[1];msie.y<i>.style.left=XDummy[1];
msie.z<i>.style.top=YDummy[2];msie.z<i>.style.left=XDummy[2];
}
}
}
setTimeout("prepos()",10);
}
function Start(){
swirl(),prepos()
}
window.onload=Start;
// --&gt;
&lt;/script&gt;
&lt;/body&gt;</P>

该用户从未签到

 楼主| 发表于 2004-11-26 17:30 | 显示全部楼层
<>五</P><>&lt;!--将以下代码加入HTML的&lt;Body&gt;&lt;/Body&gt;之间--&gt;
&lt;body bgcolor=#000000&gt;
&lt;LAYER NAME="a0" LEFT="10" TOP="10" VISIBILITY="SHOW" BGCOLOR="#ffffff" CLIP="0,0,1,1"&gt;
&lt;/LAYER&gt;
&lt;LAYER NAME="a1" LEFT="10" TOP="10" VISIBILITY="SHOW" BGCOLOR="#fff000" CLIP="0,0,1,1"&gt;
&lt;/LAYER&gt;
&lt;LAYER NAME="a2" LEFT="10" TOP="10" VISIBILITY="SHOW" BGCOLOR="#ffa000" CLIP="0,0,1,1"&gt;
&lt;/LAYER&gt;
&lt;LAYER NAME="a3" LEFT="10" TOP="10" VISIBILITY="SHOW" BGCOLOR="#ff00ff" CLIP="0,0,1,1"&gt;
&lt;/LAYER&gt;
&lt;LAYER NAME="a4" LEFT="10" TOP="10" VISIBILITY="SHOW" BGCOLOR="#00ff00" CLIP="0,0,1,1"&gt;
&lt;/LAYER&gt;
&lt;LAYER NAME="a5" LEFT="10" TOP="10" VISIBILITY="SHOW" BGCOLOR="#FF00FF" CLIP="0,0,1,1"&gt;
&lt;/LAYER&gt;
&lt;LAYER NAME="a6" LEFT="10" TOP="10" VISIBILITY="SHOW" BGCOLOR="#FF0000" CLIP="0,0,1,1"&gt;
&lt;/LAYER&gt;
&lt;LAYER NAME="a7" LEFT="10" TOP="10" VISIBILITY="SHOW" BGCOLOR="#ffffff" CLIP="0,0,2,2"&gt;
&lt;/LAYER&gt;
&lt;LAYER NAME="a8" LEFT="10" TOP="10" VISIBILITY="SHOW" BGCOLOR="#fff000" CLIP="0,0,2,2"&gt;
&lt;/LAYER&gt;
&lt;LAYER NAME="a9" LEFT="10" TOP="10" VISIBILITY="SHOW" BGCOLOR="#ffa000" CLIP="0,0,2,2"&gt;
&lt;/LAYER&gt;
&lt;LAYER NAME="a10" LEFT="10" TOP="10" VISIBILITY="SHOW" BGCOLOR="#ff00ff" CLIP="0,0,2,2"&gt;
&lt;/LAYER&gt;
&lt;LAYER NAME="a11" LEFT="10" TOP="10" VISIBILITY="SHOW" BGCOLOR="#00ff00" CLIP="0,0,2,2"&gt;
&lt;/LAYER&gt;
&lt;LAYER NAME="a12" LEFT="10" TOP="10" VISIBILITY="SHOW" BGCOLOR="#0000ff" CLIP="0,0,2,2"&gt;
&lt;/LAYER&gt;
&lt;LAYER NAME="a13" LEFT="10" TOP="10" VISIBILITY="SHOW" BGCOLOR="#FF0000" CLIP="0,0,2,2"&gt;
&lt;/LAYER&gt;</P><>&lt;script language="JavaScript"&gt;
if (document.all){
with (document){
write('&lt;div id="starsDiv" style="position:absolute;top:0px;left:0px"&gt;')
write('&lt;div style="position:relative;width:1px;height:1px;background:#ffffff;font-size:1px;visibility:visible"&gt;&lt;/div&gt;')
write('&lt;div style="position:relative;width:1px;height:1px;background:#fff000;font-size:1px;visibility:visible"&gt;&lt;/div&gt;')
write('&lt;div style="position:relative;width:1px;height:1px;background:#ffa000;font-size:1px;visibility:visible"&gt;&lt;/div&gt;')
write('&lt;div style="position:relative;width:1px;height:1px;background:#ff00ff;font-size:1px;visibility:visible"&gt;&lt;/div&gt;')
write('&lt;div style="position:relative;width:1px;height:1px;background:#00ff00;font-size:1px;visibility:visible"&gt;&lt;/div&gt;')
write('&lt;div style="position:relative;width:1px;height:1px;background:#0000ff;font-size:1px;visibility:visible"&gt;&lt;/div&gt;')
write('&lt;div style="position:relative;width:1px;height:1px;background:#FF0000;font-size:1px;visibility:visible"&gt;&lt;/div&gt;')
write('&lt;div style="position:relative;width:2px;height:2px;background:#ffffff;font-size:2px;visibility:visible"&gt;&lt;/div&gt;')
write('&lt;div style="position:relative;width:2px;height:2px;background:#fff000;font-size:2px;visibility:visible"&gt;&lt;/div&gt;')
write('&lt;div style="position:relative;width:2px;height:2px;background:#ffa000;font-size:2px;visibility:visible"&gt;&lt;/div&gt;')
write('&lt;div style="position:relative;width:2px;height:2px;background:#ff00ff;font-size:2px;visibility:visible"&gt;&lt;/div&gt;')
write('&lt;div style="position:relative;width:2px;height:2px;background:#00ff00;font-size:2px;visibility:visible"&gt;&lt;/div&gt;')
write('&lt;div style="position:relative;width:2px;height:2px;background:#0000ff;font-size:2px;visibility:visible"&gt;&lt;/div&gt;')
write('&lt;div style="position:relative;width:3px;height:3px;background:#FF0000;font-size:3px;visibility:visible"&gt;&lt;/div&gt;')
write('&lt;/div&gt;')
}
}
if (document.layers)
{window.captureEvents(Event.MOUSEMOVE);}
var yBase = 200;
var xBase = 200;
var step = 1;
var currStep = 0;
var Xpos = 1;
var Ypos = 1;
if (document.all)
{</P><>  function MoveHandler(){
  Xpos = document.body.scrollLeft+event.x;
  Ypos = document.body.scrollTop+event.y;
  }
  document.onmousemove = MoveHandler;
}
else if (document.layers)
{</P><>  function xMoveHandler(evnt){
  Xpos = evnt.pageX;
  Ypos = evnt.pageY;
  }
  window.onMouseMove = xMoveHandler;
}</P><>function animateLogo() {
if (document.all)
{
yBase = window.document.body.offsetHeight/6;
xBase = window.document.body.offsetWidth/6;
}
else if (document.layers)
{
yBase = window.innerHeight/8;
xBase = window.innerWidth/8;
}
if (document.all)
{
for ( i = 0 ; i &lt; starsDiv.all.length ; i++ )
{
  starsDiv.all<i>.style.top = Ypos + yBase*Math.sin((currStep + i*4)/12)*Math.cos(400+currStep/200);
starsDiv.all<i>.style.left = Xpos + xBase*Math.sin((currStep + i*3)/10)*Math.sin(currStep/200);
}
}
else if (document.layers)
{
for ( j = 0 ; j &lt; 14 ; j++ ) //number of NS layers!
{
  var templayer="a"+j
  document.layers[templayer].top = Ypos + yBase*Math.sin((currStep + j*4)/12)*Math.cos(400+currStep/200);
  document.layers[templayer].left = Xpos + xBase*Math.sin((currStep + j*3)/10)*Math.sin(currStep/200);
}
}
currStep+= step;
setTimeout("animateLogo()", 10);
}
animateLogo();
&lt;/script&gt;
</P>

该用户从未签到

 楼主| 发表于 2004-11-26 17:31 | 显示全部楼层
<>六</P><>&lt;body bgcolor="#000000"&gt;</P><>&lt;p&gt;
&lt;LAYER NAME="a0" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ffffff" CLIP="0,0,1,1"&gt;&lt;/LAYER&gt;
&lt;LAYER NAME="a1" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#fff000" CLIP="0,0,1,1"&gt;&lt;/LAYER&gt;
&lt;LAYER NAME="a2" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ffa000" CLIP="0,0,1,1"&gt;&lt;/LAYER&gt;
&lt;LAYER NAME="a3" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ff00ff" CLIP="0,0,1,1"&gt;&lt;/LAYER&gt;
&lt;LAYER NAME="a4" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#00ff00" CLIP="0,0,1,1"&gt;&lt;/LAYER&gt;
&lt;LAYER NAME="a5" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#FF00FF" CLIP="0,0,1,1"&gt;&lt;/LAYER&gt;
&lt;LAYER NAME="a6" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#FF0000" CLIP="0,0,1,1"&gt;&lt;/LAYER&gt;
&lt;LAYER NAME="a7" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ffffff" CLIP="0,0,2,2"&gt;&lt;/LAYER&gt;
&lt;LAYER NAME="a8" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#fff000" CLIP="0,0,2,2"&gt;&lt;/LAYER&gt;
&lt;LAYER NAME="a9" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ffa000" CLIP="0,0,2,2"&gt;&lt;/LAYER&gt;
&lt;LAYER NAME="a10" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ff00ff" CLIP="0,0,2,2"&gt;&lt;/LAYER&gt;
&lt;LAYER NAME="a11" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#00ff00" CLIP="0,0,2,2"&gt;&lt;/LAYER&gt;
&lt;LAYER NAME="a12" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#0000ff" CLIP="0,0,2,2"&gt;&lt;/LAYER&gt;
&lt;LAYER NAME="a13" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#FF0000" CLIP="0,0,3,3"&gt;&lt;/LAYER&gt;
&lt;div id="starsDiv" style="position:absolute;top:0px;left:0px"&gt;
&lt;div style="position:relative;width:1px;height:1px;background:#ffffff;font-size:1px;visibility:visible"&gt;&lt;/div&gt;
&lt;div style="position:relative;width:1px;height:1px;background:#fff000;font-size:1px;visibility:visible"&gt;&lt;/div&gt;
&lt;div style="position:relative;width:1px;height:1px;background:#ffa000;font-size:1px;visibility:visible"&gt;&lt;/div&gt;
&lt;div style="position:relative;width:1px;height:1px;background:#ff00ff;font-size:1px;visibility:visible"&gt;&lt;/div&gt;
&lt;div style="position:relative;width:1px;height:1px;background:#00ff00;font-size:1px;visibility:visible"&gt;&lt;/div&gt;
&lt;div style="position:relative;width:1px;height:1px;background:#0000ff;font-size:1px;visibility:visible"&gt;&lt;/div&gt;
&lt;div style="position:relative;width:1px;height:1px;background:#FF0000;font-size:1px;visibility:visible"&gt;&lt;/div&gt;
&lt;div style="position:relative;width:2px;height:2px;background:#ffffff;font-size:2px;visibility:visible"&gt;&lt;/div&gt;
&lt;div style="position:relative;width:2px;height:2px;background:#fff000;font-size:2px;visibility:visible"&gt;&lt;/div&gt;
&lt;div style="position:relative;width:2px;height:2px;background:#ffa000;font-size:2px;visibility:visible"&gt;&lt;/div&gt;
&lt;div style="position:relative;width:2px;height:2px;background:#ff00ff;font-size:2px;visibility:visible"&gt;&lt;/div&gt;
&lt;div style="position:relative;width:2px;height:2px;background:#00ff00;font-size:2px;visibility:visible"&gt;&lt;/div&gt;
&lt;div style="position:relative;width:2px;height:2px;background:#0000ff;font-size:2px;visibility:visible"&gt;&lt;/div&gt;
&lt;div style="position:relative;width:3px;height:3px;background:#FF0000;font-size:3px;visibility:visible"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;SCRIPT LANGUAGE="JavaScript"&gt;
&lt;!-- Original:  Parno (parno@163.com) --&gt;
&lt;!-- Web Site:  http://www.ydong.com/studio --&gt;</P><>&lt;!-- This script and many more are available free online at --&gt;
&lt;!-- The JavaScript Source!! http://javascript.internet.com --&gt;</P><>&lt;!-- Begin
var Clrs = new Array(6);
Clrs[0] = 'ff0000';
Clrs[1] = '00ff00';
Clrs[2] = '000aff';
Clrs[3] = 'ff00ff';
Clrs[4] = 'fff000';
Clrs[5] = 'fffff0';
var yBase = 200;
var xBase = 200;
var step;
var currStep = 0;
var Xpos = 1;
var Ypos = 1;
var Xs = 200;
var Ys = 400;
if (document.layers) {
window.captureEvents(Event.MOUSEMOVE);
}
if (document.all) {
function MoveHandler() {
Xpos = document.body.scrollLeft+event.x;
Ypos = document.body.scrollTop+event.y;
}
document.onmousemove = MoveHandler;
}
else if (document.layers) {
function xMoveHandler(evnt) {
Xpos = evnt.pageX;
Ypos = evnt.pageY;
}
window.onMouseMove = xMoveHandler;
}
function Comet() {
if (document.all) {
yBase = window.document.body.offsetHeight / 4;
xBase = window.document.body.offsetWidth / 4;
}
else if (document.layers) {
yBase = window.innerHeight / 4;
xBase = window.innerWidth / 4;
}
if (document.all) {
for ( i = 0 ; i &lt; starsDiv.all.length ; i++ ) {
step = 3;
starsDiv.all<i>.style.top = Ypos + yBase*Math.cos((currStep + i*4)/12)*Math.cos(0.7+currStep/200);
starsDiv.all<i>.style.left = Xpos + xBase*Math.sin((currStep + i*3)/10)*Math.sin(8.2+currStep/400);
for (ai = 0; ai &lt; Clrs.length; ai++) {
var c=Math.round(Math.random()*[ai]);
}
starsDiv.all<i>.style.background = Clrs[c];
   }
}
else if (document.layers) {
for ( j = 0 ; j &lt; 14 ; j++ ) { //number of NS layers!
step = 6;
var templayer = "a"+j;
document.layers[templayer].top = Ypos + yBase*Math.cos((currStep + j*4)/12)*Math.cos(0.7+currStep/200);
document.layers[templayer].left = Xpos + xBase*Math.sin((currStep + j*3)/10)*Math.sin(8.2+currStep/400);
for (aj=0; aj &lt; Clrs.length; aj++)
{
var c=Math.round(Math.random()*[aj]);
}
document.layers[templayer].bgColor = Clrs[c];
   }
}
currStep += step;
setTimeout("Comet()", 5);
}
Comet();
//  End --&gt;
&lt;/script&gt;</P>

该用户从未签到

 楼主| 发表于 2004-11-26 17:34 | 显示全部楼层
<>这是一个很好看的光照效果!背景可以随便修改也可以换成图片.</P><>&lt;!--将以下代码加入HTML的&lt;Body&gt;&lt;/Body&gt;之间--&gt;</P><>&lt;script language="VBScript"&gt;
Option Explicit
sub window_OnLoad()
    call myLightObject.filters.light(0).addambient(0,0,255,30)
call myLightObject.filters.light(0).addcone(400,400,200,100,100,200,204,200,80,10)
end sub
sub document_onMouseMove()
    call myLightObject.filters.light(0).MoveLight(1,window.event.x,window.event.y,0,1)
end sub
&lt;/script&gt;
&lt;div id="myLightObject" style="position: relative; height: 400px; width: 400px; top: 10px; left: 0px; color: White; filter: light"&gt;
&lt;center&gt;
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM&lt;br&gt;MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM&lt;br&gt;MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM&lt;br&gt;MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM&lt;br&gt;MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM&lt;br&gt;MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM&lt;br&gt;MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM&lt;br&gt;MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM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MMMMMMMMMMMM&lt;br&gt;MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM&lt;br&gt;MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM&lt;br&gt;MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM&lt;br</P>

该用户从未签到

 楼主| 发表于 2004-11-26 17:37 | 显示全部楼层
<>可以拖动的图片!</P><>&lt;style type="text/css"&gt;
#plane1 {position:absolute; left:290; top:170; width:121; z-index:0}
#plane2 {position:absolute; left:400; top:250; width:118; z-index:0}
&lt;/style&gt;
&lt;SCRIPT LANGUAGE="JavaScript"&gt;
//Modified by the CoffeeCup HTML Editor++
//http://www.coffeecup.com
// Global variables for platform branching
var isNav, isIE
if (parseInt(navigator.appVersion) &gt;= 4) {
if (navigator.appName == "Netscape") {
  isNav = true
} else {
  isIE = true
}
}</P><>// ***Begin CSS custom API Functions***
// Set zIndex property
function setZIndex(obj, zOrder) {
obj.zIndex = zOrder
}
// Position an object at a specific pixel coordinate
function shiftTo(obj, x, y) {
if (isNav) {
  obj.moveTo(x,y)
} else {
  obj.pixelLeft = x
  obj.pixelTop = y
}
}
// ***End API Functions***</P><>// Global holds reference to selected element
var selectedObj
// Globals hold location of click relative to element
var offsetX, offsetY</P><>// Find out which element has been clicked on
function setSelectedElem(evt) {
if (isNav) {
  // declare local var for use in upcoming loop
  var testObj
  // make copies of event coords for use in upcoming loop
  var clickX = evt.pageX
  var clickY = evt.pageY
  // loop through all layers (starting with frontmost layer)
  // to find if the event coordinates are in the layer
  for (var i = document.layers.length - 1; i &gt;= 0; i--) {
   testObj = document.layers<i>
   if ((clickX &gt; testObj.left) &amp;&amp;
    (clickX &lt; testObj.left + testObj.clip.width) &amp;&amp;
    (clickY &gt; testObj.top) &amp;&amp;
    (clickY &lt; testObj.top + testObj.clip.height)) {
     // if so, then set the global to the layer, bring it
     // forward, and get outa here
     selectedObj = testObj
     setZIndex(selectedObj, 100)
     return
   }
  }
} else {
  // use IE event model to get the targeted element
  var imgObj = window.event.srcElement
  // make sure it's one of our planes
  if (imgObj.parentElement.id.indexOf("plane") != -1) {
   // then set the global to the style property of the element,
   // bring it forward, and say adios
   selectedObj = imgObj.parentElement.style
   setZIndex(selectedObj,100)
   return
  }
}
// the user probably clicked on the background
selectedObj = null
return
}
// Drag an element
function dragIt(evt) {
// operate only if a plane is selected
if (selectedObj) {
  if (isNav) {
   shiftTo(selectedObj, (evt.pageX - offsetX), (evt.pageY - offsetY))
  } else {
   shiftTo(selectedObj, (window.event.clientX - offsetX), (window.event.clientY - offsetY))
   // prevent further system response to dragging in IE
   return false
  }
}
}
// Set globals to connect with selected element
function engage(evt) {
setSelectedElem(evt)
if (selectedObj) {
  // set globals that remember where the click is in relation to the
  // top left corner of the element so we can keep the element-to-cursor
  // relationship constant throughout the drag
  if (isNav) {
   offsetX = evt.pageX - selectedObj.left
   offsetY = evt.pageY - selectedObj.top
  } else {
   offsetX = window.event.offsetX
   offsetY = window.event.offsetY
  }
}
// block mouseDown event from forcing Mac to display
// contextual menu.
return false
}
// Restore elements and globals to initial values
function release(evt) {
if (selectedObj) {
  setZIndex(selectedObj, 0)
  selectedObj = null
}
}
// Turn on event capture for Navigator
function setNavEventCapture() {
if (isNav) {
  document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE | Event.MOUSEUP)
}
}
// Assign event handlers used by both Navigator and IE (called by onLoad)
function init() {
if (isNav) {
  setNavEventCapture()
}
// assign functions to each of the events (works for both Navigator and IE)
document.onmousedown = engage
document.onmousemove = dragIt
document.onmouseup = release
}
&lt;/SCRIPT&gt; </P><>
&lt;DIV ID=plane1&gt;&lt;IMG NAME="planePic1" SRC="图片地址" BORDER=0&gt;&lt;/DIV&gt;
&lt;DIV ID=plane2&gt;&lt;IMG NAME="planePic1" SRC="图片地址" BORDER=0&gt;&lt;/DIV&gt;</P><>
&lt;body bgcolor="#fef4d9" onLoad="init()"&gt;</P>

该用户从未签到

 楼主| 发表于 2004-11-26 17:39 | 显示全部楼层
<>横飞的夜间星空!</P><>&lt;!-- 用&lt;BODY bgColor=#000000 onload=fly()&gt;替换原有的&lt;body&gt; --&gt;
&lt;BODY bgColor=#000000 onload=fly()&gt;
&lt;SCRIPT language=JavaScript&gt;
&lt;!--
SmallStars = 30;
LargeStars = 10;</P><>SmallYpos = new Array();
SmallXpos = new Array();
LargeYpos = new Array();
LargeXpos = new Array();
Smallspeed= new Array();
Largespeed= new Array();
ns=(document.layers)?1:0;
if (ns){
for (i = 0; i &lt; SmallStars; i++)
{document.write("&lt;LAYER NAME='sn"+i+"' LEFT=0 TOP=0 BGCOLOR='#FFFFF0' CLIP='0,0,1,1'&gt;&lt;/LAYER&gt;")}
for (i = 0; i &lt; LargeStars; i++)
{document.write("&lt;LAYER NAME='ln"+i+"' LEFT=0 TOP=0 BGCOLOR='#FFFFFF' CLIP='0,0,2,2'&gt;&lt;/LAYER&gt;")}
}
else{
document.write('&lt;div style="position:absolute;top:0px;left:0px"&gt;');
document.write('&lt;div style="position:relative"&gt;');
for (i = 0; i &lt; SmallStars; i++)
{document.write('&lt;div id="si" style="position:absolute;top:0;left:0;width:1px;height:1px;background:#fffff0;font-size:1px"&gt;&lt;/div&gt;')}
document.write('&lt;/div&gt;');
document.write('&lt;/div&gt;');
document.write('&lt;div style="position:absolute;top:0px;left:0px"&gt;');
document.write('&lt;div style="position:relative"&gt;');
for (i = 0; i &lt; LargeStars; i++)
{document.write('&lt;div id="li" style="position:absolute;top:0;left:0;width:2px;height:2px;background:#ffffff;font-size:2px"&gt;&lt;/div&gt;')}
document.write('&lt;/div&gt;');
document.write('&lt;/div&gt;');
}
WinHeight=(document.layers)?window.innerHeight:window.document.body.clientHeight;
WinWidth=(document.layers)?window.innerWidth:window.document.body.clientWidth;
//Inital placement!
for (i=0; i &lt; SmallStars; i++)
{                                                               
SmallYpos<i> = Math.round(Math.random()*WinHeight);
SmallXpos<i> = Math.round(Math.random()*WinWidth);
Smallspeed<i>= Math.random()*5+1;
}
for (i=0; i &lt; LargeStars; i++)
{                                                               
LargeYpos<i> = Math.round(Math.random()*WinHeight);
LargeXpos<i> = Math.round(Math.random()*WinWidth);
Largespeed<i>= Math.random()*10+5;
}
function fly(){
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;</P><>for (i=0; i &lt; LargeStars; i++)
{
LargeXpos<i>-=Largespeed<i>;
if (LargeXpos<i> &lt; -10)
  {
  LargeXpos<i>=WinWidth;
  LargeYpos<i>=Math.round(Math.random()*WinHeight);
  Largespeed<i>=Math.random()*10+5;
  }
if (ns){
document.layers['ln'+i].left=LargeXpos<i>;
document.layers['ln'+i].top=LargeYpos<i>+hscrll;
}
else{
li<i>.style.pixelLeft=LargeXpos<i>;
li<i>.style.pixelTop=LargeYpos<i>+hscrll;
}
}</P><>for (i=0; i &lt; SmallStars; i++)
{
SmallXpos<i>-=Smallspeed<i>;
if (SmallXpos<i> &lt; -10)
  {
  SmallXpos<i>=WinWidth;
  SmallYpos<i>=Math.round(Math.random()*WinHeight);
  Smallspeed<i>=Math.random()*5+1;
  }
if (ns){
document.layers['sn'+i].left=SmallXpos<i>;
document.layers['sn'+i].top=SmallYpos<i>+hscrll;
}
else{
si<i>.style.pixelLeft=SmallXpos<i>;
si<i>.style.pixelTop=SmallYpos<i>+hscrll;
}
}
setTimeout('fly()',10);
}
//fly();
//--&gt;
&lt;/SCRIPT&gt;&lt;/BODY&gt;</P>

该用户从未签到

 楼主| 发表于 2004-11-26 17:40 | 显示全部楼层
<>星球被撞进网页里去了</P><>&lt;!--将以下代码加入HTML的&lt;Body&gt;&lt;/Body&gt;之间--&gt;</P><>&lt;script language="JavaScript"&gt;
&lt;!-- Space Variation by kurt.jojoo@jojoo.net
if (document.all){
xL=5;
xH=0;
xW=0;
xR=0;
xE=0;
xMY=0;
xMX=0;
xWd=0;
xHd=0;
xF=new Array();
xY=new Array();
xX=new Array();
xS=new Array();
xA=new Array();
xB=new Array();
ini=new Array();
cl=new Array('#fff000','#0000FF','#ff0000','#00ff00','#ff00ff','#ffa500')
document.write('&lt;div id="xouter" style="position:absolute;top:0px;left:0px"&gt;&lt;div style="position:relative"&gt;');
for (i=0; i &lt; xL; i++){
document.write('&lt;div id="xie" style="position:absolute;top:0;left:0;width:10px;height:10px;'
+'font-family:Courier New;font-size:50px;color:#ffffff"&gt;.&lt;/div&gt;');
}
document.write('&lt;/div&gt;&lt;/div&gt;');
//Initial Placement!
function Set(){
for (i=0; i &lt; xL; i++){
xH=window.document.body.offsetHeight;
xW=window.document.body.offsetWidth;
xA<i>=Math.round(Math.random()*xH);
xB<i>=Math.round(Math.random()*xW);
xS<i>=Math.random()*0.07+0.05;
xR=Math.round(Math.random()*3);
xE=Math.round(Math.random()*2500+50)
if (xR == 3) xB<i>=-xE;
if (xR == 2) xB<i>=xW+xE;
if (xR == 1) xA<i>=-xE;
if (xR == 0) xA<i>=xH;
xF<i>=xW/14;
}
}
Set();
function Assign(){
xouter.style.top=document.body.scrollTop;
for (i=0; i &lt; xL; i++){
xF<i>-=xS<i>*25;
if (xF<i> &lt; 4) xF<i>=3;
xie<i>.style.top =xY<i>;
xie<i>.style.left=xX<i>;
xie<i>.style.fontSize=xF<i>;
xie<i>.style.filter='glow(color='+ini<i>+', strength='+xF<i>/3+')';
}
}
function fly(){
var N=Math.floor(Math.random()*cl.length)
xMY=window.document.body.clientHeight/2;
xMX=window.document.body.clientWidth/2;
xWd=Math.round(Math.random()*40+5);
xHd=Math.round(Math.random()*30+5);
for (i=0; i &lt; xL; i++)
{
xY<i>=xA<i>+=(xMY-xA<i>)*(xS<i>);              
xX<i>=xB<i>+=(xMX-xB<i>)*(xS<i>);  
if ((xX<i> &gt; xMX-xWd) &amp;&amp; (xX<i> &lt; xMX+xWd) &amp;&amp; (xY<i> &gt; xMY-xHd) &amp;&amp; (xY<i> &lt; xMY+xHd)){

xH=window.document.body.offsetHeight;
xW=window.document.body.offsetWidth;
xA<i>=Math.round(Math.random()*xH);
xB<i>=Math.round(Math.random()*xW);
xS<i>=Math.random()*0.05+0.05;
xR=Math.round(Math.random()*3);
xE=Math.round(Math.random()*50+50)
if (xR == 3) xB<i>=-xE;
if (xR == 2) xB<i>=xW+xE;
if (xR == 1) xA<i>=-xE;
if (xR == 0) xA<i>=xH+xE;
}
if ((xX<i> &lt; 0) || (xX<i> &gt; xW) || (xY<i> &lt; 0) || (xY<i> &gt; xH))
{
xF<i>=xW/14;
ini<i>=cl[N];
}
}
Assign();
setTimeout('fly()',10);
}
fly();
}
// --&gt;
&lt;/script&gt;</P>

该用户从未签到

 楼主| 发表于 2004-11-26 17:42 | 显示全部楼层
<>喜欢做图片的朋友一定喜欢!!在图片外面加上有光泽的边框一定好看的多!</P><>&lt;!--将以下代码加入HTML的&lt;Body&gt;&lt;/Body&gt;之间--&gt;</P><>&lt;script language="javascript"&gt;
  var line=new Array();
  var w=35;     
  var left=280;
  var top=10;  
  var width=4;  
  var height=3;
  Bg="red";
  line[0]="ff"+Number(25).toString(16)+Number(25).toString(16);
  line[1]="ff"+Number(50).toString(16)+Number(50).toString(16);
  line[2]="ff"+Number(75).toString(16)+Number(75).toString(16);
  line[3]="ff"+Number(100).toString(16)+Number(100).toString(16);
  line[4]="ff"+Number(125).toString(16)+Number(125).toString(16);
  line[5]="ff"+Number(150).toString(16)+Number(150).toString(16);
  line[6]="ff"+Number(175).toString(16)+Number(175).toString(16);
  line[7]="ff"+Number(200).toString(16)+Number(200).toString(16);
  line[8]="ff"+Number(225).toString(16)+Number(225).toString(16);
  line[9]="ff"+Number(225).toString(16)+Number(225).toString(16);
  line[10]="ff"+Number(225).toString(16)+Number(225).toString(16);
  line[11]="ff"+Number(225).toString(16)+Number(225).toString(16);
  line[12]="ff"+Number(200).toString(16)+Number(200).toString(16);
  line[13]="ff"+Number(175).toString(16)+Number(175).toString(16);
  line[14]="ff"+Number(150).toString(16)+Number(150).toString(16);
  line[15]="ff"+Number(125).toString(16)+Number(125).toString(16);
  line[16]="ff"+Number(100).toString(16)+Number(100).toString(16);
  line[17]="ff"+Number(75).toString(16)+Number(75).toString(16);
  line[18]="ff"+Number(50).toString(16)+Number(50).toString(16);
  line[19]="ff"+Number(25).toString(16)+Number(25).toString(16);</P><>  function writes(num)
  {
    var temp;
    var s;
    var tl,tt;
    var tw,th;
    temp=num+1;
    if(num==0)
    {
      tl = left;
      tt = top;
      tw = w*width;
      th = height;
      s="&lt;table style='position: absolute; left: "+tl+"px; top: "+tt+"px; width: "+tw+"px; height: "+th+"px;' cellspacing='0' cellpadding='0'&gt;&lt;tr&gt;";
      for(r=0;r&lt;w;r++)
      {
        temp=r+w*num;
        s+="&lt;td id=tab"+temp+" bgcolor=red&gt;&lt;/td&gt;";
      }
      s+="&lt;/tr&gt;&lt;/table&gt;";
    }
    if(num==1)
    {
      tl = left+w*width;
      tt = top;
      tw = height;
      th = w*width;
      s="&lt;table style='position: absolute; left: "+tl+"px; top: "+tt+"px; width: "+tw+"px; height: "+th+"px;' cellspacing='0' cellpadding='0'&gt;";
      for(r=0;r&lt;w;r++)
      {
        temp=r+w*num;
        s+="&lt;tr&gt;&lt;td id=tab"+temp+" bgcolor=red&gt;&lt;/td&gt;&lt;/tr&gt;";
      }
      s+="&lt;/table&gt;";
    }
    if(num==2)
    {
      tl = left+height;
      tt = top+w*width;
      tw = w*width;
      th = height;
      s="&lt;table style='position: absolute; left: "+tl+"px; top: "+tt+"px; width: "+tw+"px; height: "+th+"px;' cellspacing='0' cellpadding='0'&gt;&lt;tr&gt;";
      for(r=w;r&gt;0;r--)
      {
        temp=r-1+w*num;
        s+="&lt;td id=tab"+temp+" bgcolor="+Bg+"&gt;&lt;/td&gt;";
      }
      s+="&lt;/tr&gt;&lt;/table&gt;";
    }
    if(num==3)
    {
      tl = left;
      tt = top+height;
      tw = height;
      th = w*width;
      s="&lt;table style='position: absolute; left: "+tl+"px; top: "+tt+"px; width: "+tw+"px; height: "+th+"px;' cellspacing='0' cellpadding='0'&gt;";
      for(r=w;r&gt;0;r--)
      {
        temp=r-1+w*num;
        s+="&lt;tr&gt;&lt;td id=tab"+temp+" bgcolor="+Bg+"&gt;&lt;/td&gt;&lt;/tr&gt;";
      }
      s+="&lt;/table&gt;";
    }
    return s;
  }
  function count()
  {
    var i;
    var temp;
    var total;
    total = w*4;
    for(i=0; i&lt;line.length; i++)
    {
      temp=pos+i-line.length/2;
      temp=temp&lt;0?(total+temp):temp;
      temp=temp&gt;(total-1)?(temp-total):temp;
      document.all["tab"+temp].style.backgroundColor=line[line.length-i];
    }
    pos=(pos+1)&gt;total?0pos+1);
  }</P><>  for(i=0;i&lt;=3;i++)
  {
    document.write(writes(i));
  }
  var pos=0;
  setInterval("count()", 1);
&lt;/script&gt;</P>

该用户从未签到

 楼主| 发表于 2004-11-26 17:44 | 显示全部楼层
<>检测访问者的操作系统!</P><>&lt;SCRIPT&gt;
agent = navigator.userAgent;
if (agent.lastIndexOf("Win95"))
{
document.write(' Windows 95/98/ME');
}
else if (agent.lastIndexOf("Win16"))
{
document.write(' Windows 3.2');
}
else if (agent.lastIndexOf("Mac"))
{
document.write(' Macintosh');
}
else if (agent.lastIndexOf("Unix"))
{
document.write(' Unix');
}
else if (agent.lastIndexOf("Linux"))
{
document.write(' Linux');
}
&lt;/script&gt;</P>
您需要登录后才可以回帖 登录 | 注册

本版积分规则

天台领先的地方门户服务平台
  • 客服电话:13968580055
  • 客服QQ:808508
门户服务
    

浙公网安备 33102302000043号


浙ICP备11032801号-2
 
天台之窗订阅号
天台之窗服务号
Copyright  ©1998-2024  天台之窗  Powered by  Discuz! X3.5    ( 浙ICP备11032801号 )
快速回复 返回顶部 返回列表