Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : javascript

javascriptʵÏÖÄêÔÂÈÕµÄÁª¶¯Ñ¡Ôñ

<script type="text/javascript">
   
  function dayChange(year,month,day){
   var selectYear = document.getElementById(year);
   var selectMonth = document.getElementById(month);
   var selectDay = document.getElementById(day);
   var y = selectYear.value,m = selectMonth.value,d = selectDay.value;
   if(m==4||m==6||m==9||m==11){
    if(selectDay.length == 31){
     selectDay.options.remove(30);
    }
    if(selectDay.length == 29){
     selectDay.options.add(30,30);
    }
    if(selectDay.length == 28){
     selectDay.options.add(29,29);
     selectDay.options.add(30,30);
    }
   }
   if(m==1||m==3||m==5||m==7||m==8||m==10||m==12){
    if(selectDay.length == 30){
     selec ......

javascript¶¯Ì¬Ìí¼Ó/ɾ³ýdiv


Ìí¼Ó
<script>
var oDiv = document.createElement("DIV");
oDiv.id = "shop01";
oDiv.style.top = 200;
oDiv.style.left = 200;
oDiv.style.background = '#FFFF00';
oDiv.style.visibility = 'visible';
oDiv.innerHTML="123123"
document.body.appendChild(oDiv);
oDiv.onclick = abc;
function abc(){
alert("abc");
}
</script>
ɾ³ýdiv:
function deldiv(divid){
var div=document.getElementById(divid);
div.parentNode.removeChild(div);
}
Áí£º
»ñµÃÒ»¸ö¿Ø¼þvar xxoo = document.createElement('xxoo');
ÉèÖÃÊôÐÔ
È»ºó¿ÉÒÔ»ñµÃÒ»¸ödivµÄ¿Ø¼þÈ»ºódiv.appendChild(xxoo);
......

Javascript ÖжÔHTML±àÂëºÍ½âÂëµÄ·½·¨

String.prototype.HTMLEncode = function() {
var temp = document.createElement ("div");
(temp.textContent != null) ? (temp.textContent = this) : (temp.innerText = this);
var output = temp.innerHTML;
temp = null;
return output;
}
String.prototype.HTMLDecode = function() {
var temp = document.createElement("div");
temp.innerHTML = this;
var output = temp.innerText || temp.textContent;
temp = null;
return output;
}
ÉÏÃæ´úÂëת×Ô£ºhttp://www.jb51.net/article/18396.htm
±¾È˶ÔjavascriptµÄºËÐļ¼Êõ²»ÊÇÌ«ÊìϤ£¬ÔÙ¼ÓÉÏÏÖÔÚÓÖÔÚÓò»ÊìϤµÄEXTÀ´±àÐ´Ç°Ì¨Ò³Ãæ´úÂ룬ËùÒÔÖ»µÃÓÃ×µÄ·½·¨£¬²»À©Õ¹String×Ô¼ºÐ´´¦Àíº¯Êý£º
htmlDecode:function(str){
  var temp = document.createElement ("div");
  temp.innerHTML = str;
    var output = temp.innerText || temp.textContent;
    temp=null;
  return output;
 }
htmlEncode:function(str){
  var temp = document.createElement ("div");
  (temp.textContent ! ......

Javascript ÖжÔHTML±àÂëºÍ½âÂëµÄ·½·¨

String.prototype.HTMLEncode = function() {
var temp = document.createElement ("div");
(temp.textContent != null) ? (temp.textContent = this) : (temp.innerText = this);
var output = temp.innerHTML;
temp = null;
return output;
}
String.prototype.HTMLDecode = function() {
var temp = document.createElement("div");
temp.innerHTML = this;
var output = temp.innerText || temp.textContent;
temp = null;
return output;
}
ÉÏÃæ´úÂëת×Ô£ºhttp://www.jb51.net/article/18396.htm
±¾È˶ÔjavascriptµÄºËÐļ¼Êõ²»ÊÇÌ«ÊìϤ£¬ÔÙ¼ÓÉÏÏÖÔÚÓÖÔÚÓò»ÊìϤµÄEXTÀ´±àÐ´Ç°Ì¨Ò³Ãæ´úÂ룬ËùÒÔÖ»µÃÓÃ×µÄ·½·¨£¬²»À©Õ¹String×Ô¼ºÐ´´¦Àíº¯Êý£º
htmlDecode:function(str){
  var temp = document.createElement ("div");
  temp.innerHTML = str;
    var output = temp.innerText || temp.textContent;
    temp=null;
  return output;
 }
htmlEncode:function(str){
  var temp = document.createElement ("div");
  (temp.textContent ! ......

ReportViewer JavaScript API


JavaScript API
One of the new features we added to the ASP.Net Report Viewer in Visual Studio 2010 is a JavaScript API to allow you to interact with the viewer on client.  In reading many of the posts on the report controls forum, we found that many people struggle when implementing a custom toolbar or replacing portions of the toolbar functionality.  The new JavaScript API is intended to make it easier for you to provide the same functionality available through the built-in toolbar with a minimum amount of effort.
The JavaScript API is exposed through the client side ReportViewer object.  Specifically, it’s the Microsoft.Reporting.WebFormsClient.ReportViewer class.  An instance of this class is created on the client for each instance of the ReportViewer control on the page.
Referencing the client side viewer
The ReportViewer client side object inherits from Sys.UI.Control.  To obtain a reference to the client side viewer, use the $find method as fo ......

javascript¶ÔÏó»úÖÆ

                var currItem = listbox.options[currIndex];
                var prevItem = listbox.options[currIndex - 1];
                //alert(currItem);
                alert(prevItem.text);
                listbox.options[currIndex - 1].text = currItem.text;
                listbox.options[currIndex - 1].value = currItem.value;
                alert(prevItem.text);  //Á½´ÎalertÖµÊDz»Í¬µÄ
           & ......

JavaScript ¶ÔÏó×ÖÃæÁ¿

http://bei123wang.blog.163.com/blog/static/23175492009113022048840/
JavaScript ¶ÔÏó×ÖÃæÁ¿
javascript 2009-12-30 14:20:48 ÔĶÁ7 ÆÀÂÛ0 ×ֺţº´óÖÐС
JavaScript ¶ÔÏó×ÖÃæÁ¿
ÔÚ±à³ÌÓïÑÔÖУ¬×ÖÃæÁ¿ÊÇÒ»ÖÖ±íʾֵµÄ¼Ç·¨¡£ÀýÈ磬"Hello, World!" ÔÚÐí¶àÓïÑÔÖж¼±íʾһ¸ö×Ö·û´®×ÖÃæÁ¿£¨string literal £©£¬JavaScriptÒ²²»ÀýÍâ¡£ÒÔÏÂÒ²ÊÇJavaScript×ÖÃæÁ¿µÄÀý×Ó£¬Èç5¡¢true¡¢falseºÍnull£¬ËüÃÇ·Ö±ð±íʾһ¸öÕûÊý¡¢Á½¸ö²¼¶ûÖµºÍÒ»¸ö¿Õ¶ÔÏó¡£
JavaScript»¹Ö§³Ö¶ÔÏóºÍÊý×é×ÖÃæÁ¿£¬ÔÊÐíʹÓÃÒ»ÖÖ¼ò½à¶ø¿É¶ÁµÄ¼Ç·¨À´´´½¨Êý×éºÍ¶ÔÏ󡣿¼ÂÇÒÔÏÂÓï¾ä£¬ÆäÖд´½¨ÁËÒ»¸ö°üº¬Á½¸öÊôÐԵĶÔÏó£¨firstNameºÍlastName£©£º

»¹¿ÉÒÔʹÓÃÒ»Öֵȼ۵ķ½·¨´´½¨Í¬ÑùµÄ¶ÔÏó£º

ÒÔÉϸ³ÖµÓï¾äµÄÓÒ±ßÊÇÒ»¸ö¶ÔÏó×ÖÃæÁ¿£¨object literal£©¡£¶ÔÏó×ÖÃæÁ¿ÊÇÒ»¸öÃûÖµ¶ÔÁÐ±í£¬Ã¿¸öÃûÖµ¶ÔÖ®¼äÓöººÅ·Ö¸ô£¬²¢ÓÃÒ»¸ö´óÀ¨ºÅÀ¨Æð¡£¸÷ÃûÖµ¶Ô±íʾ¶ÔÏóµÄÒ»¸öÊôÐÔ£¬ÃûºÍÖµÕâÁ½²¿·ÖÖ®¼äÓÃÒ»¸öðºÅ·Ö¸ô¡£Òª´´½¨Ò»¸öÊý×飬¿ÉÒÔ´´½¨Array¶ÔÏóµÄÒ»¸öʵÀý£º

²»¹ýÊ×Ñ¡µÄ·½·¨ÊÇʹÓÃÒ»¸öÊý×é×ÖÃæÁ¿£¨array literal£©£¬ÕâÊÇÒ»¸öÓöººÅ·Ö¸ôµÄÖµÁÐ±í£¬ÓÃÖÐÀ¨ºÅÀ¨Æð£º

Ç°ÃæµÄÀý×ÓչʾÁ˶ÔÏóºÍÊý×é×ÖÃæÁ¿ÖпÉÒÔ°üº¬ÆäË ......
×ܼǼÊý:2244; ×ÜÒ³Êý:374; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [169] [170] [171] [172] 173 [174] [175] [176] [177] [178]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ