Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Ìæ»»Select±êÇ©µÄjavascriptÀà

// ÏÂÀ­ÁбíÀà
// PubEdition: Version 1.0.0.0
// ModifyDate: 2009-12-09 9:30:00
// FinishDate: 2009-12-09 9:30:00
// AuthorName: binbin( Mail:pl45@163.com / Tel:13893302154 )
var droplistswap=function(){};
droplistswap.prototype.originalElement=new Array();
// droplistswap.prototype.hidedroplist=function(evt){
// var my = this;
// var _event = window.event?window.event:evt;
// var obj = _event.toElement?_event.toElement:_event.relatedTarget;
// while( obj!=null && obj.id!="droplistElement"){
// obj = obj.parentNode;
// }
// if(obj==null)document.getElementById("droplistElement").style.display="none";
// }
droplistswap.prototype.initialize=function(DropID,index){

var my = this;
my.originalElement.push(document.getElementById(DropID));
var selectElement=document.createElement('div');
selectElement.innerHTML="<label>"+document.getElementById(DropID).options[document.getElementById(DropID).selectedIndex].text+"</label>";
//selectElement.style.position="relative";
selectElement.id="selectElement"+index;
selectElement.className="droplistswap";
//selectElement.style.width="80px";
selectElement.style.top=document.getElementById(DropID).style.top;
selectElement.style.left= document.getElementById(DropID).style.left;

document.getElementById(DropID).parentNode.appendChild(selectElement);

document.getElementById(DropID).style.display="none";
//functionµÄ²ÎÊýÃû³Æ²»ÄܺÍÀà³ÉÔ±µÄ²ÎÊýÃû³ÆÏàͬ
// my.addEventListener(document,"click",function(event){my.hidedroplist.call(my,event)});
my.addEventListener(selectElement,"click",function(event,p_ID,p_Index){my.handledroplist.call(my,event,DropID,index)});
}
droplistswap.prototype.handledroplist=function(evt,DropID,OriIndex)
{
var my = this;
//alert(OriIndex);
var _event = window.event?window.event:evt;
// if( _event == null ||typeof(_event) == 'undefined'){
// var _fun = my


Ïà¹ØÎĵµ£º

Ò»¶ÎʵÏÖHTMLÒ³ÃæÄÚ¶¨ÆÚ´¥·¢Ê¼þµÄJavaScript´úÂë

avaScriptͨ¹ýÄÚÖõÄsetTimeoutº¯ÊýÀ´Íê³ÉÒ³ÃæÄڵĶ¨Ê±¼ì²é£¬Ò²ÊǺܾÃÒÔǰдµÄ¶«Î÷ÁË¡£
Ö®ËùÒÔÏëÆðËüÀ´£¬ÊÇÒòΪÔÚºÍÏîÄ¿×éÆäËû³ÉԱ˵¸ÃÊÂÇéµÄʱºò£¬±ðÈ˾¹È»³°Ð¦ÎÒ˵ÊÇÉϸöÊÀ¼ÍµÄ´úÂ룬ÏÖÔÚ¶¼ÓÃWEB2.0ÁË¡£
<script language="JavaScript" type="text/JavaScript">
//Ôö¼ÓϵͳɨÃèʱ¼ä
var v_ ......

JavaScript»ñµÃ²ãµÄ¸ß¶È²¢ÊµÏÖÁ½¸ö²ã¸ß¶ÈµÄ×ÔÊÊÓ¦

var   a = document.getElementById("left");   
var   b = document.getElementById("right");   
if(a.scrollHeight < b.scrollHeight)   
{  
    a.style.height = b.scrollHeight+”px”;
} &nb ......

javascript ´òÓ¡Ô¤ÀÀµÄʵÏÖ

Òý×Ô£ºhttp://blog.csdn.net/lsj19830812/archive/2007/10/25/1843578.aspx
 a.jspÊÇÒª´òÓ¡µÄÒ³Ãæ
<html>
<head>
<script language="javascript">
function fmtPrint(printPlace,w,h){
var sarg=new Array();
var sdata=document.all.item(printPlace);
sarg[0]=s ......

JavaScriptµ÷ÓÃÏÖ³ÉWordÄ£°åÍê³É´òÓ¡

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>JSµ÷ÓÃÏÖ³ÉWordÄ£°åÍê³É´òÓ¡</title>
    <script type="text/javascript">
      //ת»»wordµÄº¯Êý
      function ......

JavaScript È«½Ç°ë½Çת»»ÎÊÌâ

<script language=JAVAscript>
var s="b";
var strCode
for(var i=0;i<s.length;i++)
{
strCode=s.charCodeAt(i);
if((strCode>65248)||(strCode==12288))
{
alert("ÓÐÈ«½Ç");
break;
}
}
</script>
°ë½Ç×Ö·ûÓÉÒ»¸ö×Ö½Ú±£´æ£¬È«½Ç×Ö·ûÓÃÁ½¸ö×Ö½Ú±£´æ
ËùÒÔÂëÖµµÄ¾ø¶ÔֵСÓÚ256µÄ¾ÍÊÇ°ë½Ç£¬· ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ