This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes Pop up divs in FireFox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Pop up divs in FireFox" Watch "Pop up divs in FireFox" New topic
Author

Pop up divs in FireFox

Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
Ok, I've googled quite a bit and maybe I'm just missing something, but here is my code:



here is the page that this is running on: http://www.newfazeindustries.com/guild/guildarmory/guildarmory/index.php
in IE it works good, but in FF the pop up div keeps "flashing" pops up real quick then hides again. don't know what the deal is.

here are the two functions which "show" and "hide" the div...



You down with OOP? Yeah you know me!
Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
ok, so I've gotten the pop up's to work now, seems I didn't need that If/Else, e.clientX and Y work in ff too. Just had to increase the X and Y placement by 5 so that my mouse wasn't in the popup when it popped up, was causing it to call the onmouseout event.

ok for the placement of the gear items it goes like this, in coordination with the page and the table the images are in:
G: gear, X: the ones I want the effect for.

G          G
G          G
G          G
G          G
G          G
G          X
G          X
X   XXX  X

Ok for the gear images in placement X I want the pop up div to be shifted up as many pixels as it's .clientHeight in the Y direction (-).
I can't get it to work properly, but if I shift from one gear item to one of the X items real quick, it will jump up like it's supposed to, just not if I only mouseover it regularly.

Just wanted to know if anyone has ever had this problem.

Thanks,

Justin

http://www.newfazeindustries.com/guild/guildarmory/guildarmory/index.php
Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
It kind of works in IE but it seems like it's using the clientHeight of the div from it's previous contents... then when you hover again it's correctly drawn.

Justin
Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
here is the code im using to place the stats div on the page...

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pop up divs in FireFox