|
-
Mar 26th, 2003, 06:30 AM
#1
Thread Starter
Fanatic Member
hyperlink
Could someone please explain how it is possible to have a hyperlink and then when you hover over it the color of the text to change to something like grey and when you click on the hyperlink the colour changes and you get >> next to it?
Can it be done in stylesheet? if so how?
I have done the same kind of thing using a DataList though.
Thanks guys.
-
Mar 27th, 2003, 03:10 AM
#2
Hyperactive Member
Yep, changing the color of a link is done with a style sheet: specifically using the a:hover tag where you specify the attributes of a link when the mouse is moved over it.
VB Code:
<style><!--
BODY {
font-family:Helvetica, Garamond, Arial;
}
A:link {
color: #666666;
text-decoration: none;}
A:visited {
color: #000000;
text-decoration: none;}
A:active {
color: #111111;
text-decoration: underline;}
A:hover {
color: #000000;
text-decoration: underline;}
--></style>
</head>
In regards to changing the text of a link. What I would probably do is use the javascript innerHTML property that allows you to change the html of a tag
links below
http://msdn.microsoft.com/library/de.../innerhtml.asp
hth
Cheers
MarkusJ
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|