您正在查看 "Html" 分类下的文章 2009-09-21 8:57 2008-12-31 11:00 <script>
function exec (command) {
window.oldOnError = window.onerror;
window._command = command;
window.onerror = function (err) {
if (err.indexOf('utomation') != -1) {
alert('命令' + window._command + ' 已经被用户禁止!');
return true;
} |
2008-12-29 12:48 <script type="text/javascript">
function SetCwinHeight(){
var bobo=document.getElementById("bobo"); //iframe id
if (document.getElementById){
if (bobo && !window.opera){
if (bobo.contentDocument && bobo.contentDocument.body.offsetHeight){
bobo.height = bobo.contentDocument.body.offsetHeight;
}else if |
2008-09-27 17:23 一、按钮样式
.buttoncss {
font-family: "tahoma", "宋体"; /*www.52css.com*/
font-size:9pt; color: #003399;
border: 1px #003399 solid;
color:#006699;
border-bottom: #93bee2 1px solid;
border-left: #93bee2 1px solid;
border-right: #93bee2 1px solid;
border-top: #93bee2 1px solid; |
2008-05-14 15:22 <!--
//**************************************************************
// 初始化生成最大和最小金额域
// Creation date: (2003-05-12)
// @author: ecc-wangdong
// @version: 1.0
// @param:hidMin_money, hidMax_money, txtMin_money, txtMax_money, form
// @param说明:
//输入参数:隐藏域名称(最小金额),隐藏域名称(最大金额),表现域名称(最小金额),表现域名称(最大金额),FORM名
// @conditio |
2008-03-12 10:15 window = object.open([URL ][, name ][, features ][, replace]]]])
URL:新窗口的URL地址
name:新窗口的名称,可以为空
featurse:属性控制字符串,在此控制窗口的各种属性,属性之间以逗号隔开。
fullscreen= { yes/no/1/0 } 是否全屏,默认no
channelmode= { yes/no/1/0 } 是否显示频道栏,默认no
toolbar= { yes/no/1/0 } 是否显示工具条,默认no
location= { yes/no/1/0 } 是否显示地址栏,默认no
directories = { yes/no/1/0 } 是否显示转向按钮,默认no
status= { yes/no/1/0 } 是否显示 |
2008-03-08 15:21 <input onchange="document.getElementById('testWidth').style.width = this.value;" style="width:40px"> |
2008-02-29 9:49 Date.prototype.add = function(n, key) {
var tmp_date = this;
switch(key) {
case "YEAR" :
var year = tmp_date.getFullYear() + n;
tmp_date.setYear(year);
break;
|
2007-11-26 10:58 String.prototype.Trim = function()
{
return this.replace(/(^\s*)|(\s*$)/g, "");
}
String.prototype.LTrim = function()
{
return this.replace(/(^\s*)/g, "");
}
String.prototype.Rtrim = function()
{
return this.replace(/(\s*$)/g, "");
}
|
2007-11-23 10:36 <body>
<script type="text/javascript">
//not IE is required
function fncKeyStop(evt)
{
if(!window. |
| | |