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

JavaScriptʵÏÖ panelµÄÏÔʾÒþ²Ø

<script language="javascript">
    function closeOpen(Panel) {
        var test = document.getElementById('Panel');
        if (test.style.display == "none") {
            test.style.display = "";
        }
        else {
            test.style.display = "none";
        }
    }
</script>
  <input id="Button1" type="button" value="ÏÔʾÒþ²Øpanel" onclick="closeOpen('Panel1')"  style="background-image: url('images/title_bg_hide.gif');" />


Ïà¹ØÎĵµ£º

ÈçºÎÓÃJavaScript´òÓ¡WebÒ³Ãæ

ÊÂʵÉÏIEÒѾ­ÎªÎÒÃÇÄÚǶÁËWebBrowser¿Ø¼þ£¬ÒѾ­Äܹ»ºÜºÃµÄÖ§³ÖÎÒÃdz£ÓõĴòÓ¡¹¦ÄÜÁË¡£Í¨¹ý¸Ã¿Ø¼þµÄ¹¦Äܵ÷Óã¬Óû§¿ÉÒÔ½«µ±Ç°µÄHtmlÒ³ÃæÊä³öµ½´òÓ¡»úÉÏ£¬Óû§Ö»ÐèÒª½«Òª´òÓ¡µÄÊý¾Ý×éÖ¯³ÉHtmlÒ³Ãæ£¬È»ºóµ÷ÓÃWebBrowserµÄ´òÓ¡¹¦ÄܾͿÉÒԺܺõÄʵÏÖËù¼û¼´ËùµÃµÄ´òÓ¡¹¦ÄÜ¡£²»¹ýÕâÖÖ´òÓ¡´æÔÚµÄȱµã¾ÍÊÇ´òÓ¡¾«¶È²»¹»£¬Èç¹ûÐèÒª¾«È· ......

JavaScriptÊäÈë¿ò

<input type="text" onblur="if (value ==''){value='ÇëÊäÈë¹Ø¼ü×Ö'}" onfocus="if (value =='ÇëÊäÈë¹Ø¼ü×Ö'){value =''}" id="q" name="q" value="ÇëÊäÈë¹Ø¼ü×Ö" style="width: 100px; height: 14px;">
......

ÓÃ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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ÎÞ±êÌâÎ ......

JavaScript Cookie µÄÕýÈ·Ó÷¨

function getCookies(name)
{
var arr = document.cookie.match(new RegExp(&quot;(^| )&quot;+name+&quot;=([^;]*)(;|$)&quot;));
if(arr != null) return unescape(arr[2]); return &#039;&#039;;
}
function setCookie(name, value, expires,
function getCookies(name)
{
var a ......

javascript cookies ´æ¡¢È¡¡¢É¾³ýʵÀý

<script>
//дcookiesº¯Êý ×÷ÕߣºµÔÕñ¿­
function SetCookie(name,value)//Á½¸ö²ÎÊý£¬Ò»¸öÊÇcookieµÄÃû×Ó£¬Ò»¸öÊÇÖµ
{
    var Days = 30; //´Ë cookie ½«±»±£´æ 30 Ìì
    var exp  = new Date();    //new Date("December 31, 9998");
    ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ