var newwin = null
//-------------------------------------------------寮瑰?虹???o??板??锛?瀹斤?楂?锛?
function newwindow(to,w,h)
{
if (!newwin || newwin.closed)
{
newwin=window.open(to,"indexww","width="+w+",height="+h+",scrollbars")
}
else
{
newwin.close()
newwin=window.open(to,"indexww","width="+w+",height="+h+",scrollbars")
}
newwin.focus()
}
//--------------------------------------------------妫?楠?瀛?绗? function ischar(s)
{
var errorChar;
var badChar = "><,[]{}?/+=|\\'\":;[email?protected]#$%^&()`";
if ( s == "" )
{
alert("璇锋?ㄨ??ュ??瀹癸?")
return false;
}
if ( isWhitespace(s) )
{
alert("杈??ョ??瀛?绗?腑涓??藉????绌烘?肩???璇烽???拌??ワ?");?
return false;
}
errorChar = isCharsInBagEx( s, badChar)
if (errorChar != "" )
{
alert("?ㄨ??ョ??瀛?绗? + s+"????????,\n\n璇蜂?瑕??ㄥ??绗?腑杈??? + errorChar + "!\n\n璇烽???拌??ュ??娉???瀛?绗??" );
return false;
}
return true;
}
//---------------------------------------------------妫?楠??ㄦ?峰??
function isUserName(s)
{
var errorChar;
var badChar = "><,[]{}?/+=|\\'\":;[email?protected]#$%^&()`";?
if (isEmpty(s))
{
alert("璇疯??ョ?ㄦ?峰??锛?");
return false;
}
if ( isWhitespace(s) )
{
alert("杈??ョ???ㄦ?峰??涓?涓??藉????绌烘?肩???璇烽???拌???quot;);?
return false;
}
errorChar = isCharsInBagEx( s, badChar)
if (errorChar != "" )
{
alert("?ㄨ??ョ???ㄦ?峰??" + s+"?????????ㄦ?峰??,\n\n璇蜂?瑕??ㄧ?ㄦ?峰??涓?杈??ュ??绗? + errorChar + "!\n\n璇烽???拌??ュ??娉????ㄦ?峰??锛?" );
return false;
}
if (s.length<1 || s.length>20){
alert("?ㄦ?峰??蹇?椤诲????0涓?瀛?绗????)
return false
}
return true;
}
//???ㄥ?芥??
//---------------------------------------------------瀛?绗???????涓?
function isCharsInBag (s, bag)
{?
var i;
// Search through string's characters one by one.
// If character is in bag, append to returnString.
for (i = 0; i < s.length; i++)
{?
// Check that current character isn't whitespace.
var c = s.charAt(i);
if (bag.indexOf(c) == -1) return false;
}
return true;
}
function isEmpty(s)
{?
return ((s == null)||(s.length == 0));?
}
//----------------------------------------------------绌烘?煎?ゆ??
function isWhitespace (s)
{?
var whitespace = " \t\n\r";
var i;
for (i = 0; i < s.length; i++)
{?
var c = s.charAt(i);
if (whitespace.indexOf(c) >= 0)?
{
return true;
}
}
return false;
}
//----------------------------------------------------?板勾?ゆ??
function isleapyear(thisyear)
{
return(((thisyear%4==0) && (thisyear%100!=0)) || (thisyear%400==0))
}
//----------------------------------------------------??浠ュ???瀛?绗? function isCharsInBagEx (s, bag)
{?
var i,c;
// Search through string's characters one by one.
// If character is in bag, append to returnString.
for (i = 0; i < s.length; i++)
{?
c = s.charAt(i);
if (bag.indexOf(c) > -1)?
return c;
}
return "";
}
//----------------------------------------------------???????╁????????
function radioselected(radioBth)
{
for(i=0;i<radioBth.length;i++)
{
if(radioBth[i].checked)
return true
}
return false
}
//----------------------------------------------------骞翠唤?ゆ??
function isYear(s)
{
var Today=new Date()
thisYear=Today.getYear()
var badChar = "><,[]{}?/+=|\\'\":;[email?protected]#$%^&`";?
var len = s.length;
if (isEmpty(s)){?
alert("蹇?椤昏??ュ勾浠?)
return false;
}
if ( isCharsInBag( s, badChar)){?
alert("骞翠唤杈??ラ??娉?")
return false;
}
if ((len!=4)){
alert("骞翠唤????浣?锛?");
return false;
}
if(!isCharsInBag (s, "0123456789")){
alert("璇锋??ヤ?涓??ㄨ??ョ??骞翠唤????负?板??锛?");
return false;
}
if (s<1800){
alert("骞翠唤瑕?澶т?1800");
return false;
}
// if ((thisYear-s)<0){
// alert("骞翠唤瑕?涓??藉ぇ浜?"+thisYear);
// return false;
// }
return true;
}
//---------------------------------------------------Email?ゆ??
function isEmail(s)
{
if (isEmpty(s))
{
alert("杈??ョ??E-mail?板??涓??戒负绌猴?璇疯??ワ?");?
return false;
}
//is s contain whitespace
if (isWhitespace(s))
{
alert("杈??ョ??E-mail?板??涓?涓??藉????绌烘?肩???璇烽???拌??ワ?");?
return false;
}
var i = 1;
var len = s.length;
if (len > 40)
{
alert("E-mail?板???垮害涓??借?杩?40浣?!");
return false;
}
pos1 = s.indexOf("@");
pos2 = s.indexOf(".");
pos3 = s.lastIndexOf("@");
pos4 = s.lastIndexOf(".");
if ((pos1 <= 0)||(pos1 == len)||(pos2 <= 0)||(pos2 == len)){
alert("璇疯??ユ??????E-mail?板??锛?");
return false;
}
else{?
if( (pos1 == pos2 - 1) || (pos1 == pos2 + 1)?
|| ( pos1 != pos3 ) //find two @
|| ( pos4 < pos3 ) ) //. should behind the?'@'?
{
alert("璇疯??ユ??????E-mail?板??锛?");
return false;
}
}
if ( !isCharsInBag( s, "AB[email?protected]"))
{
alert("email?板??涓????藉????瀛?绗?B[email?protected]\n" + "璇烽???拌??? );
return false;
}
return true;
}
//--------------------------------------------------?板???ゆ??
function isNum(s)
{
if (isEmpty(s)){?
alert("蹇?椤昏??ユ?板??")
return false;
}
if(!isCharsInBag (s, "0123456789")){
alert("璇锋??ヤ?涓??ㄨ??ョ??????负?板??锛?");
return false;
}
// if (s<1){
// alert("杈??ョ???板??瑕?澶т?0锛?");
// return false;
// }
// if (s>2000){
// alert("杈??ョ???板??瑕?灏?浜?2000锛?");
// return false;
// }
return true;
}
//--------------------------------------------------韬?浠借???ゆ??
function isCardNum(s){
if (isEmpty(s)){?
alert("蹇?椤昏??ユ?板??")
return false;
}
if(!isCharsInBag (s, "0123456789")){
alert("璇锋??ヤ?涓??ㄨ??ョ??????负?板???quot;);
return false;
}
if (s.length==15 || s.length==18){
return true;
}else{
alert("杈??ョ???板???垮害涓?5浣?????18浣?锛?");
return false;
}
}
//--------------------------------------------------???跨????ゆ??
function isZipCode(s){
if (!isEmpty(s)){
if(!isCharsInBag (s, "0123456789")){
alert("璇锋??ヤ?涓??ㄨ??ョ??????负?板??锛?");
return false;
}
if (s.length==6){
return true;
}else{
alert("杈??ョ?????跨????垮害涓?锛?");
return false;
}
} else {
return true;
}
}
//--------------------------------------------------?ユ???ゆ??
function chkdate(datestr)
{
if (isEmpty(datestr)){
alert("蹇?椤昏??ユ?ユ??")
return false;
}
var lthdatestr
lthdatestr= datestr.length ;
var tmpy="";
var tmpm="";
var tmpd="";
//var datestr;
var status;
status=0;
for (i=0;i<lthdatestr;i++){
if (datestr.charAt(i)== '-'){
status++;
}
if (status>2){
alert("璇风??-'浣?涓哄????绗??");
return false;
}
if ((status==0) && (datestr.charAt(i)!='-')){
tmpy=tmpy+datestr.charAt(i)
}
if ((status==1) && (datestr.charAt(i)!='-')){
tmpm=tmpm+datestr.charAt(i)
}
if ((status==2) && (datestr.charAt(i)!='-')){
tmpd=tmpd+datestr.charAt(i)
}
}
year=new String (tmpy);
month=new String (tmpm);
day=new String (tmpd)
//tempdate= new String (year+month+day);
//alert(tempdate);
if ((tmpy.length!=4) || (tmpm.length>2) || (tmpd.length>2))
{
alert("璇风??-'浣?涓哄????绗??");
// alert("??璇????ユ???煎?锛?");
return false;
}
if (!((1<=month) && (12>=month) && (31>=day) && (1<=day)) )
{
alert ("??璇?????浠芥??澶╂?帮?");
return false;
}
if (!((year % 4)==0) && (month==2) && (day==29))
{
alert ("杩?涓?骞翠????板勾锛?");
return false;
}
if ((month<=7) && ((month % 2)==0) && (day>=31))
{
alert ("杩?涓???????30澶╋?");
return false;
}
if ((month>=8) && ((month % 2)==1) && (day>=31))
{
alert ("杩?涓???????30澶╋?");
return false;
}
if ((month==2) && (day==30))
{
alert("2??姘歌?娌℃??杩?涓?澶╋?");
return false;
}
return true;
}
"?荤????ㄥ??缃?椤电?????宸?
1)璇烽??濡?浣?璁╀?涓???寮???绐??e?ㄩ??瀹??堕?村?????ㄥ?抽??锛??
--------------------------------------------
浣?IE????IE6.0浠ヤ???璇?杩?涓???浠?
<body 慰nl慰ad="setTimeout('window.close()',2000)">
涓ょ????抽??(1s=1000寰?绉?)
</body>
=======================================
2)婊??ㄦ?′??剧ず灏卞??lt;body>????style="overflow:hidden"
?绘??妗??剁嚎??lt;frame>涓???frame*,150" framespacing=10>
<frame noResize frameabout:blank">
<frame noResize frameabout:blank">
</frameset>
=======================================
3)璇烽????涔???瀹?????????澶??㈢??绾匡?琛ㄩ???㈡????绾块?戒?瑕?
<table width="75%" cellspacing="0" bordercolor="#FF0000" rules=none>
<tr>?
<td> </td>
<td> </td>
</tr>
<tr>?
<td> </td>
<td> </td>
</tr>
<tr>?
<td> </td>
<td> </td>
</tr>
<tr>?
<td> </td>
<td> </td>
</tr>
<tr>?
<td> </td>
<td> </td>
</tr>
</table>
<center>
<table cellpadding="0" cellspacing="0" width="80%" style="border: 1 solid #FF0000">
<tr>
<td width="50%" height="10"></td>
<td width="50%" height="10"></td>
</tr>
<tr>
<td width="50%" height="10"></td>
<td width="50%" height="10"></td>
</tr>
<tr>
<td width="50%" height="10"></td>
<td width="50%" height="10"></td>
</tr>
<tr>
<td width="50%" height="10"></td>
<td width="50%" height="10"></td>
</tr>
<tr>
<td width="50%" height="10"></td>
<td width="50%" height="10"></td>
</tr>
</table>
</center>
=======================================
4)缃?椤典??????ラ???????????锛??剧??????~~~
<style>
*{font-size:12px}
:visited,:active,:link{ text-decoration:none;color:navy}
:hover{ cursor:url(http://www.kok2.com.cn/kok2/1.ani?... tion:none;color:navy}
body{ cursor:url(http://www.kok2.com.cn/kok2/2.ani)}
</style>
<a href=#>Link</a>
=======================================
5)涓?寮??剧??锛???璧锋?ュ?妯$?锛???????榧???绉诲?ㄩ?e??剧????涓????灏卞??寰?娓??? <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>????棰???妗?lt;/title>
<script language="javascript">?
// Flash Image Extension for Dreamwever ,by Yichun Yuan([email?protected])
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();
function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
if (object != "[object]"){ //do this so I can take a string too
setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
return;
}
clearTimeout(nereidFadeTimers[object.sourceIndex]);
diff = destOp-object.filters.alpha.opacity;
direction = 1;
if (object.filters.alpha.opacity > destOp){
direction = -1;
}
delta=Math.min(direction*diff,delta);
object.filters.alpha.opacity+=direction*delta;
if (object.filters.alpha.opacity != destOp){
nereidFadeObjects[object.sourceIndex]=object;
nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects
["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
}
}
</script>
</head>
<body>
<a href="http://www.it365cn.com/"; target="_blank"><img ;
onMouseOut=nereidFade(this,50,10,5) onMouseOver=nereidFade(this,100,10,5) style="FILTER: alpha(opacity=50)"></a>
</body>
</html>
=======================================
6)??avscript??寮??剧???扮???g?ㄤ?涔?浠g??锛?
<img src="images/postnew.gif" 慰nclick="window.open('','','width=200,height=200')">
<a href="Java Script : void(window.open('','','width=200,height=200'))" target="_blank" rel="external nofollow" ><img src="images/postnew.gif"></a>
=======================================
7)?ㄤ?涓?琛ㄦ?兼?涓?濡?浣??у?舵?佃?借?璺?锛?
CSS涓?LINE-HEIGHT??灏卞??涔?琛?璺?????
style="line-height:4"
=======================================
8)?ㄥ??涓?椤甸?㈡??涔????ㄤ?????hover??link??visited?
a:active {font-size: 12px;color: #0066cc;text-decoration: none; }
a:visited {font-size: 12px;color: #0D0D15;text-decoration: none;}
a:hover {font-size: 12px;color: #0066cc;text-decoration: underline;}
a:link {font-size: 12px;color: #0D0D15;text-decoration: none;}
a.b:active { font-size: 12px; color: #ff0000; text-decoration: underline;}
a.b:visited { font-size: 12px; color: #ff0000;}
a.b:hover { font-size: 12px; color: #ff6600;POSITION: relative; LEFT: 1px; TOP: 1px;}
a.b:link { font-size: 12px; color: #ff0000; text-decoration: underline;}</style>
<body>
<p align="center"><a href="#" target="_blank" rel="external nofollow" target="_blank" rel="external nofollow" >榛?璁ょ???炬?ユ?峰? </a></p>
<p align="center"><a href="#" target="_blank" rel="external nofollow" target="_blank" rel="external nofollow" class="b">?炬?ユ?峰?琛?</a> </p>
</body>
(娉??濡???????瀹?涔?绫?.111 a:hover{*****},?????藉?ㄩ??<a>??璁伴??寮????姣?濡?<td class="111">??濡???瀹?涔?绫讳负 a.111:hover{*****},??????
??lt;a>??璁伴??寮????濡?<a class="111">
=======================================
9)??瀵瑰?剧??????table-layout:fixed;?
??瀵规?瀛????讹?浣?瀵硅?辨??涓??借???ㄦ?㈣?:word-break:break-all锛?
<table width="250" cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr>
<td height="200" style="word-break:break-all">杩???浣跨?ㄧ????word-break:break-all锛??????奸??搴???瀹?涔?涓?00px??it365cn.com??
it365cn.com??it365cn.com??it365cn.com??it365cn.com??it365cn.com??it365cn.com??it365cn.com??</td>
</tr>
</table>
=======================================
10)?充?FLASH搴??ㄥ?ㄧ?椤垫????????棰?!
?ㄧ?椤典?,??????FLASH,灏卞?棣?椤典???BANNER.....瀹????朵??规???.
??涓?寮???褰卞?剧??...
?跺??????涓?涓?婊??ㄧ??FLASH.........??W??缂?杈???灏?FLASH?????拌?炬?????????冲??:
??W?????ヨ〃??涓??剧??涓??峰ぇ灏?..
?跺??灏??剧????涓鸿???????ュ?ㄨ〃?奸??...涔???,????濂界??FLASH???ュ?板?剧??涓???..
wmode=transparent | <param name="wmode" value="Transparent">
=======================================
11)瓒??炬?ョ???峰???椤哄???棰?锛?
杩?涓??峰?瑕?娉ㄦ???炬?ョ????绫荤??椤哄? visited-->active-->hover?
link?惧?ㄥ???戒???
=======================================
12)浣?涓轰?涓?缃?椤佃?捐?″?锛?涓??ラ????浣???????杩??风??缁???锛?瀹㈡?风?浣???缃?绔?????寰?澶??芥??Word??妗o??界?堕??璇昏捣?ュ??逛究锛???瑕?娣诲???扮?椤典腑灏?
涓???寰??逛究浜???灏ゅ?舵???g?????琛ㄦ?肩??Word??妗o?濡???瑕?涓?椤逛?椤瑰?板?绘坊??锛?瀹??ㄦ??璐规?跺??璐瑰?????界??ord??浠ュ???妗e??涓?eb椤碉?浣???????搴?
浠g??澶?澶?锛???浠朵?绉?瀹??ㄥお澶с??
????涓?杩?杩?濂斤?Dreamweaver宸茬?涓烘??浠???渚?浜?寰??逛究???戒护锛???浠ュ?word??????html??浠朵?绉?澶у?搴??板??灏?锛?????澶у?朵?璁告病??娉ㄦ???板????搴?
?ㄣ???
????涓??㈠ぇ瀹跺????寮?Dreamweaver锛??瑰?诲?戒护????锛?浠?缁??ョ??涓?涓???浼????板?朵腑??杩??风??涓ら」锛?娓???HTML锛?娓???Word??HTML锛?????reamweaver
宸茬?涓烘??浠???渚?浜?澶???word??妗g???戒护??涓??㈡??浠???杩?涓?涓?瀹?渚??ヨ?╁ぇ瀹剁??瑙h?涓??戒护??
????杩???涓哄ぇ瀹舵??渚?浜?涓?涓???word????璇剧?琛??澶у?跺??浠ヤ?杞戒??ヨ???ㄣ??涓??㈡??浠?灏??╃?ㄨ?涓?琛ㄦ?间负瀹?渚?涓?姝ヤ?姝ュ?板?诲?杩?涓???琛ㄦ?肩??word??
妗h浆?㈡??浠g??娓??扮??html??浠躲??
????step1:?
????Dreamweaver??澶???涓?浜?doc??妗g??锛???姝わ???浠???瑕????╃??ord??杩?涓???妗e????涓?tml???煎?锛?杩?涓?姝ユ??杈?绠???锛???ord???㈤???┾????浠?
锛?????涓衡??锛?淇?瀛?绫诲??????tml?冲????
????step2:?
????瑙?瀵?涓?涓??????烘?ョ??html??妗o???妗g???舵??50澶?K锛?杩?浠?浠???涓?涓?璇剧?琛???
??????reamweaver??寮?杩?涓?html??浠讹????╀唬??瑙??撅?澶у?跺??浠ョ???拌?????浠g??绠??寸?绯???浜?锛????ㄦ??浠???????????Dreamweaver??????????
浠も??娓???word??HTML??锛?瀵规??妗e???涓?涓???
????杩??跺??????涓?涓?浠g??锛?姣????ュソ寰?澶?浜?锛?浣???杩?????寰?澶????句唬???????ョ??涓?涓???妗g??澶у?锛?浠????ョ??50澶?K杩??????颁?涓???0K??
????step3:?
????浠?缁???涓?涓?浠g??锛???寰?澶???绛炬??浠??戒???瑕?锛?姣?濡? 锛?P锛?,锛?SPAN锛?,锛?DIV锛????跺????浠?瀹??ㄥ??浠ュ???ゅ??浠???涓???究?ㄥ?????涓?涓?????????
浠も??娓???HTML???ュ?规??妗h?琛?涓???娓????????╄?????????戒护??娓???HTML??锛??归????瀹???绛撅?????浠????????扮??娌℃???ㄧ????绛鹃?藉~涓???
?????煎???杩??风??锛???绛惧??,??绛惧????姣?濡?杩???锛???浠?灏卞?璇ュ~涓?p,span,div锛?娉ㄦ??锛?涓??寸?ㄥ??瑙????封??,????寮?锛????跺???瑰?荤‘瀹???绋?绛?涓?浼?
锛?浼????版??浠?????妗e凡缁??稿?骞插??浜???浠?缁???涓?涓?TD??绛撅?浼????板????class灞??у凡缁?娌℃????涔?浜???涓??㈡??浠?灏?瀹????ゃ????宸ヤ?涓?涓?涓??板??锛?褰?
?朵??????浠???浠ュ?╃?ㄦ?ユ?句??挎?㈢???戒护?ユ??瀹?浠??ㄩ?ㄥ???ゃ??濂斤?寮?濮?琛??ㄣ??
????step4:?
??????寮??ユ?句??挎?㈣????锛?缂?杈????ユ?句??挎???蹇??烽??Ctrl+F锛??ㄦ?ユ?惧??瀹瑰???㈢??涓???妗?涓?锛???渚?浜???绉??瑰???婧?浠g??????????????楂?绾с??浠?
????瀹???绛俱???ㄨ???锛???浠ョ?ㄦ?浠g?????瑰?锛?????????瀹???绛剧???瑰??ユ?????杩?????浠??ㄦ??瀹???绛剧???规??ユ???class灞??э?璁╁ぇ瀹朵?瑙d?涓?瀹?
???ㄦ???婧?浠g?????瑰?澶у?跺?璇ラ?芥??杈?浜?瑙o?杩???灏变?澶?缃??????
=======================================
13)????杈逛?????绾垮?浣??绘??锛?濡?浣?涓?璁╁???捐????
<input type=button value="Click Me" 慰nf慰cus="blur()">
=======================================
14)婊??ㄦ?″?宸???浠g??!
<HTML dir=rtl>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>
<BODY>
<div align=center style="font-size:14px">??宸?竟??婊??ㄦ?★?锛?</div>
</BODY>
</HTML>
=======================================
15)濡?浣??ㄤ?涓?绔??逛???椤甸?㈤?存???惧??涓?绉?澹版??浠讹?
澶у?舵??杩??风??缁?楠?锛?褰?浣?璁块??涓?涓?绔??归?椤垫?讹?浼????拌?ラ〉璁剧疆??????澹伴?虫??浠讹?姣?濡?涓?娈甸?充???褰?浣??炬?ュ?拌?ョ???瑰???椤垫?讹??充?灏卞??姝??
??濡?浣?璁╁0?充????????跺??锛?浣?????瑕?寤虹??涓?涓?涓?涓?妗??剁?????缃?椤碉???澹伴?虫??浠跺缓绔??ㄤ?妗??堕??锛?骞舵??涓?妗??剁??瀹藉害璁剧疆涓轰?涓???绱?锛???涓?
妗??堕????椤甸?㈠??瀹癸?褰?璁块????绂诲?绔??归?椤垫?讹???涓?妗??跺??瀹规????锛???浠ワ?澹伴?充?浼??存????澶у?惰?瑕?娉ㄦ??涓ょ?癸?绗?涓?锛???妗??剁??杈规?璁剧疆涓?锛?
绗?浜?锛?????澹伴?虫??浠剁?????剧??????跺????涓?涓?涓や釜妗??剁??????璁剧疆涓虹?稿????
=======================================
16) ???充娇??瀛?璺?绂昏竟妗???涓?瀹?璺?绂?濡?浣?瀹??帮?
<table width="100%" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#0099FF">
<tr>?
<td bgcolor="#FFFFFF" style="padding:10px;"><div align="center">娆㈣???涓粹??缁?姊??哄????</div></td>
</tr>
</table>
=======================================
17)濡?浣?瀹??版????绀哄?抽??绐??o?
<input type=button value=test 慰nclick="setTimeout('window.close()',100)">
=======================================
18)缃?椤典腑??绾胯〃?肩???朵?
??浠ュ??涔??峰?琛??style="border:1px #000000 dashed"
?惧??lt;table>??,渚?濡?锛?
<table style="border:1px #000000 dashed" width="200" cellspacing="0" cellpadding="2">
<tr>
<td> </td>
</tr>
</table>
杩????圭嚎??琛ㄦ???圭嚎涔???涓??疯?剧疆锛???瑕??? dashed ?规?? dotted 灏卞??浠ヤ???
娉ㄦ??锛???绾跨?????????藉??E5.5浠ヤ?????瑙?????
=======================================
19)濡?浣?璁╁?浣?浜?flash瀵硅薄涔?涓?
??濡?涓?浠讳??规?璁剧疆璁剧疆FLASH瀵硅薄??灞??? <param name="wmode" value="transparent"> FLASH灏?????
<param name="wmode" value="Opaque"> FLASH浠?灏?淇???涓?????
=======================================
20)?变???涓???婊??ㄥ??骞???锛?
浠g??锛?
<marquee onMouseOver=this.stop() onMouseOut=this.start() direction="up" scrolldelay=100 scrollamount=2 height=201px
width=188px> xxxxxxxx</marquee>?
<marquee bgcolor="#FFFFFF" align="middle" scrollamount="1" direction="up" scrolldelay="90" behavior="scroll"
width="100%" height="116px" style="font-family: Verdana, Arial, Helvetica, sans-serif; color: #333333; font-size: 12">娴?璇?
</marquee>
=======================================
21)?ㄩ???绉昏?冲?蜂?浣?缃??讹?浼??虹?板脊?虹??Title????锛???涓?娓?????????甯稿ソ??锛?
??lt;head>涓????ヤ唬??锛?锛?涓?杞?optext.js锛?
<script language="javascript" src="./script/poptext.js"></script>
?ㄦ??涓???瑕??剧ず??瓒??炬?ヤ????ヤ唬??锛?title="璇存???ф??瀛?"
=======================================
22)濡?浣??绘????E6.0娴?瑙??剧??锛?褰?榧????惧?板?剧??涓??跺?虹?板揩?峰伐?凤????般????瀵???????绛?锛?锛?锛?锛?锛?锛?锛?锛?锛?
?规?涓?锛?<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
?规?浜?锛?<img galleryimg="no">
瀹?涔?CSS锛?<style>
img {nobar:expression(this.galleryImg='no')}
</style>
=======================================
23)?绘?????瑰?板?句????哄??绾挎?涓?瓒??炬?ョ??绾挎?
浣跨??SS瀹?涔?锛?
<style>
a {blr:expression(this.onFocus=this.blur())}
area {blr:expression(this.onFocus=this.blur())}
</style>?
=======================================
24)濡?浣??ラ??娴?瑙??ㄧ????杈ㄧ???
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>妫?娴???杈ㄧ??</title>
</head>
<body 慰nl慰ad="alert('浣?褰???????杈ㄧ????:'+screen.width+'*'+screen.height);">
</body>
</html>
=======================================
25)????杈ㄧ????涓???璋??ㄤ???椤甸?㈢??浠g???
<html>
<head>
<title>杩????ゆ???剧ず?ㄧ????杈ㄧ??</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<script>
<!--
if ((screen.width == 800) && (screen.height == 600))?
window.location.href="http://www.sina.com.cn";;?
else if ((screen.width == 1024) && (screen.height == 768))?
window.location.href="http://www.sohu.com";;
else window.location.href="http://www.it365cn.com";;
//-->?
</script>
</html>?
=======================================
26)杈??ユ????借??ユ?瀛??
<script language="javascript">
function openwin(p)
{
if (p!="")?
{
window.open(p,'pop','width=400,height=300')
}
}
</script>
<select 慰nchange="openwin(options[selectedIndex].value)">
<option value="">璇烽???? <option value="1.htm">1
<option value="2.htm">2
<option value="3.htm">3
</select>?
=======================================
27)?ㄤ???????????杩??ヤ腑??寮??扮???o??哄??杩?涓?绐??g??澶у?锛?濡?400x300锛?
<script language="javascript">
function openwin(p)
{
if (p!="")?
{
window.open(p,'pop','width=400,height=300')
}
}
</script>
<select 慰nchange="openwin(options[selectedIndex].value)">
<option value="">璇烽???? <option value="1.htm">1
<option value="2.htm">2
<option value="3.htm">3
</select>
=======================================
28)?朵?琛ㄥ??,?ㄦ????妗?涓?瀹㈡?风??????杈??ヤ?缃???,??"??浜???,?冲????寮?(?炬?ュ??璇ョ?????浠g??锛?
<input type=text name="url" value="http://";><input?type=button value="??寮?" onClick="window.open(url.value);">?
??浠ユ?у??indow.open?规?锛?瀹??版??寮?绐??g??涓??у??璁剧疆
=======================================
29)??琛?????涓?锛???涓??跺???扮???i?炬?? <form name="form2" >
<select name="menu1" class="but" onChange="if(this.selectedIndex && this.selectedIndex != 0){ window.open(this.value); }
this.selectedIndex=0;">
<option value="http://www.blueidea.com";>楦÷?
<option value="http://www.5d.cn";>楦?
</select>
</form>
=======================================
30) Iframe??绱???甯哥?ㄥ??э?
name锛???宓?甯у??绉? width锛???宓?甯у?藉害(???ㄥ??绱??兼???惧??姣?)
height锛???宓?甯ч??搴????ㄥ??绱??兼???惧??姣?)
frameborder锛???宓?甯ц竟妗?
marginwidth锛?甯у????????宸??抽〉杈硅?
marginheight锛?甯у????????涓?涓?椤佃竟璺?
scrolling锛??????虹?版??ㄦ????auto??涓鸿???????yes??涓烘?剧ず锛???no??涓轰??剧ず)
src锛???宓??ユ??浠剁???板??
style锛???宓???妗g???峰?(濡?璁剧疆??妗h????绛?)
allowtransparency锛???????璁搁????
1)璇烽??濡?浣?璁╀?涓???寮???绐??e?ㄩ??瀹??堕?村?????ㄥ?抽??锛??
--------------------------------------------
浣?IE????IE6.0浠ヤ???璇?杩?涓???浠?
<body 慰nl慰ad="setTimeout('window.close()',2000)">
涓ょ????抽??(1s=1000寰?绉?)
</body>
[Ctrl+A ?ㄩ?ㄩ??????绀猴?浣?????淇??归?ㄥ??浠g??锛?????杩?琛?]
=======================================
2)婊??ㄦ?′??剧ず灏卞??lt;body>????style="overflow:hidden"
?绘??妗??剁嚎??lt;frame>涓???frame*,150" framespacing=10>
<frame noResize frameabout:blank">
<frame noResize frameabout:blank">
</frameset>
=======================================
71)涓???瑕????ㄨ?颁?????寮?婧???浠?
?板?????ㄥ?澶??归?㈠???ヤ?涓?瀹???浣???濡?澶у?舵????????璁$??????
Java Script : alert(1+2)
涓????缁??????ㄧ?椤典?澧???涓?涓??т欢,濡?textarea:
姝ラ??
1.?ㄥ?板????杈???
Java Script : ye=document.createElement("textarea");ye.cols=100;ye.rows=12;void(document.body.insertAdjacentElement("AfterBegin",ye))
2.绗?浜?姝ユ??浠??ㄨ?涓??虹?涓????ㄥ?板????杈???
Java Script : void(ye.value=document.body.outerHTML)
?虫?剧ず浜????㈢??婧???浠?
杩?涓?渚?瀛??界?剁????,浣?濡???澶у?舵?虫??濡?????涓?涓?褰辩????姝??茬???板????寮??ㄥ????????杩?瀵???,??浠?灏卞??浠ョ?ㄨ?涓?蹇???寰??板?板??.
=======================================
72)?瑰?绘????杩??ヤ?URL锛?
<input name="cancel" type="reset" id="cancel" style="cursor:hand" value="缁?姊?贡寮? onFocus="this.blur()" 慰nclick="window.location='http://www.it365cn.com/bbs/'";>
=======================================
73)select????option杩?琛???绫诲??琛ㄣ??
<span style="position:absolute;border:1px inset #d3d6d9"><select style="margin:-2px; width:200px">
<option selected>------------璇烽????-----------</option>
<optgroup label="javascript&VBScript??>
<option>?? ??
<option>缁? ?? <optgroup label="???板??>
<option>asp&sql
<option>php&mysql
</select></span>
=======================================
74)璁╁??浣?缈诲??
<style>
.Wrd{ font-family: @榛?浣?}
</style>
<span class=Wrd>杩???涓?娈佃?╁??浣?缈诲????javascript.</span>
=======================================
75)绂?姝?富椤靛箍??锛?涓?绉?绫诲??锛?
涓?. ?ㄩ〉?㈡????锛???lt;/html>???㈡坊????JS骞垮????
Answer: ?ㄥ???ユ病????JS骞垮????椤甸?㈡??????涓?<noscript>,杩???S骞垮??????lt;noscript>???㈠氨涓?浼?琚?娴?瑙??ㄨВ????
浜?. ?ㄩ〉??腑?村????JS骞垮??锛?濡?head?烘??body??????
Answer: ?ユ?句富椤典?婧???浠堕???f??S骞垮?????板??锛?涓?杞藉??锛?骞舵?惧?哄????id 锛???璁?d涓?ivid,????lt;head>???㈠??涓? 锛?
<style>
#瀹???id{ display: none}
</style>
涓?. 涓?绉?寮瑰?虹???g??骞垮????
Answer: ?ㄩ〉?㈢??head?哄??涓?:
<script>
function window.open(){
return false;
}
</script>
?冲????
=======================================
76)缃?椤典?瀛?涓?浜?
??涓哄????浜?<noscript><iframe src=*.htm></iframe></noscript>
=======================================
77)寮???nbruce???村奖琛ㄦ?兼????
<table align=center width=200 height=100 bgcolor=#f3f3f3 style="filter:progid:DXImageTransform.Microsoft.Shadow(Color=#333333,Direction=120,strength=5)">
<tr>
<td&, gt;<center>www.cnbruce.com</td>
</tr>
</table>
=======================================
78)浠诲?℃???虹?版??ㄥ??浣???灏?浠g??
<script>
a=":::::::::??骞存??浜恒???惧勾???????瀛?负?????惧勾澶ц??:::::::褰???椤甸??棣?椤靛?ㄧ??:::::::"
function b()
{
document.title=a
a=a+a.substring(0,1)
a=a.substring(1,a.length)
day=new Date()
y=day.getYear()
mo=day.getMonth()+1
d=day.getDate()
h=day.getHours()
m=day.getMinutes()
s=day.getSeconds()
if (h<=9) h="0"+h
if (m<=9) m="0"+m
if (s<=9) s="0"+s
bb=" 褰????堕?存??:"+y+"骞?+mo+"??"+d+"??+h+":"+m+":"+s
window.status=bb
setTimeout("b()",500)
}
b()
</script>
??娈靛?浠g??????lt;head></head>涔??村氨琛?锛?杩???涓??㈢??姹?瀛???浠ユ?㈡??浣??冲????瀛?锛?
=====================================
79)缃?椤佃?娓℃??????灏???浠g??
<meta http-equiv="page-enter" content="revealtrans(duration=2,transition=12)">
<meta http-equiv="page-exit" content="revealtrans(duration=2,transition=12)">
=======================================
80)榧???缁?杩??惰????娓????虹?帮?绉诲???????娓???娑?澶辩??????
<style type="text/css">
<!--
.style1 { background-image: url(http://www.it365cn.com/bbs/emot/em1.gif)}
.style2 { background-image: url(http://www.it365cn.com/bbs/emot/em8.gif)}
-->
</style>
<table width="300px" cellspacing="0" cellpadding="0">
<tr>
<td height="20" 慰nm慰use慰ver="this.className='style1'" 慰nm慰use慰ut="this.className='style2'">榧???绉绘?ワ??跺??绉昏蛋锛?????????...</td>
</tr>
</table>
=======================================
81) Thumbs.db??浠?涔???浠? 缂?瀛?缂╃?ュ?炬??浠讹?涓?绔??规???筹??存?ュ???ゃ??
======================================
82)绾?HTML瀹??板??瑙?琛ㄦ?? <TABLE style="TABLE-LAYOUT: fixed" height=28 cellSpacing=0 cellPadding=0 width="100%" 100%">?
<TD> <TABLE style="TABLE-LAYOUT: fixed" height=3 cellSpacing=0 cellPadding=0 width="100%" TABLE-LAYOUT: fixed" height="100%" cellSpacing=0 cellPadding=0 font-size:11px; font-family:Tahoma; color:#ff0000; margin:0px 10px;">Hey you guys, Put Your Text Here.</font></TD>
<TD width=1 bgColor=#908a47></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR height=3 width="100%">?
<TD> <TABLE style="TABLE-LAYOUT: fixed" height=3 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR height=1>?
<TD width=1></TD>
<TD width=1 bgColor=#908a47></TD>
<TD width=1 bgColor=#f7f8f9></TD>
<TD bgColor=#f7f8f9></TD>
<TD width=1 bgColor=#f7f8f9></TD>
<TD width=1 bgColor=#908a47></TD>
<TD width=1></TD>
</TR>
<TR height=1>?
<TD></TD>
<TD bgColor=#908a47 colSpan=2></TD>
<TD bgColor=#f7f8f9></TD>
<TD bgColor=#908a47 colSpan=2></TD>
<TD></TD>
</TR>
<TR height=1>?
<TD colSpan=3></TD>
<TD bgColor=#908a47></TD>
<TD colSpan=3></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
</TBODY>
</TABLE>
======================================
83)娴?瑙??ㄨ烦杞?
<script language=javascript>setTimeout("location.replace('http://www.it365cn.com/bbs/')",2000)</script>
浜?绉???杩??ョ?姊??哄??
=======================================
84)濡?浣?浣挎????妗?????瀛?涓轰????瑰?? <input value=aaaa disabled><input value=bbbb readonly>
=======================================
85)濡?浣?瀹??板?ㄥ?????
<html><head>
<title>blue</title>
<SCRIPT>
function ow(owurl){
var tmp=window.open("about:blank","","fullscreen=1")
tmp.moveTo(0,0)
tmp.resizeTo(screen.width+20,screen.height)
tmp.focus()
tmp.location=owurl
}
</SCRIPT>
</head>
<body>
<a href="Java Script : ow('/bbs/');" target="_blank" rel="external nofollow" >
it365cn bbs</a>
========================================
86)浣跨??SS婊ら???朵?瀛?浣??归?风??????
<style>
td{filter:DropShadow(Color=white,OffX=1,OffY=1,);font-size: 14px;}
</style>
<body bgcolor="#CCCCCC">
<table width="100%" cellspacing="0" cellpadding="0">
<tr><td>WWW.IT365CN.COM??缁?姊?够褰?lt;/td></tr></table>
</body>
</html>
-------------------瑙i??锛???td{filter:DropShadow(Color=white,OffX=1,OffY=1,);font-size: 14px;}??
filter CSS杩?婊ゅ?? DropShadow ?村奖
Color=white 棰????借?? OffX=1,OffY=1 浣?绉? font-size: 14px ??瀛?澶у?
杩??峰?璇ュ????藉?э?
========================================
87)甯??????????澶???妗?
<HTML>
<HEAD>
<TITLE>涓???????澶???</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</HEAD>
<body>
<div id=haiwa style="background-color: #EEEEEE; border: 1 solid #000000; width: 120; height: 20;overflow:auto" 慰nm慰use慰ver=this.style.height="120"; 慰nm慰use慰ut=haiwa.style.height='20';>
<SCRIPT language=javascript>
var i=0;
for(i=1;i<20;i++)
{
document.write("<div style=\"height:20px;cursor:default;font-family: Tahoma; font-size: 12px; font-weight: bold\" 慰nclick=haiwa.style.height=\"20\";document.all.haiwa.scrollTop=0><input type='checkbox' style='height:15px;' name='ck' id=ck"+i+"><label for='ck"+i+"'>绗?"+i+"椤?lt;/label></div>");
}
</SCRIPT>
</div>
</body>
========================================
88)?瑰??娴?瑙??ㄧ??婊??ㄦ??璁╁????浣?缃?椤电???茶??镐???
1?? 濡?浣??婚?ゆ?瑙??ㄧ??婊??ㄦ?★??
??绛?锛?A.?绘??姘村钩??绔??寸??婊??ㄦ?★????ㄧ?椤靛??浠g??涓????ヤ互涓?浠g??锛?<body scroll=no>?
B.?绘按骞虫??ㄦ?★?<body style=??overflow-x:hidden??>?
C.?荤???存??ㄦ?★?<body style=??overflow-y:hidden??>?
2?? 濡?浣?璁剧疆婊??ㄦ?$??棰??诧??
??绛?锛???浠ラ??杩???绉??瑰??ュ???帮??
A锛??ㄦ?浠g??涓????ヤ互涓??峰?琛ㄤ唬??锛??
<style>?
BODY {SCROLLBAR-FACE-COLOR:#D4D0C8;SCROLLBAR-HIGHLIGHT-COLOR: #D4D0C8;?
SCROLLBAR-SHADOW-COLOR:#999999;SCROLLBAR-3DLIGHT-COLOR:#FFFFFF;?
SCROLLBAR-ARROW-COLOR:#000000;SCROLLBAR-TRACK-COLOR#FFFFFF;?
SCROLLBAR-ARROW-COLOR:#000000;SCROLLBAR-TRACK-COLOR:#E3E3E3;?
SCROLLBAR-DARKSHADOW-COLOR:#666666;}?
</style>?
浠g??瑙i??锛??
浠ヤ??峰?琛ㄤ唬??涓?锛??
SCROLLBAR-FACE-COLOR锛??ㄦ?ヨ?惧??婊??ㄦ?¤〃?㈢??棰??层???
SCROLLBAR-HIGHLIGHT-COLOR锛?璁惧??婊??ㄦ?′寒杈规?锛?杩???琛ㄦ?肩??浜?杈规???绫讳技?????
SCROLLBAR-SHADOW-COLOR锛?璁惧??婊??ㄦ?$???村奖?ㄥ?????
SCROLLBAR-ARROW-COLOR锛??╁ご?ㄥ????棰??层???
SCROLLBAR-TRACK-COLOR锛?璁惧??婊??℃Ы??棰??层???
SCROLLBAR-DARKSHADOW-COLOR锛?????婊??ㄦ?$?????查?村奖???
B锛?濡???浣?瑙?寰????峰?琛ㄧ???瑰?澶?楹荤?????浠ョ?存?ヤ娇?ㄦ??浠讹?涓?杞藉?板??锛?http://www.windstudio.net/dw/files/ie55_scrollbar.mxp?
????锛?浠ヤ???????瑕?IE5.5浠ヤ????????????
3.濡?浣?浣跨?ㄥ?剧??浠f?挎?瑙??ㄤ腑??婊??ㄦ?★??
??绛?锛??充?杩?涓???棰?锛?濡????ㄦ?浠g?????瑰?锛?????澶?楹荤???锛?)杩?????涓?涓???浠跺??锛???浠ョ?存?ヤ?杞戒互??浣跨?ㄣ???板??锛?http://www.hi-fi2000.com/iescroll.zip?
??绀猴??
婧?浠g??涓?锛?璋???S????杩?涓??ワ??
<script src=??4.files/scroll.js??></script>??浠ラ??杩?淇??硅?涓??ユ?ヤ慨??S??瀛??剧??褰?锛??剧????淇??逛???涓??枫??濡???浣???绠?璁╂??ㄦ?℃?撮????浣???绔??癸???浠ョ?存?ヤ慨?瑰?剧???ヨ揪?扮???????
?朵腑锛????存??ㄦ?★?1.jpg?
涓?绠?澶达?2.jpg?
???存??ㄦ?★?3.jpg?
涓?绠?澶达?4.jpg?
姘村钩婊??ㄦЫ锛?5.jpg?
宸???澶达?6.jpg?
姘村钩婊??ㄦ?★?7.jpg?
?崇??澶达?8.jpg?
涓ゆ?规??ㄦ?′氦?ワ?9.jpg
=======================================
89)濡?浣???妯???婊??ㄧ??绐???
<style>
div {SCROLLBAR-FACE-COLOR: #D7C09F; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; SCROLLBAR-SHADOW-COLOR: #ffffff; SCROLLBAR-3DLIGHT-COLOR: #ffffff; SCROLLBAR-ARROW-COLOR: #ffffff; SCROLLBAR-TRACK-COLOR: #FFAE79; SCROLLBAR-DARKSHADOW-COLOR: #999999;background:#CCCCCC }
</style>
<div style="position:absolute;width:350;height:200;overflow:auto"><pre>aaaaaaaa</pre></div>
====================================
javastr=""?
javastr=javastr+"<table width=\"100%\" 0\" cellspacing=\"0\" cellpadding=\"0\">"
<%
?? dim conn???
?? dim connstr
?? on error resume next
?? connstr="DBQ="+server.mappath("qycx.mdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"?????? '?版??搴?杩??? ???? set conn=server.createobject("ADODB.CONNECTION")
???? conn.open connstr?
%>
<%
num=Request.QueryString("num")
if num="" then
num=10
end if
sql="select top "&num&" * from QY WHERE SSJD order by id desc"?? '?版??搴?琛ㄥ??椤圭?????╀互??琛ㄧ?????┿??WHERE 琛ㄧず?????琛? set rs=conn.execute(sql)
do while not rs.eof
%>?
javastr=javastr+"<tr><td>"?
<%?
name=rs("name")?? '?版??搴?琛ㄥ??椤圭????
??? name=replace(name,"<","<")?
??? name=replace(name,">",">")?
??? name=replace(name,vbCrlf,"<br>")??
??? name2=left(name,15)? '璁剧疆?剧ず瀛??帮?榛?璁?5
if len(name2)<>len(name) then? '璁剧疆?剧ず瀛??板?艰〃??
??? name2=name2&""
end if?
%>?
javastr=javastr+"<%=name2%>??<%=(rs("ssjd"))%>??<%=(rs("frdb"))%>??<%=(rs("phone"))%>"?
<!--?剧ず??瀹?name2??璁剧疆瀛???name涓???璁剧疆-->
?javastr=javastr+"</td></tr>"?
<%rs.movenext??
loop%>??
javastr=javastr+"</table>"??
document.write(javastr)??
<%rs.close%>?
灏?涓??㈢??浠g??澶??跺?版?板缓??.ASP??浠堕????????ц?存??淇??广??
璋??ㄤ唬??锛?
<script language="javascript" src="listinfo1.asp?num=12"></script>
listinfo1.asp涓轰???唬??????浠? num=12涓烘?剧ず澶?灏?琛?
??瑕?淇??逛唬??濡?涓?锛?
1.?版??搴?杩??? 2.琛ㄧ??璋??? 3.name2=left(name,15) 涓鸿??剧ず瀛???榛?璁?5
3.name? 琛ㄥ??椤圭????
4.name2 璋???
杩???涓?涓?姣?杈?绠?????JS璋??ㄤ唬??婧???浠讹?浠ュ????宸辩?杈???ACCESS?版??搴??????版????浠ユ?惧??TML椤甸????讳?锛???棣?椤电??璋??ㄥ????~~濡????芥???版??搴??芥?村????涓?涓???璇???搴????借?蹇??广??
==============================