spy select (bookmarklet)
/Html JavaSript/Select/spy select (bookmarklet).js
javascript:(function(){function spySelect(){var pt,sel=document.getElementsByTagName("select");for(pt=sel.length-1;pt>=0;--pt){sel[pt].onmouseover=function(event){var XY=getMouseXY(event);popBox(XY.shift()+10,XY.shift()-5,this.name+" = "+this.options[this.selectedIndex].value)};sel[pt].onmouseout=function(){document.getElementById("spyTooltip").style.display='none'}}var div=document.createElement("div");div.id="spyTooltip";div.style.backgroundColor="#ff6";div.style.border="1px solid gray";div.style.position="absolute";div.style.display="none";div.style.fontSize="0.8em";div.style.padding="0 3px";document.body.appendChild(div)}function getMouseXY(e){if(!e)e=window.event;if(!e.pageX){e.pageX=e.clientX+document.body.scrollLeft;e.pageY=e.clientY+document.body.scrollTop}return[e.pageX,e.pageY]}function popBox(posx,posy,boxInnerHTML){var ttp=document.getElementById("spyTooltip");ttp.style.left=posx+"px";ttp.style.top=posy+"px";ttp.innerHTML=boxInnerHTML;ttp.style.display=""}spySelect()})()