摘要:<script>var userAgent = navigator.userAgent.toLowerCase();var is_opera = userAgent.indexOf('opera') != -1 && opera.version();var is_saf = userAgent.indexOf('applewebkit') != -1 || navigator.vendor == 'Apple Computer, Inc.';var is_webtv = userAgent.indexOf('w
阅读全文
摘要:<textarea name="t11" id="t11" rows="12" cols="95"><!--里面写要运行的代码开始--><!--里面写要运行的代码结束--></textarea><br><input type="button" value="运行代码" style="border-left:1px solid #B1B4CD;border-right:1px solid #494D74
阅读全文
摘要:<!doctype html> <html> <head> <title>自动调整大小的textarea </title> <meta charset = "utf-8" /> <style type = "text/css"> .editable{cursor:text; font-size:13px; color:#003366;width:80px;line-height:20px;height:20px;font-family:Arial;cursor:text;
阅读全文
摘要:<!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-
阅读全文
摘要:var xmlhttp; function createxmlhttprequest() { if(window.ActiveXObject) { xmlhttp=new ActiveXObject((navigator.userAgent.toLowerCase().indexOf('msie 5') != -1) ? 'Microsoft.XMLHTTP' : 'Msxml2.XMLHTTP'); } } function sendstring(frmID,URL) { //debugger; createxmlhttprequest();
阅读全文
摘要:<script language="JavaScript" type="text/JavaScript"><!--//获取参数function getUrlParam(name){nk="";var reg=new RegExp("(^|&)"+name+"=([^&]*)(&|$)");var r=window.location.search.substr(1).match(reg);if (r!=null) return unescape(r[2])
阅读全文
摘要:<!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>send string</title> <script language=javascript> var xm
阅读全文
摘要:如有URL为:a.aspx?action=add&pid=12一、获取“action=add&pid=12”的js为: var strGetQuery = document.location.search;二、获取 action的参数值add的方法: var querystring = GetQueryvalue(strGetQuery,'action'); 而函数GetQueryvalue(sorStr,panStr)方法如下: function GetQueryvalue(sorStr,panStr) { var vStr=""; if
阅读全文
摘要:js获取URL中的参数的值的方法:比如URL为:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Report_projectTypical_XML.aspx?nYear=2010&nMonth=4&isproperty=1&FeeType=2js中获取取方法为:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.Cod
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->function checkinfo() { var uploadphoto=document.getElementById("uploadPhoto"); var str = uploadphoto.value; var tt = false; if(uploadphoto.value=="") { alert('请添加上传的图片!'
阅读全文