Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Whatever:hover - Can't get it working
Old 09-24-2006, 02:00 AM Whatever:hover - Can't get it working
Webmaster Talker

Posts: 626
Trades: 0
I'm hoping someone can help me here... I have adding "behavior:url('csshover.htc');" to the body style. However, it still doesn't work in IE. It works beautifully in FF, but not IE.

I'm using IE 6.0 and I am running Windows 2000 SP2. I added the MIME type text/x-component .htc, to my apachee config file. I did a complete stop/start for apachee.

Can anyone figure it out?

Here's the CSS:
HTML Code:
body {
	margin:0px;
	padding:0px; 
	font-family:Arial, Helvetica, sans-serif; 
	font-size:12px; 
	background-color:#CCCCCC;
	color:#000040;
	behavior:url('csshover.htc');
}

#menu-top {
	width:760px;
	background-color:#000040;
	font-weight:bold;
	padding:0px 10px 0px 10px;
	height:19px;
}

#menu-top ul {
	padding:2px 0 0 0;
	margin:0;
	list-style:none;
}

#menu-top li {
	float:left;
	position:relative;
	width:150px;
	text-align:center;
	color:white;
}

#menu-top li ul {
	background-color:white;
	display:none;
	position:absolute;
	top:0;
	left:0;
	width:157px;
	border:2px solid #000040;
	padding:6px 0px 2px 0px;
}

#menu-top li > ul {
	top:auto;
	left:auto;
}

#menu-top li:hover ul {
	display:block;
}

#menu-top ul ul li {
	text-align:left;
	padding:2px 10px 2px 10px;
	color:#000040;
	width:137px;
}

#menu-top ul ul li:hover {
	background-color:#9D8A14;
}

#menu-top a {
	color:white;
	text-decoration:none;
}

#menu-top a:hover {
	color:#A00000;
	text-decoration:none;
}

#menu-top img.icon {
	margin-right:15px;
}
Here's the HTML:
HTML Code:
	<!-- TopMenu Bar - Start -->
	<div id="menu-top">
			<ul>
				<li><a href="/">Home</a></li>
				<li><a href="/">Residential</a>
					<ul>
						<li><img align="left" width="20" width="18" src="images/circle.gif" class="icon" />Option</li>
						<li><img align="left" width="20" width="18" src="images/circle.gif" class="icon" />Option</li>
						<li><img align="left" width="20" width="18" src="images/circle.gif" class="icon" />Option</li>
						<li><img align="left" width="20" width="18" src="images/circle.gif" class="icon" />Option</li>
					</ul>
				</li>
				<li><a href="/">Commercial</a>
					<ul>
						<li><img align="left" width="20" width="18" src="images/circle.gif" class="icon" />Option</li>
						<li><img align="left" width="20" width="18" src="images/circle.gif" class="icon" />Option</li>
						<li><img align="left" width="20" width="18" src="images/circle.gif" class="icon" />Option</li>
						<li><img align="left" width="20" width="18" src="images/circle.gif" class="icon" />Option</li>
					</ul>
				</li>
				<li><a href="/">Calculators</a>
					<ul>
						<li><img align="left" width="20" width="18" src="images/circle.gif" class="icon" />Option</li>
						<li><img align="left" width="20" width="18" src="images/circle.gif" class="icon" />Option</li>
						<li><img align="left" width="20" width="18" src="images/circle.gif" class="icon" />Option</li>
						<li><img align="left" width="20" width="18" src="images/circle.gif" class="icon" />Option</li>
					</ul>
				</li>
				<li><a href="/">Contact Us</a>
					<ul>
						<li><img align="left" width="20" width="18" src="images/circle.gif" class="icon" />Option</li>
						<li><img align="left" width="20" width="18" src="images/circle.gif" class="icon" />Option</li>
						<li><img align="left" width="20" width="18" src="images/circle.gif" class="icon" />Option</li>
						<li><img align="left" width="20" width="18" src="images/circle.gif" class="icon" />Option</li>
					</ul>
				</li>
			</ul>
	</div>
	<!-- Top Menu Bar - end -->
jim.thornton is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-25-2006, 12:30 AM Re: Whatever:hover - Can't get it working
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Firefox doesn't NEED the whatever:hover fix, it CAN do hovers on anything.. like the standards say it should. IE, as ever, is the only one that needs the .htc file.

Try taking the quote marks out of the url(csshover.htc) and make certain that the htc file is in the SAME directory as the the rest of your files.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 09-25-2006, 12:38 PM Re: Whatever:hover - Can't get it working
Webmaster Talker

Posts: 626
Trades: 0
Thanks... I figured it out. I was referring to the .htc file relative to the css file not relative to the file that is loading the css file.

Everything works great now!

Thanks.

FYI - The quotes didn't matter
jim.thornton is offline
Reply With Quote
View Public Profile
 
Old 09-25-2006, 04:05 PM Re: Whatever:hover - Can't get it working
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
FYI - The quotes didn't matter
They shouldn't, but every now and then I find it does matter..and I've no idea why !
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Whatever:hover - Can't get it working
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13226 seconds with 12 queries