您正在查看 "脚本(js)" 分类下的文章
2009-06-09 16:15
<script language=javascript>
function Print() {
bdhtml=window.document.body.innerHTML;
sprnstr= "<!--startprint-->";
eprnstr= "<!--endprint-->";
prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr));
prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));
window.document.body.innerHTML=prnhtml;
window.print();
}
</script>
按时打算的111</br>
<!--startprint-- |
2009-04-08 12:03
//JS用法
<script language="javascript">
window.onload = function(){
var oTable = document.getElementById("oTable");
for(var i=0;i<oTable.rows.length;i++){
if(i%2==0) //偶数行时
//将altrow 样式赋予给行
oTable.rows[i].className = " |
2008-12-01 10:32
如果页面上的文字过多或者过长。实例如下:

找到本文字的table 再table 前面加上
<DIV
style="OVERFLOW-Y: auto; OVERFLOW-X: auto; MARGIN: 10px auto; WIDTH: 350px; HEIGHT: 100px">
再table结束加上</DIV>,即可!!!
|
2007-11-09 10:05
想必很多人都对正则表达式都头疼.今天,我以我的认识,加上网上一些文章,希望用常人都可以理解的表达方式.来和大家分享学习经验.
开篇,还是得说说 ^ 和 $ 他们是分别用来匹配字符串的开始和结束,以下分别举例说明
"^The": 开头一定要有"The"字符串;
"of despair$": 结尾一定要有"of despair" 的字符串;
那么,
"^abc$": 就是要求以abc开头和以abc结尾的字符串,实际上是只有abc匹配
"notice": 匹配包含notice的字符串 |
2007-07-17 15:05
<html>
<head>
<title>-www.azhong.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
<!--
body { font-size: 14px }
-->
</style>
</head>
<body bgcolor=#FFFFFF alink=#333333 vlink=#333333 link=#333333 topmargin=0 leftmargin=0>
<form action=" |
|
|