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

ÓÃJavaScriptʵÏÖÎÄ×ÖÎ§ÈÆÊó±êת¶¯

 if (document.all)
{
yourLogo = "»¶Ó­½øÈëÏÊ»¨¹¤·»Íø£¡";           <!--´ýÐýתµÄÎÄ×Ö-->
logoFont = "Arial";                                          <!--ÎÄ×ÖµÄ×ÖÌå-->
logoColor = "blue";                                        <!--ÎÄ×ÖµÄÑÕÉ«-->
yourLogo = yourLogo.split('');             <!--½«ÐýתµÄ×Ö·û´®·Ö³Éµ¥¸öµÄ×Ö·û-->
L = yourLogo.length;                        <!--»ñµÃ×Ö·û´®µÄ³¤¶È-->
TrigSplit = 360 / L;                        <!--ÉèÖÃÿ´ÎÐýתµÄ½Ç¶È-->
Sz = new Array()                             <!--ÉùÃ÷Ò»¸öÊý×é-->
logoWidth = 100;                             <!--¶¨Òå¿í¶È-->
logoHeight = -30;                            <!--¶¨Òå¸ß¶È-->
ypos = 0;
xpos = 0;
step = 0.03;                


Ïà¹ØÎĵµ£º

jspÀïÃæÇ¶ÈëJavaScript

 Å¬Á¦ÁËÒ»ÌìÔÙ¼ÓÒ»Ì죬¾Íд¸ö½Å±¾»¹ÊDz»ÐС£Ôõô°ì¡£
ÏÂÃæµÄ´úÂëÓдíµÄ£¬Ö´Ðв»ÁË¡£ÔÝʱ»¹Ã»Óз¢ÏÖMyEclipseÀïÃæÈçºÎÀ´µ¥²½µ÷ÊÔ£¬¾ÍÏñÔÚvs2005ÀïÃæ¿ÉÒÔ°´×¡F10À´µ÷ÊÔ£¬¿´³ö×Ô¼ºµÄÄǸöÓï¾äд´íÁË£¬¶øÔÚÀïÖ»Äܹ»×Ô¼º¼ì²é£¬²éÁ˶àÉÙ±éÁËÒ²»¹ÊÇûÓÐÄܹ»·¢ÏÖÓÐʲô´íµÄ¡£´úÂëժ¼ÈçÏ£º
<script language="javaScript ......

JavaScript Google IG Drag Demo

 Ð§¹ûÑÝʾµØÖ·£ºhttp://www.phzzy.org/code/drag/google_drag.html
ÍÏ×§Ô­Àí£º
¹ØÓÚÍÏ×§µÄ»ù´¡£¬¿ÉÒԲο¼ÕâÆªÎÄÕ£¬½²µÃ·Ç³£²»´í¡£
http://www.sohotx.com/mzk/index.php/1007/ArticleContent/298.html
ÆäʵԭÀíºÜ¼òµ¥£¬¾ÍÊǰѰó¶¨Èý¸öʼþ£ºonmousedown , onmousemove , onmouseup¡£
ÔÚÊó±êµãÏÂʱ(onmousedown)° ......

javascriptÊ®½øÖÆ×ª¶þ½øÖÆ£¬¶þ½øÖÆ×ªÊ®½øÖÆ


alert(parseInt("101101", 2))

ÔËÐдúÂë

function toBin(intNum) {
var answer = "";
if(/\d+/.test(intNum)) {
while(intNum != 0) {
answer = Math.abs(intNum%2)+answer;
intNum = parseInt(intNum/2);
}
......

javascript²Ù×÷cookie

 //set cookie

function setcookie(name,value){
var Days = 30;
var exp = new Date();
exp.setTime(exp.getTime() + Days*24*60*60*1000);
document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
}

function getcookie(name) ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ