ʹÓÃjavascript ²éÑ¯ÌØ¶¨µÄtableÖеÄÄÚÈÝ
Ò³ÃæÖÐÓÐÒ»¸ötable°üº¬Á½ÁУ¬Êý¾ÝÓɺǫ́Éú³É£¬ÐÐÊý²»¶¨£º£¨Èçͼ£©
ÔʼÊý¾Ý£º
ÏÖÔÚͨ¹ýjavascript½øÐвéѯ£¬Ð§¹ûÈçÏÂÈýͼ£º
¿ªÊ¼²éѯ
²éѯÖÐ......
²éѯµÃµ½µÄ×Ôºó½á¹û
JAVASCRIPT´úÂ룺
JS´úÂë
<script language="javascript" tpe="text/javascript">
function searchMaterial()
{
var strcellCode;
var strcellName;
var strtextCode=document.all.txtCode.value;
strtextCode=strtextCode.toLowerCase();
var strtextName=document.all.txtName.value;
strtextName=strtextName.toLowerCase();
for (i=1; i < document.all.oTable.rows.length; i++)
{
strcellCode=document.all.oTable.rows(i).cells(0).innerText ;
strcellName=document.all.oTable.rows(i).cells(1).innerText ;
strcellCode=strcellCode.toLowerCase();
strcellName=strcellName.toLowerCase();
if( (strtextCode=="" || strcellCode.indexOf(strtextCode)>0)
&&(strtextName=="" || strcellName.indexOf(strtextName)>0))
{document.all.oTable.rows(i).style.display="";}
else
&
Ïà¹ØÎĵµ£º
JavaScript ECMAScriptÊÇÕâ¸ö½Å±¾ÓïÑԵıê×¼»¯°æ±¾¡£ ScriptÔªËØ£º ÔÚHTML´úÂëÖÐÌí¼ÓJavaScript´úÂë Ò²¿ÉÒ԰ѽű¾´úÂë·ÅÔ ......
ÀýÈ磺ÓÐÈý¸öÀàclassX,classY,classZ
classZ·Ö±ð¼Ì³ÐclassXºÍclassY
ÓÚÊǾÍÓÐÏÂÃæµÄд·¨£º
function ClassZ(){
this.newMethod=classX;
this.newMethod();
delete this.newMethod;
this.newMethod=classY;
this.newMethod();
delete this.newMethod;
}
ÕâÖÖд·¨´æÔÚÒ»¸ö±×¶Ë.¡£Èç¹ûclassXºÍclassYÓоßÓÐͬÃûµÄÊô ......
if (document.all)
{
yourLogo = "»¶Ó½øÈëÏÊ»¨¹¤·»Íø£¡"; <!--´ýÐýתµÄÎÄ×Ö-->
logoFont = "Arial";   ......
var OnPasteCheckIntNum = function()
{
if(window.clipboardData)
{
if(isNaN(window.clipboardData.getData('text')))
{
......