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

JavaScriptÄܽ«Ò³ÃæÖеÄͼƬµ¼³öµ½excel


Javascript´úÂë
<script>    
var idTmr = "";    
function copy(tabid){    
var oControlRange = document.body.createControlRange();    
oControlRange.add(tabid,0);    
oControlRange.select();    
document.execCommand("Copy");    
}    
function toExcel(tabid){    
copy(tabid);    
try{    
var xls = new ActiveXObject( "Excel.Application" );    
}catch(e){    
alert( "ExcelûÓа²×°»òä¯ÀÀÆ÷ÉèÖò»ÕýÈ·.ÇëÆôÓÃËùÓÐActive¿Ø¼þºÍ²å¼þ");    
return false;    
}    
xls.visible = true;    
var xlBook = xls.Workbooks.Add;    
var xlsheet = xlBook.Worksheets(1);    
xlBook.Worksheets(1).Activate;    
for(var i=0;i<tabid.rows(0).cells.length;i++){    
xlsheet.Columns(i+1).ColumnWidth=15;    
}    
xlsheet.Paste;    
xls=null;    
idTmr = window.setInterval("Cleanup();",1);    
}    
function Cleanup() {    
window.clearInterval(idTmr);    
CollectGarbage();    
}    
</script>    
<input type="button" value="µ¼Èëexcel" onclick="toExcel(t1)"> <!--°ÑtableµÄID´«¹ýÈ¥¾ÍºÃÁË-->    
<table id="t1">
<tr>
<td><img src="ͼƬµÄ·¾¶/ͼƬµÄÃû×Ö.jpg" id="img"/> </td><td></td>
</tr>
<tr>
<td></td><td></td>
</tr>
  
</table>    
//ÔÚIEä¯ÀÀÆ÷À﹤¾ß-¡·internetÑ¡Ïî-¡·°


Ïà¹ØÎĵµ£º

javascript²Ù×÷cookies ÒÔ¼°ÕýȷʹÓÃcookiesµÄÊôÐÔ

ÔÚ JS(JavaScript) ²Ù×÷cookies±È½Ï¸´ÔÓ£¬ÔÚ ASP ÀïÃæÎÒÃÇÖ»ÐèÒªÖªµÀ cookie µÄÃû³Æ¡¢cookie µÄÖµ¾ÍÐÐÁË£¬¶ø JS ÀïÃ棬ÎÒÃÇÃæ¶ÔµÄÊÇ cookie µÄ×Ö·û´®£¬Äã×Ô¼º±àдÕâ¸ö×Ö·û´®Ð´Èë¿Í»§¶Ë£¬È»ºó×Ô¼º½âÎöÕâ¸ö×Ö·û´®¡£
¡¡¡¡Ò»¡¢´Óд cookie ˵Æð¡£
var the_date = new Date("December 31, 2020");
var expiresDate ......

ת JavaScriptµ÷ÓÃWebServices(ʹÓÃWebService.htc)

.XML Web services ÐÐΪʹ¿Í»§¶Ë½Å±¾Äܹ»µ÷ÓÃÓÉ Microsoft .NET XML Web services »òÆäËûÖ§³Ö¼òµ¥¶ÔÏó·ÃÎÊЭÒé (SOAP) µÄ Web ·þÎñÆ÷¹«¿ªµÄÔ¶³Ì·½·¨¡£
Ä¿µÄ£ºÌṩһÖÖ¼òµ¥µÄ·½·¨Ê¹ÓúÍÀûÓà SOAP£¬¶ø²»Ðè¾ßÓÐ SOAP ʵÏÖµÄרҵ֪ʶ¡£
²½Ö裺
1.ÏÂÔØWebservice.htc,Ðí¶àÍøÉϵÄÎÄÕ½éÉܸÃÎļþ¿ÉÒÔÔÚ΢ÈíµÄÍøÕ¾ÉÏÕÒµ½£¬µ«ÎÒ°´ ......

javascriptÖжÔÖÐÎĽøÐбàÂë½âÂëµÄ·½Ê½

ÖÐÎıàÂ룺
 function upload() {
  var form = document.getElementById('topic');
  if ($('uploadfile').value == "") {
   alert("ÇëÑ¡ÔñÎļþ£¡");
   return;
  } 
  $('uploadfile').value = escape($('uploadfile').value) ......

JavaScript³£ÓÃ

--------------------------------------------------------------------------------
<body>
<mce:script type="text/javascript"><!--
document.write("Èç¹ûÏÔʾÁËÕâ¶ÎÎÄ×Ö£¬ÄÇôÄúµÄä¯ÀÀÆ÷Ö§³Ö JavaScript£¡")
// --></mce:script>
<noscript>No JavaScript support!</noscript&g ......

javascriptµÄϵͳº¯Êý

javascriptµÄϵͳº¯Êý
1£¬encodeURI·½·¨
     ·µ»Ø¶ÔÒ»¸öURI×Ö·û´®±àÂëÖеĽá¹û£¬±¾ÖÊÊÇUTF-8±àÂë
     eg:
     var urlStr = encodeURI('http://fanli.qq.com/index.html?a=ddd&msg=Öйú');
     alert(urlStr);
2, decodeUR ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ