Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

moving a Span around a document

 
diana_brit
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am using document.onmousemove to move a <span> element inside the document.also inside the span i am using a close icon to hide the display of the <span>

how can i focus the <span> element, i am not able to focus the span object it is moving along with my mouse, any ways to focus the <span> element?

other any other methods to move a span in a document and focusing the span element by the mouse.
Thanks in advance
diana
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
diana_britney,

Welcome to JavaRanch!

We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.

Perhaps you could simply change the underscore to a space.

Thanks Pardner! Hope to see you 'round the Ranch!
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you positioning the Span object? - I need to do something similar but I'm just starting.
Bill
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Focus the span element?

That is what I do not understand since a span can not be focused like a text box.

Eric
 
diana_brit
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys i fixed the issue, used a condition to move the mouse over the document and not to the span object.It works

Thanks
diana
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic