突然发现CU的口号很有煽动力:“留住你的每一天”!呵呵,真能留住可好了 本来睡的正香,被一阵敲门声惊醒——查煤气表的,穿戴整齐让人进屋一看才想起来——煤气还根本没用过,连煤气灶都没有(冷汗)…… 既然醒了就干活吧,偶然在网上找到这个,记下来,备用: 动态将js代码写到head标签中 方案一: HtmlGenericControl Include2 = new HtmlGenericControl("script"); Include2.Attributes.Add("type", "...
by daizhe - Java文档中心 - 2008-10-31 08:05:05 阅读(1361) 回复(0)
静态页计数可以通过js来实现: 在静态页里放一句:[code] ; [/code] 那么在show.php里有一句 [code] echo"document.write(".$hit.");"; [/code] 但不知道为什么只能让计数增加,而不能在静态页显示出来,请问是怎么回事呢? 而且静态页里浏览器下面状态栏有错误提示: [code]行: 2 字符: 2 错误: 语法错误 代码: 0 URL: http://127.0.0.1/news/htmls/...
比如:
123456789 |
123456789 |
[Thu Mar 16 23:46:18 2006] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: C:/Apache/Apache2/cgi-bin/bbs/jscripts/tiny_mce/tiny_mce.js, referer: http://127.0.0.1/cgi-bin/bbs/ccb/topic_new.cgi?forum=1 为什么我的html页和js一下载就出现上面这样的错误?
/****打开页面时以窗口方式打开 function urll(u) { window.open(u,"","toolbar=0,top=50,left=130,location=0,status=0,menubar=0,scrollbars=1,resizable=0,height=450,width=510") } //--> ****/ 查看详情 //计算页面执行时间 ?> 退出时效果 控制面板帮助会员日历查看新帖 退出 /*执行此即可看到*/ var sp_isRefash = false; function window_onbeforeunload() { if(!sp_isRefash) { var...
onsubmit 作用是来防止提交错误码的值. HTML> BODY> form action="index.aspx" method="post" onsubmit="return submitTest();"> INPUT id="MyEMail" value="123@456.com">br> input type="submit" value="submit"> form> SCRIPT LANGUAGE="JavaScript"> function submitTest() { var vv = document.getElementById('MyEMail').value; if (vv.length 6) { alert('please input something.'); ret...
String.prototype.trim = function() { return this.replace(/(^\s*)|(\s*$)/g,""); } String.prototype.len= function() { return this.replace(/[^\x00-\xff]/g,"**").length; } function f_check_zh(obj){ if (/^[\u4e00-\u9fa5]+$/.test(obj.value)) { return true; } return false; } function checkFormat(){ fobj=docume...