12æã«å¤§éªã§å±è¦§ä¼ã®éå¬ã決å®ãã¾ããï¼ ä»å¹´ã®å¬ã¯ãå¿æ¸©ã¾ãã¯ã³ããã«ãªã¬ã¼ãã³ã«éã³ã«ãã¦ãã ãã!
ãã¿ãã åååæ§ããã¿ãããä½ãã¾ãã 0ã3ã®å ´åããå¶ãã4ã5ã®å ´åãä¸åãã6ã9ã®å ´åã大åãã«ãã¾ãã HTML <div class="randomArea"> <h5>ä¹±æ°è¡¨ç¤º</h5> <p class="txt" id="randomTxt004"></p> <h6>ä»æ¥ã®éå¢</h5> <p class="unseiTxt" id="uranaiTxt"></p> <p class="startBtn" id="startBtn004"><a href="#">start</a></p> </div> HTMLãå°ãä»ãå ãã¾ãããã¨ã¯ActionScriptã¨ã»ã¼åãã§ãã function random004(){ ransu = Math.floor(Math.random()*10); $('randomTxt004').innerHTML = ransu;
ã¹ãã¼ããã©ã³ã³ã³ãã³ããå¶ä½ãã¦ããã¨ãä½ãã¨ã¿ããã¤ãã³ããå¿ è¦ã¨ãªã£ã¦ãã¾ãã ä¸é¨ã®Android端æ«ã§ãtouchmoveãã¤ãã³ããä¸æãåå¾ã§ããªãããªãã¦ãã¨ãå¤ã ããã¾ãã ãããªæç¨ã®çºã«ã¹ãã¼ããã©ã³ ã¿ããã¤ãã³ã確èªãã¼ã¸ãä½æãã¾ããã ãããªå¤§é¸ãããã®ã§ã¯ããã¾ããããä¸éã確èªåºæ¥ãããªã¨æã£ã¦ããã¾ãã ãã¢ãã¼ã¸ http://webcyou.com/demo/js/touch/ ç°è²é¨åãã¿ããããã¨ããããã®æ å ±ãåå¾åºæ¥ã¾ãã ä¸æ®µã®pageYãY座æ¨ã¨ãªããå·¦ãã startï¼ã¿ãããå§ããYåº§æ¨ moveï¼ç§»åãã¦ããæä¸ã®Yåº§æ¨ endï¼ã¿ãããçµäºããYåº§æ¨ ä¸æ®µã®pageXãY座æ¨åæ§ startï¼ã¿ãããå§ããXåº§æ¨ moveï¼ç§»åãã¦ããæä¸ã®Xåº§æ¨ endï¼ã¿ãããçµäºããXåº§æ¨ ã¨ãªã£ã¦ãã¾ãã ãã®ä¸ã distanceXï¼X
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}