ÇàÑòÇøê»´¨Ä¾¼Ò¾ß¾­Óª²¿×¨ÒµÉú²ú³É¶¼Â¥ÌÝ,³É¶¼Ô­Ä¾Ò¹ñ,³É¶¼Ô­Ä¾ÃÅ£¡
ÇàÑòÇøê»´¨Ä¾¼Ò¾ß¾­Óª²¿

ÈÈËѹؼü´Ê£º³É¶¼Â¥ÌÝ¡¢³É¶¼Ô­Ä¾Ò¹ñ¡¢³É¶¼Ô­Ä¾ÃÅ

Õ¾ÄÚ Õ¾Íâ
ÁªÏµÎÒÃÇ

    ÁªÏµÈË£ºÀîijij

    ÊÖ»ú£º16666666666

    µç»°£º028-66666666

    ´«Õ棺028-66666666

    ÓÊÏ䣺1111111112@qq.com

    ÍøÖ·: www.cdhclt.com

    µØÖ·£º³£ÖÝÊÐб±ÇøÈí¼þÔ°

ÄúÏÖÔÚµÄλÖÃ:Ê×Ò³ > ¼¼ÊõÌìµØ > ÏêϸÄÚÈÝÐÂÎÅÏêÇé

ÍøÒ³³£ÓÃJavascript

À´Ô´ : www.cdhclt.com   ·¢²¼Ê±¼ä : 2013-09-22
ÍøÒ³³£ÓÃJavascript 

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
="ÎçÐÝʱ¼äŶ£¬ÅóÓÑÒ»¶¨ÊDz»Ï°¹ßÎç˯µÄ°É£¿£¡" 
¡¡¡¡
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"£¾  

Ïà¹Ø±êÇ©£º