everydaysushi
Apr 22 2005, 09:28 PM
| | Here's my problem:
I have a simple rollover menu, where the links light up whenever your mouse is over one of them. It works fine. In the simplest sense, I used this CSS code:
(in .css file)
a:link, a:visited {color:#000000} a:hover {color:#FF0000}
This works! Yay! Okay. But when I click on any of the links (it is therefore considered "visited"), the hover function doesn't work anymore. The link becomes static (hover does not work anymore). And yes, I want my unvisited and visited links to be the same color.
Question: How do I get the hover function to work on VISITED links, as it apparently does not? Is there some kind of property value I can put on either the a:hover tag, or the a:visited tag?
Please help me!! |
Reply
Rudy
Apr 22 2005, 10:32 PM
You forgot the visited link code. Here you go: a:link { color: blue; } a:visited { color: blue; } a:hover { color: red; }
Reply
pbolduc
Apr 23 2005, 06:39 AM
QUOTE(everydaysushi @ Apr 22 2005, 02:28 PM) Question: How do I get the hover function to work on VISITED links, as it apparently does not? Is there some kind of property value I can put on either the a:hover tag, or the a:visited tag? Please help me!! If you expand your use of css you can control alot more concerning your links. Below is an example: CODE a:link {color: #006600; font-size: 9pt; font-family: Arial; font-weight: normal; text-decoration: none; background-color: transparent; cursor: hand; color: #FFFFFF; font-size:}
a:visited {color: #006600; font-size: 9pt; font-family: Arial; font-weight: normal; text-decoration: none; background-color: transparent; cursor: hand; color: #FFFFFF; }
a:hover {color: #6699FF; font-size: 9pt; font-family: Arial; font-weight: normal; text-decoration: none; background-color: transparent; cursor: hand; color: #6699FF; }
a:active {color: #FF0000; font-size: 9pt; font-family: Arial; font-weight: normal; text-decoration: none; background-color: transparent; cursor: hand; color: #FF0000; }
To add a second set of link controls simply add a class to the style. Example of link code using the class "dklink2": You can have as many link controls as you want, just create different classes. CODE a.dklink2:link {color: #006600; font-size: 8pt; font-family: Arial; font-weight: normal; text-decoration: none; background-color: transparent; cursor: hand; color: #006600; }
a.dklink2:visited {color: #006600; font-size: 8pt; font-family: Arial; font-weight: normal; text-decoration: none; background-color: transparent; cursor: hand; color: #006600; }
a.dklink2:hover {color: #ffffff; font-size: 8pt; font-family: Arial; font-weight: normal; text-decoration: none; background-color: transparent; cursor: hand; color: #ffffff; }
a.dklink2:active {color: #ff0000; font-size: 8pt; font-family: Arial; font-weight: normal; text-decoration: none; background-color: transparent; cursor: hand; color: #ff0000; }
You call the class by use of the "class" property in the anchor tagas follows: <a href="http://whatever.com" class="dklink2" target="_blank">Whatever</a> hope this helps pete 
Reply
Recent Queries:--
rollover menu for blogger - 60.49 hr back. (1)
Similar Topics
Keywords : rollover menu problems visited hover doesnt- Need Help With JS/CSS Dropdown Menu
- (11)
Hey guys, I'm helping out a friend in designing a site for his business and got stuck
with JS/CSS Dropdown menu. Searching around I found one of the easiest to implement scripts at
Dynamic Drive . I managed to implement the script partially, i.e. got the top menu showing up.
Looked good so far. Here's the screenshot: After defining the menu divs, you're
supposed to call the script that performs the dropdown action using a code like this: CODE
cssdropdown.startchrome("name_of_main_menu_div"); When I call the function, my page lay...
Website Navigation Hover Buttons Stick So Made Css Today
- need further help with tutorial from this site (7)
Stage.scalemode
- When my image scale down my stage doesn't follow. How to make it w (1)
Well I have made a movie where the intro is an image (812 x 458). When it reaches around frame 20
(after all the motion and tweening) I scaled down the image (541 x 305) and other effects will take
place around this size only. The problem I'm facing is that the stage doesn't scale down or
change size when the image has. Can somebody help me? You can actually visit LV UK Intro Page
intro movie. That's what I'm trying to do....
Flash Pic Problems
- Pics Display at Low Resoution (7)
Posted this in another section but this could apply here too. Can anyone help me with this problem
I seem to be having with flash?? I know this is probably some stupid little setting somewhere I have
to tweak but I can't find it. I'm trying to put a picture into flash on the canvas. I have a
seperate layer for it. Nothing else is on the layer. Properties for the picture is set at 100 %
quality. My publish settings are set at 100% quality for Jpegs and I've tried every setting I
can find but the picture keeps displaying at a low resolution when I preview my m...
3 Column Css Layout
- I am having some problems! (13)
To make a CSS layout with two columns isn't a problem, but when making a 3 column layout without
tables, I encountered some things where I find tables to be better for designing layouts.. so here
is my problem: I have a menu bar at the left, a sidebar at the right and the content/center bar at
the center of the page and of course a header and a footer with which I didn't have any
problems, the problem is with the content/center bar, here is what I have: (all links won't be
anchors, due to those pages are only temporary) quatrux.net/index_css.html but my pag...
Help With Menu Using CSS
- (14)
I've been trying to figure out this drop down kind of pop-out menu from
http://www.alistapart.com/articles/horizdropdowns I'm not exactly sure what it is I am doing
wrong. On the site I've noted, it talks about CSS, and Javascript, and IE fixes, so I'm
getting mighty confused. My main focus is to get the verticle drop down menu on my page, and
everything else to be in line as well. But I can't even get the menu to show up. I've put
the main part of the lists in a CSS file here: menu.css CODE FTV Menu @import
"menustyle.c...
IE + CSS Hover Problems
- (0)
At the beginning of the month I started a riddle blog at www.blogger.com . I customized everything
and it worked fine until I checked how it looks in Internet Explorer. Since the blog is about
riddles, I had to find a simple way of hiding/showing solutions. I made a new CSS class called
'spoiler' and defined it in this way: CODE .spoiler a { text-decoration: none;
color: #000; } .spoiler a:hover { text-decoration: none; color: #ad9; } And for the
solution, I used this HTML code: HTML div class =" spoiler "> a > span style =" font-weigh...
Blogger Code Problems
- (1)
If I posted in the wrong forum, please forgive me /smile.gif" style="vertical-align:middle"
emoid=":)" border="0" alt="smile.gif" /> I had troubles determinating where to put this. Anyhow, I
have recently started a blog at blogger.com (actually it's blogspot.com). One of the main things
I didn't like was the archive page. It showed whole posts, and I wanted it to show titles as
links only. So I found a hack, and did everything as it said, but now I have problems. Blogger has
codes to determine which page will use that part of the code. In order to define the a...
Php: How To Make A Menu With Images ?
- Help needed (6)
i try to make a site and i know html but i don't understand php, can somebody post some
code's? know somebody how you must make a menu in php with images at it, etx....
Creating Expanding Menu Tree In A Web Page
- sharing my knowledge (7)
hey guys... im here to share some tricks i picked up along the way in creating or designing web
pages... this trick is making an expanding tree menu like the one you can find in the Windows
Explorer.. very cool eh! the trick is done by using javascript and some of its objects.. so here we
go Lets say for example you want to create this tree menu Fruits Apple Small
Medium Large Grapes With seeds Seedless Banana Green Yellow and
you want to make this menu collapse or expand when click the first we do is encode this smal...
Div As Inline Element?
- Doesn't work in IE (2)
Here's the CSS: CODE div#skills { margin: 20px; border: 1px solid #000000; display:
block; } div#skills div { padding: 0px 20px 0px 20px; display: table-cell; } div#skills div h4
{ text-align: center; color: #0066CC } and the XHTML CODE Title bleh bleh
bleh bleh title bleh bleh bleh bleh title bleh bleh bleh bleh
Trying to move away from using tables but I'm having the following problems with this.
I want the three divs positioned horizontally, but the table-cell property i...
How Can I Change The Colors Of A Drop-down Menu?
- using css or some other ways (3)
Hi guys, si ther anyone who can help me with modifying the color of my dropdown menu form? I used
css in textboxes, and other things also....
Drop Down Menu Help
- (8)
ok i have a bunch of buttons, and I want it so when the mouse goes over it a drop down menu appears,
so I have no idea how to code like that, all the buttons including the drop down part are in .gif
format soo tell me if this is possible, thank you /biggrin.gif' border='0'
style='vertical-align:middle' alt='biggrin.gif' /> ...
What Is The Best Javascript Menu Builder?
- (7)
I really need a free, cool and easy-to-integrate JAVASCRIPT menu builder for my new site. I mean
free to use as in unlimitated use provided i link the producer's site to my menu. Anyway if
someone knows anything pleas help. Thanks !!...
Creating Dhtml Menu
- do you know how to create cool menu? (2)
I've searching for a while, but never could find the best solutions for menu design. could
anyone tell me where to find the best site that provide DHTML menu creation?....
Why Dont Pages Look The Same In Different Browsers
- or why the viewer doesnt see what i want (3)
this is one of the major problems in webdesign pages beeing viewed different , and not the way
you want them to be diplayed I sincerly hope there will be a solution for this issue on the
interenet soon. 1-Flash is one such solution. 2-and layout of images 3-and probably more solutions
exist the whole html thing got pretty messed up beeing developed but it worx, and that is what
realy counts /wink.gif' border='0' style='vertical-align:middle' alt='wink.gif' /> as people
mention : test youre pages in different browsers and use hackz to make it work in explorer/n...
how do u make menu?
- dynamic menu (21)
for the site i am building i need one so can some one tell me where to find one or a code of one?...
WORKING OUT PROBLEMS
- everybody should help..... (1)
/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /> hello... i got a
problem... i used flash, dreamweaver, photoshop, fireworks and of course..html with php
scripting....... the problem is that the .swf files don't load properly. i changed the paths and
permissions and the website is still working umproperly... DOES ANYBODY KNOW HOW CAN I WORK IT OUT?
my website.... still under construction... thanks greetings from MÉXICO.......
Looking for rollover, menu, problems, visited, hover, doesnt, work
|
*SIMILAR VIDEOS*
Searching Video's for rollover, menu, problems, visited, hover, doesnt, work
|
advertisement
|
|