Teppic
06-08-2007, 09:14 AM
Hey all!
I've defined my link in my .css as such:
A:link
{
FONT-WEIGHT: bold;
FONT-SIZE: x-small;
COLOR: #3399cc;
text-decoration: underline;
FONT-FAMILY: Verdana, Arial, Helvetica, 'Times New Roman'
}
A:visited
{
FONT-WEIGHT: bold;
FONT-SIZE: x-small;
COLOR: #3399cc;
text-decoration: underline;
FONT-FAMILY: Verdana, Arial, Helvetica, 'Times New Roman'
}
A:hover
{
FONT-WEIGHT: bold;
FONT-SIZE: x-small;
COLOR: #ffffff;
text-decoration: underline;
FONT-FAMILY: Verdana, Arial, Helvetica, 'Times New Roman'
}
But then when i use a popup through javascript:
<script type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
And then use a link such as:
<a href="#" onclick="MM_openBrWindow('http://www.link.com','link','width=300,height=160')">LINK</a>
Something happens that i don't want to happen which is that whenever i press the link the popup works alright, but my page jumps up to the top aswell!! i'm thinking this is because i used a # in the link, but if i don't do that the link is not 'seen' as a link and the stylesheet doesn't make it 'look' like a link.
Could someone please tell me how to solve this?
I've defined my link in my .css as such:
A:link
{
FONT-WEIGHT: bold;
FONT-SIZE: x-small;
COLOR: #3399cc;
text-decoration: underline;
FONT-FAMILY: Verdana, Arial, Helvetica, 'Times New Roman'
}
A:visited
{
FONT-WEIGHT: bold;
FONT-SIZE: x-small;
COLOR: #3399cc;
text-decoration: underline;
FONT-FAMILY: Verdana, Arial, Helvetica, 'Times New Roman'
}
A:hover
{
FONT-WEIGHT: bold;
FONT-SIZE: x-small;
COLOR: #ffffff;
text-decoration: underline;
FONT-FAMILY: Verdana, Arial, Helvetica, 'Times New Roman'
}
But then when i use a popup through javascript:
<script type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
And then use a link such as:
<a href="#" onclick="MM_openBrWindow('http://www.link.com','link','width=300,height=160')">LINK</a>
Something happens that i don't want to happen which is that whenever i press the link the popup works alright, but my page jumps up to the top aswell!! i'm thinking this is because i used a # in the link, but if i don't do that the link is not 'seen' as a link and the stylesheet doesn't make it 'look' like a link.
Could someone please tell me how to solve this?