aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Displaying a DIV wherever the mouse location is Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Displaying a DIV wherever the mouse location is" Watch "Displaying a DIV wherever the mouse location is" New topic
Author

Displaying a DIV wherever the mouse location is

Santosh Ramachandrula
Ranch Hand

Joined: Apr 04, 2004
Posts: 252
Hi, I am trying to do the above and I did some google but they seem to be tied to a mouse EVENT.

I want to be able to display the DIV wherever the mouse is without a Mouse Event. Can I do this? If yes how else any suggestions?

Thanks,
Santosh
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61417
    
  67

No. Without an event, there is no way to run any code.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Santosh Ramachandrula
Ranch Hand

Joined: Apr 04, 2004
Posts: 252
Ok.

I have a page where the user has

1. Scrolled down.
2. Performed an action.
3. Now I want to show a DIV containing Success/failure message at the center of the page relative to the current location.

How would I accomplish Step 3?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61417
    
  67

In response to what? A mouse click?
Santosh Ramachandrula
Ranch Hand

Joined: Apr 04, 2004
Posts: 252
Thanks Bear, I figured it out and Yes, in response to mouse click.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
in case this shows up in a search, basic idea



Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying a DIV wherever the mouse location is