פורסם 2007 במרץ 2718 שנים תרשמו את זה בשורת הכתובות (לא משנה באיזה אתר ) ואנטר/GO javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName(%22img%22); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+%22px%22; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+%22px%22}R++}setInterval('A()',5); void(0) או בלי תג של קוד כדי שיהיה נוח להעתיק : javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName(%22img%22); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+%22px%22; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+%22px%22}R++}setInterval('A()',5); void(0)
פורסם 2007 במרץ 2718 שנים תיקון: נחמד!!!... אם תעשו את זה כמה פעמים על אותו דף (אתר) התמונות/לחצנים יעופו יותר מהר.
פורסם 2007 במרץ 2718 שנים לא עובד לי :'(אתה אמור לכתוב את זה באתר - לא בדף הבית דוגמא: תכתוב את הכתובת הזו כאשר אתה נמצא בדיון הזה.
פורסם 2007 במרץ 2718 שנים חחח גדול , בהתחלה זז רק הסקרול האופקי , אח"כ כל התמונות התחילו לרחף :lol: מאיפה הקרצת את זה?
פורסם 2007 במרץ 2718 שנים יש מצב לקצר את הקוד הזה איכשהו כדי לשים לחברים במחשב? זה לא יהיה טוב אם אני יתחיל להעתיק את זה מפה ופתאום איזה חבר יתפוס אותי
פורסם 2007 במרץ 2718 שנים הסבר (לא הכי פרטני) למי שמעוניין. בגדול אפשרות לעשות כל מני שטויות.%22 (in the original source) = "javascript:R=0; <-- initial circle parametersx1=.1;y1=.05;x2=.25;y2=.24;x3=1.6;y3=.24;x4=300;y4=200;x5=300;y5=200;DI=document.getElementsByTagName("img"); <-- get all images in the pageDIL=DI.length; <-- the number of images in the pagefunction A() { <-- an function definition named A for(i=0; i-DIL; i++) { <-- An loop passing all images indexs in page DIS=DI[ i ].style; <-- get the i'th image CSS style properties DIS.position='absolute'; <-- set the image position to be absoloutly relative to the page DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px"; <-- set the X coordinate of the image (according to an circle pattern) DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px" <-- set the Y coordinate of the image (according to an circle pattern) } R++ <-- Increase R every call to A so the images will rotate every time}setInterval('A()',5); <-- call function A every 5 miliseconds
ארכיון
דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.