ホームページはJavascriptを常用しています.

39807 ワード

    Javascript   come from http://topic.csdn.net/u/20081011/08/938232af-e6a0-4b36-8926-ef248bc4438d.html?seed=489346932

1

  <MARQUEE> <
/MARQUEE>

2

  <script language
=Javascript>
  document.write(
" : " + document.lastModified + "")
  <
/script>

3

  <a href
="/"onClick="javascript:window.close();return false;"> </a>

4.5

  <script language
="Javascript"
  <
!--
  setTimeout(
'window.close();',5000);
  
--
  <
/script>

5.2

  <head>
  <meta http
-equiv="refresh" content="2;URL=http:// "
  <
/head>

6

  <script Language
="Javascript"
  
function bookmarkit()
  {
  window.external.addFavorite(
'http:// ',' ')
  }
  
if (document.all)document.write('<a href="#" onClick="bookmarkit()"> </a>')
  <
/script>

7

  <style type
="text/css"
  <
!-
  a:link{text
-decoration:none}
  a:hover{text
-decoration:none}
  a:visited{text
-decoration:none}
  
-
  <
/style>

8

  <script Language
= "Javascript"
  
function click() { if (event.button==2||event.button==3)
  {
  alert(
' ');
  }
  document.onmousedown
=click // -->
  </script>

9

  <body bgcolor
="#FFFFFF" text="#000000"
  <
!-- :http:// -->
  <a class="chlnk" style="cursor:hand" HREF
  onClick
="this.style.behavior='url(#default#homepage)';
  this.setHomePage(' );
"><font color="000000" size="2" face=" "> </font></a>
  <
/body>

10

  <script Language
="Javascript"
  
var timedate= new Date("December 25,2003");
  
var times=" ";
  
var now = new Date();
  
var date = timedate.getTime() - now.getTime();
  
var time = Math.floor(date / (1000 * 60 * 60 * 24));
  
if (time >= 0)
  document.write(
" "+times+" : "+time +" ")</script>

11

  <script Language
="Javascript"
  <
!-- Begin
  
if (window.print) {
  document.write(
'<form>'
  
+ '<input type=button name=print value=" " '
  
+ 'onClick="javascript:window.print()"></form>');
  }
  
// End -->
  </script>

12. ‘ ’

  <input type
="button" name="Button" value=" "
  onClick
="document.all.button.ExecWB(4,1)"
  <object id
="button"
  width
=0
  height
=0
  classid
="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"
  <embed width
="0" height="0"></embed>
  </object>

13

  <script language
=Javascript>
  today
=new Date();
  
function date(){
  
this.length=date.arguments.length
  
for(var i=0;i<this.length;i++)
  
this[i+1]=date.arguments }
  
var d=new date(" "," "," "," "," "," "," ");
  document.write(
  
"<font color=##000000 style='font-size:9pt;font-family: '> ",
  today.getYear(),
" ",today.getMonth()+1," ",today.getDate()," ",
  d[today.getDay()
+1],"</font>" );
  <
/script>

14

  <script Language
="Javascript"
  <
!--
  
var text=""; day = new Date( ); time = day.getHours( );
  
if (( time>=0) && (time < 7 ))
    text
=" , ! "
  
if (( time >= 7 ) && (time < 12))
    text
=" …… , ?"
  
if (( time >= 12) && (time < 14))
    text
=" , ?!"
  
if (( time >=14) && (time < 18))
    text
=" , ! "
  
if ((time >= 18) && (time <= 22))
    text
=" , MM !"
  
if ((time >= 22) && (time < 24))
    text
=" , !"
  document.write(text)
  
//--->
  </script>

15

  <img id
="reflect" src=" " width="175" height="59"
  <script language
="Javascript"
  
function f1()
  {
    setInterval(
"mdiv.filters.wave.phase+=10",100);
  }
  
if (document.all)
  {
    document.write(
'<img id=mdiv src="'+document.all.reflect.src+'"
    style="filter:wave(strength=3,freq=3,phase=0,lightstrength=30) blur() flipv()">
')
    window.onload
=f1
  }
  <
/script>

16

  <script Language
="Javascript"
  <
!--
  
var Windowsheight=100
  
var Windowswidth=100
  
var numx=5
  
function openwindow(thelocation){
  temploc
=thelocation
  
if
  (
!(window.resizeTo&&document.all)&&!(window.resizeTo&&document.getElementById))
  {
    window.open(thelocation)
    
return
  }
  windowsize
=window.open("","","scrollbars")
  windowsize.moveTo(
0,0)
  windowsize.resizeTo(
100,100)
  tenumxt()
  }
  
function tenumxt(){
  
if (Windowsheight>=screen.availHeight-3)
    numx
=0
  windowsize.resizeBy(
5,numx)
  Windowsheight
+=5
  Windowswidth
+=5
  
if (Windowswidth>=screen.width-5)
  {
    windowsize.location
=temploc
    Windowsheight
=100
    Windowswidth
=100
    numx
=5
    
return
  }
  setTimeout(
"tenumxt()",50)
  }
  
//-->
  </script>
  <p><a href="javascript:openwindow(http://www.3ydesign.com)"> </a>

17. IE IE

   16
*16 icon( ), index.ico。 <head></head> :

  <link REL
= "Shortcut Icon" href="index.ico"