Advanced Web Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignAdvanced Web Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old September 14th, 2005, 09:31 AM
ezenaide's Avatar
ezenaide ezenaide is offline
custom user
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: olinda - br
Posts: 77 ezenaide User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 12 h 44 m 50 sec
Reputation Power: 4
Send a message via MSN to ezenaide
hover effect on div tags

hi, folks!

i'm trying to use hover effect on some div tags.
but, as usual, the effect is not the same on IE as it is on FF.
the true is that there is no effect at all on IE :/

i'm using something like this:
Code:
.tp1:hover {
	background: #069;
	color: #fff;
}


hope someone help me

Reply With Quote
  #2  
Old September 14th, 2005, 09:44 AM
Kyle Kyle is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 3 Kyle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 m 35 sec
Reputation Power: 0
IE only allows the use of the hover tag on link elements ('a' elements). In order for IE to have the hover effect on other elements, the most used technique, i believe, is the use of javascript to write onmouseover and onmouseout attributes to the element. The onmouseover and onmouseout attributes change the styling of the element on hover essentially giving you the ability to change the style on a hover.

Reply With Quote
  #3  
Old September 14th, 2005, 09:47 AM
Kyle Kyle is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 3 Kyle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 m 35 sec
Reputation Power: 0
Here's an example. The javascript is used to make IE allow hover on LI elements.

Hover Example

Reply With Quote
  #4  
Old September 16th, 2005, 05:12 AM
itsmani1 itsmani1 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Location: Islamabad, Pakistan
Posts: 2 itsmani1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 49 sec
Reputation Power: 0
Send a message via MSN to itsmani1 Send a message via Yahoo to itsmani1
Quote:
Originally Posted by ezenaide
hi, folks!

i'm trying to use hover effect on some div tags.
but, as usual, the effect is not the same on IE as it is on FF.
the true is that there is no effect at all on IE :/

i'm using something like this:
Code:
.tp1:hover {
	background: #069;
	color: #fff;
}


hope someone help me


Use "A" tag with ur defination

Muhammad Abdul Mannan.
http://mannan.zabvision.edu.pk

Reply With Quote
  #5  
Old September 16th, 2005, 07:53 AM
Itsacon's Avatar
Itsacon Itsacon is offline
Command Line Warrior
Click here for more information. Click here for more information
 
Join Date: Aug 2004
Location: Sector ZZ9 Plural Z Alpha
Posts: 992 Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 732573 Folding Title: Super Ultimate Folder - Level 2Folding Points: 732573 Folding Title: Super Ultimate Folder - Level 2Folding Points: 732573 Folding Title: Super Ultimate Folder - Level 2Folding Points: 732573 Folding Title: Super Ultimate Folder - Level 2Folding Points: 732573 Folding Title: Super Ultimate Folder - Level 2Folding Points: 732573 Folding Title: Super Ultimate Folder - Level 2Folding Points: 732573 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 6 Days 13 h 37 m 16 sec
Reputation Power: 5
Send a message via ICQ to Itsacon
Or take revenge on all those frontpage website builders and slap a
"Best NOT viewed with Internet Explorer" block on your website.

When will Microsoft finally implement proper CSS support?
__________________
This is my code. Is it not nifty?

"The biggest problem encountered while trying to design a system that was completely foolproof, was, that people tended to underestimate the ingenuity of complete fools."
---Douglas Adams


Join the Itsacon fanclub!    
Zero Tolerance: Spammers banned so far: 275

Reply With Quote
  #6  
Old September 16th, 2005, 07:58 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
I believe they've fixed this issue on the forthcoming IE7 release, but as a web designer, it would still be good to support the workaround [as far as backwards compatability goes].

In the meantime, I guess Javascript would suit your needs... or somehow squeeze an anchor tag in there.

Reply With Quote
  #7  
Old September 16th, 2005, 10:22 AM
Itsacon's Avatar
Itsacon Itsacon is offline
Command Line Warrior
Click here for more information. Click here for more information
 
Join Date: Aug 2004
Location: Sector ZZ9 Plural Z Alpha
Posts: 992 Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 732573 Folding Title: Super Ultimate Folder - Level 2Folding Points: 732573 Folding Title: Super Ultimate Folder - Level 2Folding Points: 732573 Folding Title: Super Ultimate Folder - Level 2Folding Points: 732573 Folding Title: Super Ultimate Folder - Level 2Folding Points: 732573 Folding Title: Super Ultimate Folder - Level 2Folding Points: 732573 Folding Title: Super Ultimate Folder - Level 2Folding Points: 732573 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 6 Days 13 h 37 m 16 sec
Reputation Power: 5
Send a message via ICQ to Itsacon
Wouldn't work.
HTML standard doesn't allow for div tags to be enclosed by a tags, and putting the a IN the div would cause only the text in the a tag to hover, which would look rather silly...

Reply With Quote
  #8  
Old September 19th, 2005, 09:33 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
I'm not sure what it is exactly you're creating.
If it's a dropdown menu, have you considered using the Suckerfish Dropdown method?
> Pretty Example

Reply With Quote
  #9  
Old September 21st, 2005, 11:35 AM
ezenaide's Avatar
ezenaide ezenaide is offline
custom user
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: olinda - br
Posts: 77 ezenaide User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 12 h 44 m 50 sec
Reputation Power: 4
Send a message via MSN to ezenaide
there's a lot of submenus
i don't think that suckerfish will fit

but thanks for the answers, anyway, i'm using javascript now and i'm thinking about that 'best NOT viewed with Internet Explorer'

Reply With Quote
  #10  
Old September 27th, 2005, 09:59 AM
Itsacon's Avatar
Itsacon Itsacon is offline
Command Line Warrior
Click here for more information. Click here for more information
 
Join Date: Aug 2004
Location: Sector ZZ9 Plural Z Alpha
Posts: 992 Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 732573 Folding Title: Super Ultimate Folder - Level 2Folding Points: 732573 Folding Title: Super Ultimate Folder - Level 2Folding Points: 732573 Folding Title: Super Ultimate Folder - Level 2Folding Points: 732573 Folding Title: Super Ultimate Folder - Level 2Folding Points: 732573 Folding Title: Super Ultimate Folder - Level 2Folding Points: 732573 Folding Title: Super Ultimate Folder - Level 2Folding Points: 732573 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 6 Days 13 h 37 m 16 sec
Reputation Power: 5
Send a message via ICQ to Itsacon
Quote:
Originally Posted by ezenaide
but thanks for the answers, anyway, i'm using javascript now and i'm thinking about that 'best NOT viewed with Internet Explorer'



Good boy..

Reply With Quote
  #11  
Old November 6th, 2005, 12:38 AM
ezenaide's Avatar
ezenaide ezenaide is offline
custom user
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: olinda - br
Posts: 77 ezenaide User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 12 h 44 m 50 sec
Reputation Power: 4
Send a message via MSN to ezenaide
only one more question about hover effects.
ok, it works fine on firefox, but not when i put the page on a geocities server. why?

maybe geocities does'nt like css too

Reply With Quote
  #12  
Old November 7th, 2005, 08:03 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
Are you able to provide a link?

Reply With Quote
  #13  
Old November 8th, 2005, 11:09 AM
ezenaide's Avatar
ezenaide ezenaide is offline
custom user
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: olinda - br
Posts: 77 ezenaide User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 12 h 44 m 50 sec
Reputation Power: 4
Send a message via MSN to ezenaide
sure

html
css

there are three classes with hover: the bold text (like "Together we'll..."), menu titles ("artes plásticas") and menu links - when you click menu titles.

Reply With Quote
  #14  
Old November 10th, 2005, 05:47 AM
MichaelSoft MichaelSoft is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Location: The Netherlands
Posts: 121 MichaelSoft User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 20 sec
Reputation Power: 4
Not sure if this thread is still open, and if your question was answered.

Geocities adds a 'nice' line of JavaScript code on top of your HTML-code. This causes the <!DOCTYPE line to be the third line in stead of the first line.
So the browser does not recognizes that you are using a DOCTYPE, falling back on a standard that does not support the hover....

Reply With Quote
  #15  
Old November 10th, 2005, 08:14 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
Yep, Geocities may not be the best location to park your code. =)

Reply With Quote
  #16  
Old November 10th, 2005, 10:52 AM
ezenaide's Avatar
ezenaide ezenaide is offline
custom user
Dev Articles Newbie (0 - 499 posts)