HardwareHeaven.com

HardwareHeaven.com

Looking for the skin chooser?
 
 
  • Home

  • Hardware reviews

  • Articles

  • News

  • Tools

  • Gaming at HardwareHeaven

  • Forums

 

Go Back   HardwareHeaven.com > Forums > Software / Tools > Programming, Coding, (Web)Design


Programming, Coding, (Web)Design Discuss all your programming or design needs with likeminded people.

Reply
 
Thread Tools
Old May 12, 2003, 12:05 PM   #1
A Legend in Underwear
 
UberLord's Avatar
 
Join Date: May 2002
Location: Unknown
Posts: 5,255
Rep Power: 0
UberLord will become famous soon enough

Cool! mouseover,mouseout, div and span

After playing around about with mouseover and mouseout for funky stuff with my "There is no postcount" bit, I've discovered that using <div> tags doesn't really work too well.

For starters it causes Mozilla 1.4b to crash with out forum - but the same code works fine outside the forum. Ah well.

This prompted me to find a workaround/solution. I discovered that the <span> tag also works with javascript which is great! I didn't think it would work as <span> is a very light-weight version of <div>. But the great thing is that using mouseover/out with <div> could cause problems when leaving the <div> and you are using tables or it's enclosed in another <div>. When using <span> instead this problem just doesn't happen!

So, if you need to place a <div> in a set place then keep using <div>'s, otherwise start using <span> instead
__________________
Gentoo Linux - Developer (baselayout)
Read my blog

"I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours."
Stephen Roberts
UberLord is offline   Reply With Quote


Old May 12, 2003, 03:19 PM   #2
Flash Banner Hater
 
Join Date: Jun 2002
Location: UK
Posts: 3,426
Rep Power: 93
Matth has a divinity and aura the likes we have never seenMatth has a divinity and aura the likes we have never seenMatth has a divinity and aura the likes we have never seenMatth has a divinity and aura the likes we have never seenMatth has a divinity and aura the likes we have never seenMatth has a divinity and aura the likes we have never seenMatth has a divinity and aura the likes we have never seenMatth has a divinity and aura the likes we have never seenMatth has a divinity and aura the likes we have never seenMatth has a divinity and aura the likes we have never seenMatth has a divinity and aura the likes we have never seen
System Specs

Are you referring to TAGS which are not being displayed, as it seems to be somewhat disjointed?

Have you logged a bug for Mozilla - if it's WRONG, then THIS is the time when it's GOT to be fixed - 1.4 final is marked down as the build to continue the "stable" linem while the scary stuff happens on the trunk toward 1.5.
Matth is offline   Reply With Quote
Old May 12, 2003, 03:32 PM Threadstarter Thread Starter   #3
A Legend in Underwear
 
UberLord's Avatar
 
Join Date: May 2002
Location: Unknown
Posts: 5,255
Rep Power: 0
UberLord will become famous soon enough

Edited my post - understand it now Matth? Haven't entered a bugzilla report as the code doesn't crash in a simple web page just when included within this forum
__________________
Gentoo Linux - Developer (baselayout)
Read my blog

"I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours."
Stephen Roberts
UberLord is offline   Reply With Quote
Old May 12, 2003, 06:46 PM   #4
Yarr... I be blind!
 
Jeff's Avatar
 
Join Date: May 2002
Location: Calgary, Canada
Posts: 3,191
Rep Power: 80
Jeff has much to be proud ofJeff has much to be proud ofJeff has much to be proud ofJeff has much to be proud ofJeff has much to be proud ofJeff has much to be proud ofJeff has much to be proud ofJeff has much to be proud ofJeff has much to be proud of

<span> is an empty inline-element, <div> is an empty block-level element, they do what they do

Strange about the Mozilla thing though...
__________________
Jeff is offline   Reply With Quote
Old May 12, 2003, 07:50 PM   #5
Freedom is a feature.
 
RIV@NVX's Avatar
 
Join Date: Jul 2002
Location: Croatia, Rijeka
Posts: 4,476
Rep Power: 0
RIV@NVX will become famous soon enough
System Specs

Rule numero uno about Mozilla: something might not be displayed correctly, but there is nothing that should make it crash (it should be reported if it's a regression over previous version).

Working on sample code
__________________
-- Vedran

Last edited by RIV@NVX; May 12, 2003 at 08:00 PM.
RIV@NVX is offline   Reply With Quote
Reply

Thread Tools