è¤æ°ã«åå²ããããã°ã¤ã³IDå ¥åãã»ã»ã»
ã¿ã¤ã ãºã«ã¼ãã©ã¹ã®ãã°ã¤ã³ãããã©ã¦ã¶ãå¦ç¿ããªãã Opera(Presto)ã ã¨è¤æ°ã«ããããIDãå¦ç¿ãã¦ãã®ã«ãOpera(blink)ã«ãªã£ã¦ããå¦ç¿ããªãã®ã§ãããé¢åã ããæ¡å¼µæ©è½ã§å¯¾å¿ãããã¨ããã
ãã©ã¼ã ã®å¤ãJavaScriptã§éä¿¡ãããã¨ãã¦ããã£ãã®ã§ã¡ã¢ã
ã¹ã¯ãªã¼ã³ã·ã§ãã 2014-12-05 14.38.08
form.submit ã§ãã°ã¤ã³å¤±æãã
HTTPã®ãªã¯ã¨ã¹ãããããè¦ã¦ãã㨠input ã«åå¨ããªãå¤ãéä¿¡ãã¦ãã模æ§ã
tpLoginForm:doLoginForTp.x:132 tpLoginForm:doLoginForTp.y:14
ã©ãããåºã¦ããããã®å¤ã¯ãã¨èª¿ã¹ã¦ã¦è¦ã¤ããã
input type ="image" ã¯ã¯ãªãã¯ä½ç½®ãéä¿¡ãã模æ§
ç¥ããªãã£ããX,Y座æ¨ãéä¿¡ãããã§ãããtype=imageãªãã¦æ» å¤ã«ä½¿ããªããããªãã
<form> <input type="image" src="foo.jpg"/> </form>
ãã®å ´åãã¯ãªãã¯ããä½ç½®ãéä¿¡ããã¾ãã
ã¡ãªã¿ã«ãEnterãã¼ãæ¼ãã¦éä¿¡ããæ㯠(x,y) = (0,0)ãéä¿¡ããã¾ãã
ã¡ãªã¿ã«ãform.submit()ãããã¨ãã¯éä¿¡ããã¾ãããï¼âæãï¼
ã¡ãªã¿ã«ãinput=textãªã©ä»ã®è¦ç´ ä¸ã§Enteréä¿¡ããæãéä¿¡ããã¾ããï¼âæãï¼
XY ãéä¿¡ãããªãæ¹æ³
HTMLãä½ææã«X,Yãéä¿¡ãããªãæ¹æ³ã¯ãbuttonè¦ç´ ã使ããã¨ã§ã
<button><img src="foo.jpg"/></button>
ã¾ãã¯ãtype=submit ã®èæ¯ç»åã使ãã¹ãã§ããããã
<input type=submit>
input[type=submit]{ background-image:url("submit_btn.png"); background-repeat:no-repeat; background-color:#000000; border:none; width:160px; height:90px; cursor: pointer; }
ã¾ããonclickã§form.submit()ããã¦ãããã¨ã¯æãã¾ããã©ã»ã»ã»é¢åå¢ãã
ä½ã®ããã« type=image ã¯åå¨ããã®ã
éä¿¡ã»ãã£ã³ã»ã«ãªã©ãè¤æ°ã®ãã¿ã³ç»åãã¾ã¨ããããã ã¨æãã¾ã
<form> <input type=submit name="sort" value="ä¾¡æ ¼é ã§ä¸¦ã¹ã"> <input type=submit name="sort" value="ç»é²æ¥ã§ä¸¦ã¹ã"> </form>
ãªã©ã¨ãã¦ãè¤æ°å¾©æ°ã®éä¿¡ãã¿ã³ãä½ããã®ã¯ããã¾ãã«ãæåã
ããªããã¨ããç»åã§ããããï¼æã®ç»åã§ãããã¨ããã¨ãã«å¿ è¦ãªããããªãã§ããã
ã¯ãªãã¯ä½ç½®ãããç»åã®ä½å¦ãæ¼ããããæ¤åºãã¦ã»ã»ã»ã©ã£ã¡ã®ãã¿ã³ãæ¼ãããã調ã¹ããã¨ãï¼
ä½ã®ããã«åå¨ããã®ã§ããããããåç¥ã§ãããæãã¦ä¸ããï¼
captcha ã«ã使ãã
ããã£ã¦Captchaã«ä½¿ãã¾ãã
X ãã¯ãªãã¯ãã¦ãã ãã
ã¨ãããã°ãããã ãããè¶ ç°¡åã«Captchaå®è£ ã§ãããã§ããã
ç»åèå¥OpenCVã¨çµã¿åããã¦
é¡èªèã®åè£ãããã¤ãåºãã¦ããã¦æ£è§£ãã¯ãªãã¯ããããã°ã©ã ããããã£ã¨ä½ãããã§ä¾¿å©ã ãªããã
éã«è¨ãã°ããããæ¤åºã«ä½¿ãããã§ãããã
ã¯ãªãã¯ä½ç½®ãæ¤åºãã¦éä¿¡ãã¦ããã®å¤ãã·ãã«ãªãã§ãã¯ãã¦ããã°ããããæ¤åºã«ä½¿ãããã§ä¾¿å©ã
ã°ãã¿ããã«ãç»é²ãã¦ããã¦ã¼ã¶ã¼ããããã§ãã°ã¤ã³ãã¦ããã¦ã¼ã¶ã¼ã®å¯¾çã«ä¸å½¹è²·ãããã
Imageã§X,Yãã§ãã¯ããã¦ãã®ããããããªãããJavaScriptã§å¶å¾¡ãã¦ããã°ã¤ã³æåããªãã®ã§ã
æ¬ä¼¼çã«ãã¦ã¹ã¯ãªãã¯ãéä¿¡ããæ¹æ³
ããã対çã«type=imageã使ããã¦ããããã§ã大ä¸å¤«ãªããã«å¯¾çãèãã¦ããã
a = document.querySelector("input[type=image]") var mouse_event = document.createEvent("MouseEvents"); mouse_event.initMouseEvent("click", true, true, window , 0, 0, 0, $(a).position().left,$(a).position().top , false, false, false, false, 0, null); ) a.dispatchEvent(mouse_event)
jQuery.postionãå ¥ã£ã¦ãã®ã¯ãåçã®DOM APIãåå¨ããªãããã»ã»ã»ã»ããã
ãã ããã®å ´åã§ã document ã®å·¦ä¸ããã®è·é¢ãåºãã®ãjQuery.position() 以å¤ã§ãããã¨ããã¨ãé¢åãªãã§ããããã
initMouseEvent ã¯éã
ããããã¿ã¤ã ãºã«ã¼ãã©ã¹ã¯ãX,Yãã§ãã¯ããªãã§ãã£ã¦ãã®ï¼
ããããã¿ã¤ã ãºã«ã¼ãã©ã¹ã®Seasar2ã¯ãªãã§ãX,Yãã§ãã¯ãªãã¦ãã£ã¦ããã§ããããã
X,Y = (-1, -1 )ã¨ãéä¿¡ãããã¨ã©ã¼ã«ãªãã
ãã¨ãã£ã¦ãjQuery.positionãoffsetã§ç»åã®ä½ç½®ãåå¾ãã¦ãããã§ããªããã
ãªãã ãããããã°ã©ãã®éãæãã
追è¨
ã¯ãªãã«ãã«ã»ãããã¯åãããã§ããã HTMLタグ/イメージタグ/画像内に複数リンクを設定する - TAG index Webサイト
ã§ããªããform.submit() ã§X,Yãéãå¿ è¦ãããã®ãã¨ãããã <map onclick="my_form.submit()"> 使ãã°åºæ¥ããããformã®inputã§ã³ã¬ãä»æ§ã«çãè¾¼ã¾ããã®ã¯ãã£ã¨çç±ããã£ããã ãããã©ãã©ãããå©ç¨æ³å®ãèããã®ã ãããããã
追è¨
è¤æ°å¾©æ°ã®èª¤åç´ãã¾ãã