This is a discussion on "popup div onmouseover" within the JavaScript Forum section. This forum, and the thread "popup div onmouseover are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
popup div onmouseover
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
popup div onmouseover
hi
I'd like to have a <div> block onmouseover, and the block should appear next to the mouse cursor... Ideally, the background should fade a little. roughly, I need the behavior of the links here: http://www.javascriptkit.com/javatutors/dom2.shtml Can you suggest possible implementations? Thanks! Last edited by pesho318i; Dec 28th, 2007 at 10:12. |
|
|
|
||||
|
Re: popup div onmouseover
Okay, this is reasonably simple... give the element you want to have the div appear next to the id of id="trigger"... or something else and replace trigger below..
Then somewhere in your document -- just under the body tag add a div styled how you wish, with an id of id="theBullet" and use CSS to give it a display:none; Then, add this to the bottom of your page before the </body> tag -- or call it into your document from an external file before the body tag.
Hope that helps.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
|||
|
Re: popup div onmouseover
hey Rakuli,
thanks, but I could only run it in IE. First, your two lines for var x and var y gave an error: "missing : in conditional expression" So I got the coordinates in another way:
Now it's working fine in IE, but Firefox complains that e has no properties: "if (e.pageX || e.pageY)" How shall I make it recognize the event? Thanks again |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| onmouseover not working in ff | dab42pat | JavaScript Forum | 4 | Nov 30th, 2007 14:10 |
| onMouseOver <div> pops up next to mouse pointer - HOW? | Love2Java | JavaScript Forum | 17 | Aug 1st, 2007 19:42 |
| onMouseOver Help | Bighen | JavaScript Forum | 3 | Jan 24th, 2006 20:17 |
| OnMouseOver | kookie09 | JavaScript Forum | 5 | Apr 21st, 2005 23:20 |
| OnMouseOver Action | Monie | JavaScript Forum | 10 | Dec 30th, 2004 10:19 |