PHP interesse |
|
in css:
a:link {color: #FF0000} /* unvisited link */
a:visited {color: #00FF00} /* visited link */
a:hover {color: #FF00FF} /* mouse over link */
a:active {color: #0000FF} /* selected link */
a :link {color : #FF0000} /* unvisited link */a:visited {color: #00FF00} /* visited link */ a:hover {color: #FF00FF} /* mouse over link */ a:active {color: #0000FF} /* selected link */
als je meerdere soorten links hebt (verschillende kleuren):
a.class1:link {color: #FF0000} /* unvisited link */
a.class1:visited {color: #00FF00} /* visited link */
a.class1:hover {color: #FF00FF} /* mouse over link */
a.class1:active {color: #0000FF} /* selected link */
a.class2:link {color: #FF0000} /* unvisited link */
a.class2:visited {color: #00FF00} /* visited link */
a.class2:hover {color: #FF00FF} /* mouse over link */
a.class2:active {color: #0000FF} /* selected link */
a .class1 :link {color : #FF0000} /* unvisited link */a.class1:visited {color: #00FF00} /* visited link */ a.class1:hover {color: #FF00FF} /* mouse over link */ a.class1:active {color: #0000FF} /* selected link */ a .class2 :link {color : #FF0000} /* unvisited link */a.class2:visited {color: #00FF00} /* visited link */ a.class2:hover {color: #FF00FF} /* mouse over link */ a.class2:active {color: #0000FF} /* selected link */
in de html dan:
<a href="link1" class="class1">link1</a>
<a href="link2" class="class2">link2</a>
<a href="link1" class="class1">link1</a> <a href="link2" class="class2">link2</a>
|