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

javascriptʵÏÖÕû¸öÒ³ÃæµÄ±³¾°ÑÕÉ«½¥±ä

Link:http://topic.csdn.net/u/20100317/15/687e21bc-40f3-4f0e-bc22-5f2a32ceb1a3.html?seed=1664090183&r=63989333#r_63989333
<HTML>
<head>
<title>sample</title>
<mce:script language="JavaScript"><!--
var c="FFFFFF";
window.onload=function (){
setInterval(setColor,100);
}
function setColor(){
document.body.style.background="#"+c;
c=parseInt("0x"+c);
if(c==0){
c="FFF";
}else{
c=(c-1).toString(16)
}
document.getElementById("txt1").value=c;
}
// --></mce:script>
</head>
<body>
<input type=text id=txt1>
</body>
</html>


Ïà¹ØÎĵµ£º

Javascript ÑÓ³Ùº¯Êý

function Pause(obj, pSecond) {
/*ÀûÓÃwindow.eventListϵͳ¶ÔÏóÀ´´«µÝTestÕâ¸öÈõ¶ÔÏó£¬ÕâÊÇÓÉÓÚÄãµÄº¯ÊýÓпÉÄÜÊÇ´ø²ÎÊýµÄ¡£
ÓÉÃæÏò¶ÔÏóµÄ˼Ï룬´«µÝ²ÎÊý¾¡Á¿²»Òª²ÉÓÃÈ«¾Ö±äÁ¿£¬ÒòΪÄãµÄ¶ÔÏóÓпÉÄÜÓÐ1¸öÒ²ÓпÉÄÜÓÐn¸ö£¬¶ø
ÓÐЩʱºòËù´´½¨¶ÔÏóµÄ¸öÊý²¢²»ÊÇÄãÊÂÏÈ¿ÉÒÔÖªµÀµÄ£¬ÄÇôҪ´´½¨È«¾Ö±äÁ¿µÄ¸öÊý×ÔÈ»ºÜÄÑÅжÏÁË ......

JavaScriptÑéÖ¤±íµ¥º¯Êý´óÈ«

 <script>
/*
ÓÃ;£ºÐ£ÑéipµØÖ·µÄ¸ñʽ
ÊäÈ룺strIP£ºipµØÖ·
·µ»Ø£ºÈç¹ûͨ¹ýÑéÖ¤·µ»Øtrue,·ñÔò·µ»Øfalse£»
*/
function isIP(strIP) {
if (isNull(strIP)) return false;
var re=/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/g //Æ¥ÅäIPµØÖ·µÄÕýÔò±í´ïʽ
if(re.test(strIP))
{
if( RegExp.$1 <256 &am ......

JavaScript ×Ö·û´®×ª»»Êý×Ö

À´Ô´£ºhttp://blog.csdn.net/yjq8116/archive/2008/11/04/3219993.aspx
·½·¨Ö÷ÒªÓÐÈýÖÖ
ת»»º¯Êý¡¢Ç¿ÖÆÀàÐÍת»»¡¢ÀûÓÃjs±äÁ¿ÈõÀàÐÍת»»¡£
1. ת»»º¯Êý
jsÌṩÁËparseInt()ºÍparseFloat()Á½¸öת»»º¯Êý¡£Ç°Õß°Ñֵת»»³ÉÕûÊý£¬ºóÕß°Ñֵת»»³É¸¡µãÊý¡£Ö»ÓжÔStringÀàÐ͵÷ÓÃÕâЩ·½·¨£¬ÕâÁ½¸öº¯Êý²ÅÄÜÕýÈ·ÔËÐУ»¶ÔÆäËûÀàÐÍ·µ» ......

Javascriptʱ¼ä²î¼ÆË㺯Êý

JavaScriptʱ¼ä²î¼ÆË㺯Êý
<mce:script language="javascript"><!--
Date.prototype.dateDiff = function(interval,objDate){
//Èô參數²»×ã»ò objDate ²»ÊÇÈÕÆÚÎï¼þ則»Ø傳 undefined
if(arguments.length<2||objDate.constructor!=Date) return undefined;
......

ieµÄjavascriptÓï¾äʧЧÐÞ¸´·½·¨

2007-01-20 01:01
ieµÄjavascriptʧЧÁË£¬²»ÊÇÉèÖõÄÎÊÌâ
ÕÛÌÚÁËÒ»ÍíÉÏÖÕÓÚÔÚˮľÉÏÕÒµ½´ð°¸ÁË,¾­¹ýÊÔÑé³É¹¦ÁË¡£¸ÐлÕâλhaning¡£Ò²Ï£Íû×ªÔØÖ®ºó£¬ÕâÆªÎÄÕÂÄܰïÖú¸ü¶àµÄÈË¡£
================================================
·¢ÐÅÈË: haning (°Øº®Óî), ÐÅÇø: Virus
±ê  Ìâ: KAV6.0ʹjavascriptÓï¾äʧЧÐÞ¸´·½·¨ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ