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

javaScript ´ò¿ª´°¿Ú×î´ó»¯

ÓÃjs ´ò¿ªÐ´°¿ÚµÄʱºò£¬´°¿Ú×î´ó»¯¡£
function showBigLisence(url){
 if(url!== undefined && url!== null && url !== ''){
    var scrWidth=screen.availWidth;
     var scrHeight=screen.availHeight;
     var self=window.open(url,"newwindow","resizable=yes,toolbar=yes, menubar=yes,   scrollbars=yes,location=yes, status=yes,top=0,left=0,width="+scrWidth+",height="+scrHeight);
     self.resizeTo(scrWidth,scrHeight);
     self.moveTo(0,0);
 }
²ÎÊý½âÊÍ
      window.open µ¯³öд°¿ÚµÄÃüÁ
   ¡¡¡¡url µ¯³ö´°¿ÚµÄÎļþÃû£»
   ¡¡¡¡'newwindow' µ¯³ö´°¿ÚµÄÃû×Ö£¨²»ÊÇÎļþÃû£©£¬·Ç±ØÐ룬¿ÉÓÿÕ''´úÌ棻
   ¡¡¡¡height=100 ´°¿Ú¸ß¶È£»
   ¡¡¡¡width=400 ´°¿Ú¿í¶È£»
   ¡¡¡¡top=0 ´°¿Ú¾àÀëÆÁÄ»ÉÏ·½µÄÏóËØÖµ£»
   ¡¡¡¡left=0 ´°¿Ú¾àÀëÆÁÄ»×ó²àµÄÏóËØÖµ£»
   ¡¡¡¡toolbar=no ÊÇ·ñÏÔʾ¹¤¾ßÀ¸£¬yesΪÏÔʾ£»
   ¡¡¡¡menubar£¬scrollbars ±íʾ²Ëµ¥À¸ºÍ¹ö¶¯À¸¡£
   ¡¡¡¡resizable=no ÊÇ·ñÔÊÐí¸Ä±ä´°¿Ú´óС£¬yesΪÔÊÐí£»
   ¡¡¡¡location=no ÊÇ·ñÏÔʾµØÖ·À¸£¬yesΪÔÊÐí£»
   ¡¡¡¡status=no ÊÇ·ñÏÔʾ״̬À¸ÄÚµÄÐÅÏ¢£¨Í¨³£ÊÇÎļþÒѾ­´ò¿ª£©£¬yesΪÔÊÐí£»


Ïà¹ØÎĵµ£º

JavaScript¶ÁÈ¡TxtÎļþ

JavaScript¶ÁÈ¡TxtÎļþ
<html>
<head>
<title>new page</title>
<script>
 GetHeader(src) {
var ForReading=1;
var fso=new ActiveXObject("Scripting.FileSystemObject");
var f=fso.OpenTextFile(src,ForReading);
return(f.ReadAll());
}
var arr=GetHe ......

javascript ÅжÏÎļþÀàÐÍ


function checkfiletype()
{
   var fileName = document.getElementById('<%=FilePath.ClientID%>').value;
   if (Trim(fileName)=="")
        {
            alert("ÇëÑ¡ÔñÒªÉÏ´«µÄÎļþ£¡");
     ......

javascriptµ÷Óúǫ́µÄÌí¡¢É¾¡¢¸Ä¡¢²é

ǰ̨£º
<%@ Page AutoEventWireup="true" CodeBehind="CustomerBizList.aspx.cs" Inherits="SSMIS.UI.MISUI.CustomerBizList"
    Language="C#" MasterPageFile="/Master/WebAdmin.master" %>
<asp:Content ID="Content1" runat="Server" ContentPlaceHolderID="bcr">
    ......

css,javascriptµÄÔ¤¼ÓÔØ

ΪÁËÌá¸ßÍøÕ¾µÄ¼ÓÔØËٶȣ¬ÓÐÒ»¸öºÜÖØÒªµÄÊֶξÍÊÇÔÚÓû§ä¯ÀÀ¹ý³ÌÖеÄÉÏÓÎÍøÕ¾×öÒ»¸öÎļþµÄÔ¤¼ÓÔØ¡£Ô¤¼ÓÔØÎļþÒ»°ãÓÐÁ½ÖÖ³£Óõķ½Ê½£ºxhrºÍ¶¯Ì¬²åÈë½ÚµãµÄ·½Ê½¡£¶¯Ì¬²åÈë½ÚµãÊÇ×îΪ¼òµ¥Ò²×îΪ¹ã·ºµÄÒ»ÖÖÒì²½¼ÓÔØ·½Ê½(ÀýÈçyuiµÄGetÄ£¿é)£¬È»ºóʹÓö¯Ì¬²åÈë½Úµã·½·¨¼ÓÔصÄÎļþ¶¼»áÔÚ¼ÓÔغóÁ¢¼´Ö´ÐУ¬javascriptµÄÖ´ÐÐÒ»·½Ãæ»áÕ ......

ʹÓÃJavaScriptºÍAjax·¢³öÒì²½ÇëÇóÏê½â

´ò¿ªÇëÇó
¡¡¡¡ÓÐÁËÒªÁ¬½ÓµÄ URL ºó¾Í¿ÉÒÔÅäÖÃÇëÇóÁË¡£¿ÉÒÔÓà XMLHttpRequest ¶ÔÏóµÄ open() ·½·¨À´Íê³É¡£¸Ã·½·¨ÓÐÎå¸ö²ÎÊý:
request-type:·¢ËÍÇëÇóµÄÀàÐÍ¡£µäÐ͵ÄÖµÊÇ GET »ò POST£¬µ«Ò²¿ÉÒÔ·¢ËÍ HEAD ÇëÇó¡£
url:ÒªÁ¬½ÓµÄ URL¡£
asynch:Èç¹ûÏ£ÍûʹÓÃÒì²½Á¬½ÓÔòΪ true£¬·ñÔòΪ false¡£¸Ã²ÎÊýÊÇ¿ÉÑ¡µÄ£¬Ä¬ÈÏΪ true¡£
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ