Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JavaScriptÌØÐ§£º¼ä¸ô¹ö¶¯Í¼Æ¬

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>¼ä¸ô¹ö¶¯Í¼Æ¬</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="Generator" content="Dreamweaver8" />
<meta name="Author" content="·ãÒ¶Ëæ·ç QQ:455948725 E-mail:liukun615@126.com" />
<link rel="shortcut icon" href="http://www.fengyekun.com/favicon.ico" />
<style type="text/css">
<!--
body {font-family:"ËÎÌå", Arial, Helvetica, sans-serif; margin:0px; font-size:12px;}
h1 {margin:0px; height:95px; line-height:95px; color:#ff0000; text-align:center; font-size:20px; font-weight:bold;}
#main {width:100%;}
#content {position:relative; top:50%; margin:-150px auto; width:500px; height:300px; border:1px solid #999; background:#eee;}
#mydiv {margin:0px auto; width:120px; height:90px; border:10px solid #fff; white-space:nowrap; overflow:hidden;}
#mydiv img {width:120px; height:90px;}
#demo1,#demo2 {display:inline;}
-->
</style>
<script language="javascript">
var Tid;
function MarqueeImage(){
    var demo1 = document.getElementById("demo1");
    var demo2 = document.getElementById("demo2");
    var mydiv = document.getElementById("mydiv");
    var AreaWidth=120;  //ÕâÀïµÄÖµÒª¸úÄÚÈÝÏÔÊ¾ÇøÓò¿í¶ÈÒ»Ñù£¬ÕâÀïÊǸúÏÔʾµÄͼƬ¿í¶ÈÒ»Ñù¡£
    var Speed=10  //ÄÚÈÝÇøÓò¹ö¶¯µÄËÙ¶È
 


Ïà¹ØÎĵµ£º

javaScript document¶ÔÏóÏê½â

Document¶ÔÏóÄÚÈݼ¯ºÏ

document Îĵ²¶ÔÏó - JavaScript½Å±¾ÓïÑÔÃèÊö
———————————————————————
×¢:Ò³ÃæÉÏÔªËØnameÊôÐÔºÍJavaScriptÒýÓõÄÃû³Æ±ØÐëÒ»Ö°üÀ¨´óСд
·ñÔò» ......

javascript ä¯ÀÀÆ÷Ò³ÃæÌø×ª

    if (elename.equalsIgnoreCase("back") || elename.equalsIgnoreCase("1"))
            return "<a href=\"javascript:window.history.back()\">ºóÍË</a>";
      &nbs ......

JavaScriptÑéÖ¤´óÈ«

jsÑéÖ¤±íµ¥´óÈ«
1. ³¤¶ÈÏÞÖÆ
<script>
function test()
{
if(document.a.b.value.length>50)
{
alert("²»Äܳ¬¹ý50¸ö×Ö·û£¡");
document.a.b.focus();
return false;
}
}
</script>
<form name=a onsubmit="return test()">
<textarea name="b" cols="40" wrap="VIRTUAL" rows="6"&g ......

javascript common

1.document.write( " "); Êä³öÓï¾ä
2.JSÖеÄ×¢ÊÍΪ//
3.´«Í³µÄHTMLÎĵµË³ÐòÊÇ:document- >html- >(head,body)
4.Ò»¸öä¯ÀÀÆ÷´°¿ÚÖеÄDOM˳ÐòÊÇ:window- >(navigator,screen,history,location,document)
5.µÃµ½±íµ¥ÖÐÔªËØµÄÃû³ÆºÍÖµ:document.getElementById( "±íµ¥ÖÐÔªËØµÄID號 ").name(»òvalue)
6 ......

JavaScriptÌØÐ§£ºÊ±¼äµ¹Êý

var Tid;
var SetTime=4*60*60*1000;  //ÉèÖúÁÃëÊý£¬1000ºÁÃëΪ1Ãë
function LTime(){
    var MyDiv=document.getElementById("mydiv");
    var Time,TempTime,Days,Hours,Minutes,Seconds;
    
  &n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ