PDA

View Full Version : What is the code for hyperlink



smurf-you
01-05-2005, 11:51 PM
Well not quite hyperlink

But let me explain

When i cover the link it goes like a different colour, I was woundering what is the script of something along those lines, As the one i've got now is UGLY, But i can't find it in the HTML, Let alone know what it is

If anyone could help, I'll be a happy chappy, And add REP

Thanks

iRoss
02-05-2005, 08:59 AM
<html>

<head>
<style fprolloverstyle>A:hover {color: #000000}
</style>
</head>

<body link="#000000" vlink="#000000" alink="#000000">

</body>

</html>

Like that?

smurf-you
02-05-2005, 09:18 AM
Pefect

Thanks

Rep added

iRoss
02-05-2005, 09:19 AM
Thank you :)

ignitionhost
02-05-2005, 12:51 PM
For easyer and sipler ways, creat the hyperlink witht he normal html (<a href="etc.)
then go onto preview, right click the hyperlink, and click "hyperlink properties".
This is for frontpage users only... although i guess something similar works in dreamweaver

iRoss
02-05-2005, 12:52 PM
Lol, i got that code of frontpage xD

smurf-you
02-05-2005, 12:58 PM
Nope, I'm using raw html, Much more better + Harder, I just forgot what the code looked like cause i couldn't find it:(

Mentor
02-05-2005, 01:17 PM
i prefer to use the proper css method without front pages incorect codes "/



<style type="text/css">
<!--

body,td,th { /* text colour */
color: #000000;
}
a:link { /* normal link colour */
color: #000000;
text-decoration: none; /* means link is not underlined */
}
a:visited { /* vistited link colour */
text-decoration: none;
color: #000000;
}
a:hover { /* hiver colour (when u put curcer over link ) */
text-decoration: none;
color: #000000;
}
a:active { /* active link colour, when u ahve clicked it */
text-decoration: none;
color: #000000;
}
-->
</style>


Althogh u dont need the comments /* comment */ or any bits that arnt of use to you, as thats most stuff u could wnat to do with a link, ratehr than a persific part "/

iRoss
02-05-2005, 01:22 PM
Whats wrong with frontpages. They work, so technically they are correct.

Mentor
02-05-2005, 01:34 PM
There not 23 complinat and ad tags that dont exsist which waste space, which with a lot of page loads can amount to a significtae increase in band width for no reason

eg
front page


<style fprolloverstyle>
A:hover {color: #000000}
</style>


i could just as easly use



<style I-like-PIE>
A:hover {color: #000000}
</style>


as the exstra bit is pointless, and basicly coirrupsts the code so it doesnt work in old browsers that dont support a quirks mode. quirks mode, only being there becuse of teh cporrupt rubbish microsoft pumps out, and there browser reads, rather than the proper w3 stand htnl used by firefox, netscape, opra, and vertaly verey other browser.

proper code would just be



<style >
A:hover {color: #000000}
</style>


ok u think that tiny bit of pointless text is much, well look tthrew a whoel front page, and the larege amount of these pointless tags can nearly dubble a pages size "/

iRoss
02-05-2005, 01:37 PM
Hmm i see, But it's easier :P

Mentor
02-05-2005, 01:45 PM
yea, but if u use that sort of thing u use more band width and have a site most browsers cant access unles sthey use IE which puts of a 3rd of yoru audnace, which i dont realy think makes up for it being slightly easyer "/

iRoss
02-05-2005, 01:57 PM
Yes, i suppose so. Yes, it uses up bandwith, but i think your wrong about the not accesible in firefox. I use that code and my site in firefox is fine :)

Want to hide these adverts? Register an account for free!