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');" />
Ïà¹ØÎĵµ£º
ÊÂʵÉÏIEÒѾΪÎÒÃÇÄÚǶÁËWebBrowser¿Ø¼þ£¬ÒѾÄܹ»ºÜºÃµÄÖ§³ÖÎÒÃdz£ÓõĴòÓ¡¹¦ÄÜÁË¡£Í¨¹ý¸Ã¿Ø¼þµÄ¹¦Äܵ÷Óã¬Óû§¿ÉÒÔ½«µ±Ç°µÄHtmlÒ³ÃæÊä³öµ½´òÓ¡»úÉÏ£¬Óû§Ö»ÐèÒª½«Òª´òÓ¡µÄÊý¾Ý×éÖ¯³ÉHtmlÒ³Ãæ£¬È»ºóµ÷ÓÃWebBrowserµÄ´òÓ¡¹¦ÄܾͿÉÒԺܺõÄʵÏÖËù¼û¼´ËùµÃµÄ´òÓ¡¹¦ÄÜ¡£²»¹ýÕâÖÖ´òÓ¡´æÔÚµÄȱµã¾ÍÊÇ´òÓ¡¾«¶È²»¹»£¬Èç¹ûÐèÒª¾«È· ......
<input type="text" onblur="if (value ==''){value='ÇëÊäÈë¹Ø¼ü×Ö'}" onfocus="if (value =='ÇëÊäÈë¹Ø¼ü×Ö'){value =''}" id="q" name="q" value="ÇëÊäÈë¹Ø¼ü×Ö" style="width: 100px; height: 14px;">
......
µÚÒ»ÖÖ:
<!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>ÎÞ±êÌâÎ ......
function getCookies(name)
{
var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
if(arr != null) return unescape(arr[2]); return '';
}
function setCookie(name, value, expires,
function getCookies(name)
{
var a ......
<script>
//дcookiesº¯Êý ×÷ÕߣºµÔÕñ¿
function SetCookie(name,value)//Á½¸ö²ÎÊý£¬Ò»¸öÊÇcookieµÄÃû×Ó£¬Ò»¸öÊÇÖµ
{
var Days = 30; //´Ë cookie ½«±»±£´æ 30 Ìì
var exp = new Date(); //new Date("December 31, 9998");
......