Hello everyone!!
I am building a website where I build (with asp) a list of helmets(different models and different colors). Every helmet is a link. When you go over the link with your mouse, you can see a picture of the helmet. This picture itself is also a link. So if you want to see the details of the helmet, you can click on the name of the helmet or you can click on the picture.
I declared in CSS that my links should be in a red color, and that the img-link should be in a black color. Nothing wrong with my links, but the border around my picture is staying blue (and violet if visited).....
Here is some code
The definitions for the image link
definitions for the normal links
this is the image link
I am changing the href of my image link with javascript. Here is an example
Can anyone help me?
tnx!
Mim
I am building a website where I build (with asp) a list of helmets(different models and different colors). Every helmet is a link. When you go over the link with your mouse, you can see a picture of the helmet. This picture itself is also a link. So if you want to see the details of the helmet, you can click on the name of the helmet or you can click on the picture.
I declared in CSS that my links should be in a red color, and that the img-link should be in a black color. Nothing wrong with my links, but the border around my picture is staying blue (and violet if visited).....
Here is some code
The definitions for the image link
Code:
A.imgLink:active
{
COLOR: black;
TEXT-DECORATION: none
}
A.imgLink:link
{
COLOR: black;
TEXT-DECORATION: none
}
A.imgLink:visited
{
COLOR: black;
TEXT-DECORATION: none
}
A.imgLink:hover
{
COLOR: black;
TEXT-DECORATION: none
}
Code:
A.HelmLink:active
{
COLOR: #cc3300;
FONT-SIZE: 9pt;
TEXT-DECORATION: underline
}
A.HelmLink:link
{
COLOR: #cc3300;
FONT-SIZE: 9pt;
TEXT-DECORATION: none
}
A.HelmLink:visited
{
COLOR: #cc3300;
FONT-SIZE: 9pt;
TEXT-DECORATION: none
}
A.HelmLink:hover
{
COLOR: #cc3300;
FONT-SIZE: small;
TEXT-DECORATION: underline
}
Code:
<a class=imgLink name=imgLink id=imgLink><IMG alt=Voorbeeldje height=223 id=voorbeeld border=2 src="images/background4.jpg" name=voorbeeld width=230 onerror="document.voorbeeld.src=NoPicture.src;"</A><br>
I am changing the href of my image link with javascript. Here is an example
Code:
<a target=_parent class="HelmLink" href="helmtest.asp?pid=69" OnMouseOver="parent.document.all['imgLink'].href='helmtest.asp?pid=69'; parent.document.voorbeeld.width=226;parent.document.voorbeeld.height=219; changeImage(picArray[0].src);">Zwart</a>
Can anyone help me?
tnx!
Mim