JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using COOLjsMenuPro and CSS for "A" html tags

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu
Author Message
DonP
Guest





PostPosted: Tue Aug 26, 2003 3:46 am    Post subject: Using COOLjsMenuPro and CSS for "A" html tags Reply with quote

I'm new to COOLjsMenuPro. After hours of unsuccessfully adding some menus to an existing web page, I finally stumbled across the fact that the CSS definitions for <a> tags in my existing web page somehow interfere with the correct behaviour of my COOLjsMenuPro menus, at least when using IE6. I was getting main menu items that were blank (no text). After deleting the CSS for <a> tags, the menus appear to work--but then the links in my web page are not styled the way we want them (revert to the default style). Before I spend more hours trying to resolve this, could anyone provide any advice on how to use CSS for <a> _and_ COOLjsMenu at the same time.

FYI, here were my old CSS for <a> definitions:
A {color: #FF6600; background-color: #000000; text-decoration: none;}
A:link {color: #FF6600; background-color: #000000; text-decoration: none;}
A:visited {color: #FF6600; background-color: #000000; text-decoration: none;}
A:hover {color: #000000; background-color: #FF6600; text-decoration: none;}
A:active {color: #FF6600; background-color: #000000; text-decoration: none;}
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Wed Aug 27, 2003 2:13 am    Post subject: Reply with quote

First, "wrap" your menu with some div:
Code:
<div class="iefix">
<script type="text/javascript">
var m1 = new COOLjsMenuPRO("menu1", MENU_ITEMS)
m1.initTop();
</script>
</div>

<div class="iefix">
<script type="text/javascript">
m1.init();
m1.show();
</script>
</div>

Then add the following line to your CSS code:
Code:
.iefix a, .iefix a:link, .iefix a:visited, .iefix a:hover, .iefix a:active { background-color: transparent }
Back to top
Guest






PostPosted: Sat Aug 30, 2003 2:52 am    Post subject: Reply with quote

Alex, thanks a bazillion. Works perfectly. Would've taken me a very very long time to get that on my own.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu All times are GMT
Page 1 of 1