On Apr 21, 7:16 am, "scripts.contact" <scripts.cont...@gmail.com>
wrote:
> On Apr 21, 2:59 am, Mel <MelHer...@gmail.com> wrote:
>
> > Is there a way of displaying the id of the element under the pointer ?
>
> > Please dont ask why I need it, but I do, i found tools that needs
> > installation that provide the same funcitonality. However, I would
> > like to turn on this feature using a flag in my url. Something like
> > debug=1.
>
> > thanks for your help
>
> try-
>
> document.onmouseover=function(Event){
> Event=(Event||event)
> Eleme=Event.srcElement||Event.target
> if(Eleme){
> var idS=document.getElementById("showID")
> idS.innerHTML="ID: "+(Eleme.id||"not found")
> idS.style.display=''
> idS.style.top= Event.clientY+10
> idS.style.left=Event.clientX+10
> }
> }
> document.onmouseout=function(){
> document.getElementById("showID").style.display='n one'
>
>
>
> }- Hide quoted text -
>
> - Show quoted text -
Thats a nice piece of code. thanks a whole bunch.
I tried it with my app and i keep getting "Object Required" error
message.
Should I be making changes to your code or should it work the way it
is ?
i truely appreciate your help
|