javascript ¿çä¯ÀÀÆ÷µÄʼþϵͳ4
ÉÏ´Î˵µ½ÎÒÃÇÔÚÎÞ¾ú»·¾³ÖÐÉè¼ÆÁËÒ»¸öʼþ´úÀíº¯Êý£¬µ«ÐÔÄÜÊǸöÎÊÌ⣬½â¾öËüÎÒÃÇÐèÒª»º´æ½Úµã¼¯ºÏ£¬·¢Ïֽڵ㼯ºÏ²»×ãÒÔÓ¦¶ÔÐÂÇé¿öʱ£¬ÔÙÌæ»»Õâ¸ö½Úµã¼¯ºÏ£¬ÖØпªÊ¼Æ¥Åä¡£ÏÂÃæÊÇеķ½°¸£º
var delegate = function(selector,type,callback){
var els = $(selector);
addEvent(document,type,function(e){
var flag = true;
var node = e.srcElement || e.target;
for(var i=0,el;el = els[i++];){
if(node === el){
flag = false;
return callback.call(node,e);
}
}
if(flag){
els = $(selector);
for(var i=0,el;el = els[i++];){
if(node === el){
return callback.call(node,e);
}
}
}
},true);
}
<!doctype html>
<html lang="zh-ch" id="html">
<head>
<meta charset="utf-8" />
<meta content="IE=8" http-equiv="X-UA-Compatible"/>
<title>ʼþ´úÀí by ˾ͽÕýÃÀ</title>
<script type="text/javascript">
window.onload = function(){
var addEvent = function(el,type,callback,data){
if ( el.addEventListener ) {//Èç×Ô¶¨Òå¶ÔÏó¾Í°ó¶¨»Øµ÷º¯ÊýÁË
el.addEventListener( type, callback, !!data );
} else if ( el.attachEvent ) {
el.attachEvent( "on" + type, function(){
return callback.call(el,window.event)
});
}
}
var delegate = function(selector,type,callback){
var els = $(selector);
addEvent(document,type,function(e){
var flag = true;
var node = e.srcElement || e.target;
for(var i=0,el;el = els[i++];){
if(node === el){
flag = false;
return callback.call(node,e);
}
}
if(flag){
els = $(select
Ïà¹ØÎĵµ£º
×¢²áºÜ³¤Ê±¼äºÅÁË£¬¸Õ¿ªÍ¨²©¿Í£¬ÄóöÒ»¸ö×Ô¼ºÐ´µÄjavascriptÓÒ¼ü²Ëµ¥£¬¼æÈÝIE£¬firefoxä¯ÀÀÆ÷
ÕâÊÇcss´úÂë
body{
font-size:12px;
}
.contextMenu{
filter:alpha(opacity=80);
opacity:0.8;
border:1px #0033FF solid;
background-color:#0099CC;
cursor:pointer;
width:120px;
position:absolute;
top: ......
×Ô¼ºÐ´µÄÒ»¸ö¼òÒ×¼ÆʱÆ÷£¬ÄܼÇËã´úÂëµÄÖ´ÐÐʱ¼ä£¬»¹¿ÉÒÔÄÃÀ´²âÊÔ´úÂëµÄÖ´ÐÐЧÂÊ¡£
function Counter(){
this.start();
}
Counter.prototype.getTime = function(){
var time = new Date();
return time.getSeconds()*1000+time.getMilliseconds();
}
Counter.prototype.start = function(){
this. ......
JavaScript ¿ò¼Ü±È½Ï
ÏÔÖøÔöÇ¿ JavaScript ¿ª·¢µÄ¿ò¼Ü¸ÅÀÀ
Joe Lennon, Èí¼þ¿ª·¢ÈËÔ±, ×ÔÓÉÖ°ÒµÕß
¼ò½é£º ÏÖ´ú Web Õ¾µãºÍ Web Ó¦ÓóÌÐòÇãÏòÓÚÒÀÀµ´óÁ¿¿Í»§¶Ë JavaScript À´Ìṩ·á¸»µÄ½»»¥¹¦ÄÜ£¬ÓÈÆäÊÇÒì²½ HTTP ÇëÇóµÄ³öÏÖʹµÃ²»Ë¢ÐÂÒ³Ãæ¾Í¿ÉÒÔ´Ó·þÎñÆ÷¶Ë½Å±¾»òÊý¾Ý¿âϵͳ·µ»ØÊý¾Ý»òÏìÓ¦¡£ÔÚ±¾ÎÄÖУ¬Äú½«Á˽âÈçº ......
<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@ËÎÌå" ......
ÏÖÔÚÍøÒ³ÉϵÄ×ÖÌåÊÇÔ½À´Ô½Ð¡£¬±ð˵ÊÇÊÓÁ¦Ç·¼ÑÕß¾ÍÊǺÃÑÛ¾¦¿´¾ÃÁËÒ²ÌÛµÄÄÑÊÜ£¬ÓÚÊDZàдÁËÏÂÃæÕâ¶ÎС½Å±¾£¬½¨ÒéÍøÒ³ÖÆ×÷ÈËÄܹ»¼Óµ½ÍøÒ³´úÂëµÄ< head>ÖУ¬ÒÔ·½±ãÈõÊÓÈËȺ·Å´óä¯ÀÀ(½öÊÊÓÃÓÚIEä¯ÀÀÆ÷)£¡
¡¡¡¡´úÂëÈçÏ£º
¡¡¡¡< script language="javascript">
¡¡¡¡var i=0;
¡¡¡¡document.onkeydown = zoom;
¡¡¡¡ ......