PDA

View Full Version : Links - Spontaneous Hover Loss


mellamokb
03-30-2006, 02:30 PM
Hi,

I'm having problems with a page's links losing the hover - color change - ability. I don't think I have the styles set up wrong. Whenever I open up certain pages with links generated by an ASP page, some of the links change color on hover and some don't. If I open that page again with different data, different links will have this problem than the ones before. I can't figure out if there's a problem with IE (is this possible?) or if something is truly wrong with my CSS logic.

As a quick rundown of the page, it consists basically of a calendar. Each item on the calendar is a link to a page where that item can be edited. The days of the month can be selected as well to bring up a task listing for that day. Some data changes (i.e., depending on the month and who's calendar is open), but for a given month and year, the days are always the same. I just opened up a calendar (March 2006), and the following days did not change color when I hovered over the link: 1, 2, 3, 5, 10, 15, 29, 30. What's weird about that is that these days are the ones with data in them: 3, 5, 8, 10, 20, 24, 27, 29, 30.

It must be a CSS problem because when I open the same calendar for the same month, the exact same links have the hover problem; however, my styling is so simple that I'm perplexed how the problem could be so selective! I have this problem on the daily view as well as the weekly view, and some data items themselves even have this problem.

If anyone, from the details I have given, would have any idea as to why a link would not change color on hovering on a very selective basic, please give me some insight and it would be greatly appreciated!

I will make a page using the source generated by the ASP and place the link on this post for anyone that would like to look at it and thinks he or she could help me with this unusual problem.



If this helps at all, here is the page: http://htmlforums.tbclogin.com/thread_474589.html



Thanks!
mellamokb

_Aerospace_Eng_
03-30-2006, 02:34 PM
Well since you seem to think we know what your CSS looks like I'm to take a guess. Your link psuedo classes need to go in a certain order. Try to remember LoVe HAte
a:link { /*CSS Stuff*/}
a:visited { /*CSS Stuff*/ }
a:hover { /*CSS Stuff*/ }
a:active { /*CSS Stuff*/ }

If that doesn't work post your code. We aren't psychic.

mellamokb
03-30-2006, 02:37 PM
???? That's really weird! ????

I opened the source of the ASP page after it loaded in my browser. I copied and pasted that code into a new page and placed it online, but when I opened *That* page in my browser, all of the links worked fine!

What in the world is going on here???

mellamokb

mellamokb
03-30-2006, 02:42 PM
Hey WOW! It works!

Thank you very much _AeroSpace_Eng_. Once I put the pseudo-classes in the right order, the original ASP page worked fine. The thing about it is, I didn't write this code myself; I purchased it online.

I still think it's very strange that opening the ASP page would produce different results than copying and pasting the code generated by the ASP into a new page and opening that as HTML. Go figure.

Well, I'll remember "LoVe HAte" from now on, and that should take care of any link problems in the future. Thank you very much for your help!

mellamokb