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

Óà JavaScript ʵÏÖÍøҳͼƬµÈ±ÈÀýËõ·Å

 <script language="JavaScript" type="text/javascript">
    <!--
    // ˵Ã÷£ºÓà JavaScript ʵÏÖÍøҳͼƬµÈ±ÈÀýËõ·Å
    // ÕûÀí£ºhttp://www.CodeBit.cn 
    function DrawImage(ImgD,FitWidth,FitHeight)
    {    
       var image=new Image();
       image.src=ImgD.src;    
       if(image.width>0 && image.height>0)
       {        
            if(image.width/image.height>= FitWidth/FitHeight)
            {            
                if(image.width>FitWidth)
                {               
                    ImgD.width=FitWidth;              
                      ImgD.height=(image.height*FitWidth)/image.width;
                }else
                {                
           &


Ïà¹ØÎĵµ£º

JavaScriptÑéÖ¤´óÈ«

jsÑéÖ¤±íµ¥´óÈ«
1. ³¤¶ÈÏÞÖÆ
<script>
function test()
{
if(document.a.b.value.length>50)
{
alert("²»Äܳ¬¹ý50¸ö×Ö·û£¡");
document.a.b.focus();
return false;
}
}
</script>
<form name=a onsubmit="return test()">
<textarea name="b" cols="40" wrap="VIRTUAL" rows="6"&g ......

javascript replace µÄÕýÔò±í´ïʽ

replace()×î¼òµ¥µÄËãÊÇÄÜÁ¦¾ÍÊǼòµ¥µÄ×Ö·ûÌæ»»¡£ ʾÀý´úÂëÈçÏ£º
ËüÖ»Ìæ»»ÁËÊ××Öĸ¡£µ«Èç¹û¼ÓÉÏÕýÔò±í´ïʽ½á¹û¾Í²»Ò»ÑùÁË£¡replace()Ö§³ÖÕýÔò±í´ïʽ£¬Ëü¿ÉÒÔ°´ÕÕÕýÔò±í´ïʽµÄ¹æÔòÆ¥Åä×Ö·û»ò×Ö·û´®£¬È»ºó¸øÓèÌæ»»£¡ ×¢Ò⣺±»Ìæ»»µÄ²¿·Ö²»ÓüÓË«ÒýºÅ.
ÕâÑù»¹ÊÇÖ»Ìæ»»Á˵ÚÒ»¸ö×Öĸa¡£
ÓÉÉÏ¿ÉÖª£¬µ±ÕýÔò±í´ïʽÓÐ"g"±ê־ʱ£¬´ ......

ADF ÖÐOnClickµÄJavaScriptµÄÖ§³ÖÎÊÌâ

ADF 11g²»ÔÙÖ§³ÖOnclickµÈJavaScript£¬¶øÊDzÉÓÃ<af:clientListener>À´ÊµÏÖÖîÈçɾ³ýijÌõ¼Ç¼µÄÌáʾ¿ò¡£
ʵÏÖ·½Ê½ÈçÏ£º
 
 function confirmDelete() {
if (confirm('Are you sure you want to delete this record?'))
return true;
else
return false;
}

<af:commandLink actionListener="# ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ