ARAM NAME="Command" VALUE="Close"></OBJECT><BR><input type=button value=最小化 onclick=hh1.Click()><BR><input type=button value=最大化 onclick=hh2.Click()><BR><input type=button value=关闭 onclick=hh3.Click()><BR>本例适用于IE<BR><BR>9.屏蔽功能键Shift,Alt,Ctrl<BR><script><BR>function look(){ <BR>if(event.shiftKey) <BR>alert("禁止按Shift键!"); //可以换成ALT CTRL<BR>} <BR>document.onkeydown=look; <BR></script><BR><BR>10.怎样让表单没有凹凸感?<BR><input type=text style="border:1 solid #000000"> <BR>或<BR><input type=text style="border-left:none; border-right:none; border-top:none; border-bottom: 1 solid #000000"></textarea><BR><BR>11.<div><span>&<layer>的区别? <BR><div>(division)用来定义大段的页面元素,会产生转行 <BR><span>用来定义同一行内的元素,跟<div>的唯一区别是不产生转行 <BR><layer>是ns的标记,ie不支持,相当于<div><BR><BR>12.让弹出窗口总是在最上面:<BR><body onblur="this.focus();"><BR><BR>13.不要滚动条? <BR>让竖条没有: <BR><body style="overflow:scroll;overflow-y:hidden"> <BR></body> <BR>让横条没有: <BR><body style="overflow:scroll;overflow-x:hidden"> <BR></body> <BR>两个都去掉?更简单了 <BR><body scroll="no"> <BR></body> <BR><BR>14怎样去掉图片链接点击后,图片周围的虚线?<BR><a href="#" onFocus="this.blur()"><img src="/logo.jpg" border=0></a><BR><BR>15.电子邮件处理提交表单<BR><form name="form1" method="post" action="mailt****@***.com" enctype="text/plain"> <BR><input type=submit><BR></form><BR><BR>16.在页面中如何加入不是满铺的背景图片,拉动页面时背景图不动 <BR><STYLE> <BR>body <BR>{background-image:url(/logo.gif); background-repeat:no-repeat; <BR>background-position:center;background-attachment: fixed} <BR></STYLE> <BR><BR><BR>17.TEXTAREA自适应文字行数的多少<BR><textarea rows=1 name=s1 cols=27 onpropertychange="this.style.posHeight=this.scrollHeight"><BR></textarea><BR><BR>18.脚本永不出错<BR><script LANGUAGE="java script"> <BR><!-- Hide <BR>function killErrors() { <BR>return true; <BR>} <BR>window.onerror = killErrors; <BR>// --> <BR></SCRIPT><BR><BR>19.ENTER键可以让光标移到下一个输入框<BR><input onkeydown="if(event.keyCode==13)event.keyCode=9"><BR><BR>20. 各种样式的光标<BR>auto :标准光标<BR>default :标准箭头<BR>hand :手形光标<BR>wait :等待光标<BR>text :I形光标<BR>vertical-text :水平I形光标<BR>no-drop :不可拖动光标<BR>not-allowed :无效光标<BR>help :?帮助光标<BR>all-scroll :三角方向标<BR>move :移动标<BR>crosshair :十字标<BR>e-resize<BR>n-resize<BR>nw-resize<BR>w-resize<BR>s-resize<BR>se-resize<BR>sw-resize<BR><BR>21.页面进入和退出的特效<BR>进入页面<meta http-equiv="
age-Enter" content="revealTrans(duration=x, transition=y)"><BR>推出页面<meta http-equiv="
age-Exit" content="revealTrans(duration=x, transition=y)"> <BR>这个是页面被载入和调出时的一些特效。duration表示特效的持续时间,以秒为单位。transition表示使用哪种特效,取值为1-23:<BR> 0 矩形缩小 <BR> 1 矩形扩大 <BR> 2 圆形缩小<BR> 3 圆形扩大 <BR> 4 下到上刷新 <BR> 5 上到下刷新<BR> 6 左到右刷新 <BR> 7 右到左刷新 <BR> 8 竖百叶窗<BR> 9 横百叶窗 <BR> 10 错位横百叶窗 <BR> 11 错位竖百叶窗<BR> 12 点扩散 <BR> 13 左右到中间刷新 <BR> 14 中间到左右刷新<BR> 15 中间到上下<BR> 16 上下到中间 <BR> 17 右下到左上<BR> 18 右上到左下 <BR> 19 左上到右下 <BR> 20 左下到右上<BR> 21 横条 <BR> 22 竖条 <BR> 23 以上22种随机选择一种<BR><BR><BR>转载自: <a href="http://www.blogworld.com.cn/club/index.php?showtopic=535&st=0&p=2903&#entry2903entry2903" target="_blank" >http://www.blogworld.com.cn/club/index.php?showtopic=535&st=0&p=2903&#entry2903entry2903</A><BR>
>好东东!!!!</P>| 欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) | Powered by Discuz! X2.5 |