JavaScript Tutorial/Document/vlinkColor
Версия от 18:52, 25 мая 2010; (обсуждение)
document.vlinkColor
The vlinkColor property specifies the color of visited links.
The color is expressed as a string in hexadecimal digits or as one of the JavaScript standard color names.
The hexadecimal form is made up of 6 digits that follow the pattern "RRGGBB".
<HTML>
<head>
<title>this is a title</title>
</head>
<BODY bgcolor="beige" text= "black" link="darkblue" vlink="honeydew">
<SCRIPT language="JavaScript">
<!--
document.write("The visited link color is "+document.vlinkColor+"<BR>");
//-->
</SCRIPT>
</BODY>
</HTML>
Set document.vlinkColor
<html>
<a href="http://www.wbex.ru">The Green Site</a><br>
<script language="JavaScript">
<!--
document.vlinkColor="00ff00";
-->
</script>
<a href="myGreenGrassPage.html">The Green Grass Page</a>
</html>