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

javascript ¸¡¶¯´°¿Ú¹ö¶¯.Í϶¯

<script type="text/javascript">
 function close(){
  QQkefu.style.display="none";
  return true;
 }
  function msgBox()
 {
  this.container = "aaaa";
  this.titleheadArea = "titlehead";
  this.width = 154;
  this.height = 105;
  this.smallHeight = 20;
  this.smallId = "small";
  this.area = ( document.compatMode.toLowerCase()=="css1compat" ) ? document.documentElement : document.body;
  this.space = 5;
  this.timer;
  this.timeOut = 150;
  this.smalled = false;
  window.msgBoxListener = this;
  this.$(this.smallId).onclick= function(){msgBoxListener.toSmall()};
 }
 msgBox.prototype.flow = function()
 {
  this.$(this.container).style.position = "absolute";
  this.$(this.container).style.zIndex = "1000";
  if(this.smalled)
  {
   this.$(this.container).style.top = this.area.scrollTop + this.area.clientHeight - this.smallHeight - this.space + "px";
  }else{
   this.$(this.container).style.top = this.area.scrollTop + this.area.clientHeight - this.height - this.space + "px";
  }
   this.$(this.container).style.left = this.area.scrollLeft + this.area.clientWidth - this.width - this.space + "px";
  }
  msgBox.prototype.toSmall = function()
  {
   if(this.smalled)
   {
    this.$(this.container).style.marginTop = -this.height + "px";
    this.$(this.container).style.height = this.height + "px";
     this.smalled = false;
    this.flow();
    this.$(this.container).style.marginTop = "0px";
   }else{
    th


Ïà¹ØÎĵµ£º

asp.net×¢²áJavascriptµÄ·½·¨

1¡¢IsStartupScriptRegistered£º¶ÔÏóÊÇ·ñ×¢²áÁËÆôÓýű¾¡£
2¡¢IsClientScriptBlockRegistered£º¶ÔÏóÊÇ·ñ×¢²áÁË¿Í»§¶Ë½Å±¾¿é¡£
3¡¢IsClientScriptIncludeRegistered£º¶ÔÏóÊÇ·ñ×¢²áÁË¿Í»§¶Ë½Å±¾°üº¬¡£
µÚÒ»¸öÀý×Ó£º
string info = "<script>alert('ÄãºÃÂð£¿');</script>";
//ÅжÏʼþÊÇ·ñ±»×¢²á£¬Ð´ÈëÇ ......

Javascript °´¼üʼþ


AS("#...").keypress(function(event) {
        if (navigator.userAgent.toLowerCase().indexOf("mozilla") >= 0) {
         var $key = event.charCode ;
        } else {
         var $key = event. ......

JavaScript ÖеÄ==ºÍ===

ÔÚjsÖУ¬Éϴο´µ½Ò»¶Î´úÂë===ÅжÏʹÓÃ3¸ö=ºÅ
ÎÒÄÉÃÆÁË Ò»ÔËÐÐ Õý³£µÄ¡£
ÓÚÊÇν֮Ի£º“ÉñÂë”
ºó²éÔĵÃÖª
==Ö»ÊÇÅжÏÖµÊÇ·ñÏàµÈ
===ÅжÏÖµºÍÀàÐÍÊÇ·ñ¶¼ÏàµÈ
±ÈÈç
var key="222";
var key2=222;
alert(key==key2)//ture
alert(key===key2)//false
²»ÖªµÀÆäËûµÄÈõÀàÐÍÊÇ·ñ¶¼ÊÇÒ»Ñù¡£ ......

C#´úÂëÓëjavaScriptº¯ÊýµÄÏ໥µ÷ÓÃ

C#´úÂëÓëjavaScriptº¯ÊýµÄÏ໥µ÷ÓÃ
ÎÊ£º
1.ÈçºÎÔÚJavaScript·ÃÎÊC#º¯Êý?
2.ÈçºÎÔÚJavaScript·ÃÎÊC#±äÁ¿?
3.ÈçºÎÔÚC#ÖзÃÎÊJavaScriptµÄÒÑÓбäÁ¿?
4.ÈçºÎÔÚC#ÖзÃÎÊJavaScriptº¯Êý?
  ÎÊÌâ1´ð°¸ÈçÏ£º
javaScriptº¯ÊýÖÐÖ´ÐÐC#´úÂëÖеĺ¯Êý£º
·½·¨Ò»£º1¡¢Ê×ÏȽ¨Á¢Ò»¸ö°´ ......

javascript´ò¿ªÑ¡Ôñ¶Ô»°¿ò/±£´æ¶Ô»°¿ò

¡¾ÒýÓõØÖ·¡¿http://hi.baidu.com/rayshow/blog/item/9102258daac46810b31bbad3.html
ÔÚä¯ÀÀÆ÷ÖÐËäÈ»´ò¿ªÑ¡Ôñ¶Ô»°¿òºÍ±£´æÎļþ¶Ô»°¿òµÄ¹¦Äܲ¢²»³£Ê¹Ó㬵«ÓÐʱÈÔÈ»»áÓõÃÉÏ£¬±ÈÈçÒ»¸öweb°æµÄ²¥·ÅÆ÷£¬ÈÃÓû§Ñ¡Ôñ±¾µØµÄÊÓƵ»òÒôƵÎļþµÈ¡£¶ÔÓÚ´ò¿ªÑ¡ÔñÎļþ¶Ô»°¿òÀ´Ëµ£¬Ïà¶Ô±È½Ï¼òµ¥£¬Ö»ÐèÒªÔÚÒ³ÃæÄÚ·ÅÒ»¸öfile±êÇ©£¬¿ÉÒÔ½«Æä ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ