ã°ãªããã¬ã¤ã¢ã¦ãããã¯ãã¼ã¯ã¬ããã¨ä¸ç·ã«ä½¿ãã¨ä¾¿å©ãããããªãããã¯ãã¼ã¯ã¬ããä½ãã¾ããã
ã¯ã¦ãã§äººæ°ã«ãªã£ã¦ããグリッドレイアウトブックマークレットãè¦ã¦æãã¤ããã®ã§ä½ã£ã¦è¦ã¾ããã
ã¹ã¯ãªã¼ã³ã·ã§ãã
縦横ã®ã¬ã¤ãã©ã¤ã³ã表示ãã¾ãã
Firefoxç¨ã®ã¯åº§æ¨ã表示ãã¾ããIEã¯æåæ°å¶é(512æå)ã«å¼ã£ãããã®ã§å²æãã¾ããã
Firefoxç¨
javascript:(function(){function S(e){e=b.appendChild(d.createElement("div"));with(e.style){margin=0;position="absolute";top=left=0;border="0px dotted red";}return e}var d=document,b=d.body,v=S(),h=S(),c=b.appendChild(d.createElement("span"));with(v.style){borderLeftWidth=1;height=b.scrollHeight}with(h.style){borderTopWidth=1;width=b.scrollWidth}c.style.position="absolute";b.addEventListener("mousemove",function(e){with(c.style){v.style.left=e.pageX+1;left=e.pageX+20;h.style.top=top=e.pageY+1;c.innerHTML=left+","+top}},true)})()
IEç¨
javascript:(function(){function S(e){e=b.appendChild(d.createElement("div"));with(e.style){margin=0;position="absolute";top=left=0;border="0px dotted blue";}return e}var d=document,b=d.body,v=S(),h=S();with(v.style){borderLeftWidth=1;height=b.scrollHeight}with(h.style){borderTopWidth=1;width=b.scrollWidth}b.attachEvent("onmousemove",function(){v.style.left=b.scrollLeft+event.clientX+1;h.style.top=b.scrollTop+event.clientY+1;})})()
ãã¼ã¨
ãã ã®æãä»ãã§ãã®ã§ã使ãéã¨ãã»ã¼ãªãã¨æãã¾ãã
ããã§ãIEã®512æåã«åããã®ã¯çµæ§ããã©ãã§ãã"+px"ã¨ãçãã®ãæåæ°æ¸ããã®ã«å°å³ã«æå¹ã ã£ãããå¤é¨ã¹ã¯ãªããã«ãã¡ããã°é¢ä¿ãªããã§ãããã
追è¨
IEç¨ããã®ãã¼ã¸ã¨ãã§bodyç´ä¸ã®è¦ç´ 以å¤ã§ã¡ããã¨åããªãã§ãã*1ã
Firefoxçã® event.pageX 㯠IE ã®å ´åãdocument.body.scrollLeft + event.x ãããªãã¦ã document.body.scrollLeft + event.clinetX ã§ãããä¿®æ£ã
æ´ã«è¿½è¨(3/10)
IEã«ããã¯ã»ã«æ°è¡¨ç¤ºãã¤ãã¦ã¿ãããããã510æåã
javascript:(function(){function S(e){e=b.appendChild(d.createElement("div"));with(e.style){margin=0;position="absolute";top=left=0;border="0px dotted blue";textAlign="left";}return e}var d=document,b=d.body,v=S(),h=S();with(v.style){borderLeftWidth=1;height="100%"}with(h.style){borderTopWidth=1;width="100%"}b.attachEvent("onmousemove",function(){v.style.top=b.scrollTop;h.style.left=b.scrollLeft;v.innerHTML=v.style.left=b.scrollLeft+event.clientX+1;h.innerHTML=h.style.top=b.scrollTop+event.clientY+1;})})()