Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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¼Ì³ÐÖ®¶ÔÏóð³ä·¨

ÀýÈ磺ÓÐÈý¸öÀàclassX,classY,classZ
classZ·Ö±ð¼Ì³ÐclassXºÍclassY
ÓÚÊǾÍÓÐÏÂÃæµÄд·¨£º
function ClassZ(){
this.newMethod=classX;
this.newMethod();
delete this.newMethod;
this.newMethod=classY;
this.newMethod();
delete this.newMethod;
}
ÕâÖÖд·¨´æÔÚÒ»¸ö±×¶Ë.¡£Èç¹ûclassXºÍclassYÓоßÓÐͬÃûµÄÊô ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ