无标题文档 #focus_m{position:relative; width:420px; height:384px; background:#133775} .f_img_roll{width:350px; height:300px; position:relative;} .f_img_roll img{position:absolute; left:0; top:0; width:350px; height:300px;} .f_img_tree{position:absolute; width:75px; height:300px; right:3px; top:0;} .f_img_tree div{position:absolute; z-index:300; top:3px; right:0; width:75px; height:47px; backgroun...
by chencs - BSD文档中心 - 2008-11-17 09:54:42 阅读(1135) 回复(0)
method: adRotator.initialize(容器名id); method: adRotator.add(图片地址[,文字项][,链接地址]) method: adRotator.play(); 运行代码框 New Document set time ' _html += '' _html += ''; _html += ''; _html += (_t[_c]?('' + (_c+1) + '. ' + _t[_c] + ''):''); _html += ''; _html += ""; _html += ''; for(var i=0; i' + (i>8?(i+1):('0'+(i+1)))+ ' '; _html += ""; getRef(_o).innerHTML = _html; ...
/****打开页面时以窗口方式打开 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...
http://www.xker.com/edu/dev/6/index_5.html 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/75961/showart_1275316.html
js的正则表达式 //校验是否全由数字组成 代码 1. function isDigit(s) 2. { 3. var patrn=/^[0-9]{1,20}$/; 4. if (!patrn.exec(s)) return false 5. return true 6. } //校验登录名:只能输入5-20个以字母开头、可带数字、“_”、“.”的字串 代码 1. function isRegisterUserName(s) 2. { 3. var patrn=/^[a-zA-Z]{1}([a-zA-Z0-9]|[._]){4,19}$/; 4. if (!patrn.exec(s)) r...
最近很容易可以看到這個效果,也就是當您點選網頁中的圖片或連結時,背景會立即變暗並且出現 Loading… 然後跳出一個美美的方框顯示圖片或網頁,這種效果就叫做 Lightbox,底下收集了一些許多人開發或修改的 Lightbox,通常都會有 Demo,看個人喜好選擇囉。 http://www.huddletogether.com/projects/lightbox2/ ‧ Lightbox js 典型也是最常見的一個,目前也出了 2.0 版,不過似乎只能顯示圖片而已。 &...