It's not a secret anymore!*
The moose likes HTML, CSS and JavaScript and the fly likes moving a Span around a document Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "moving a Span around a document" Watch "moving a Span around a document" New topic
Author

moving a Span around a document

diana_brit
Greenhorn

Joined: Jun 19, 2004
Posts: 18
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

Joined: Dec 10, 2001
Posts: 7023
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!


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
How are you positioning the Span object? - I need to do something similar but I'm just starting.
Bill
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Jun 19, 2004
Posts: 18
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: moving a Span around a document
 
Similar Threads
Enter Key event working fine in IE but not FireFox.
Transparent PNGs as backgrounds in IE
Using CSS Class for Mouse Rollover text
Question about html:image tag
IFrame Editor