If you wish to set all four states of the header links (link, active, visited, hover), your best bet is first to remove any calls to instance.setColor() inside your initialization code, as those colors will take precedence over anything you define via CSS. Then, just define a new CSS class inside your stylesheet with the desired style for the links, ie:
Code:
.headerlink:link{
color: green;
}
.headerlink:visited{
color: blue;
}
.headerlink:hover{
color: red;
}
.headerlink:active{
color: purple;
}
Then, inside the HTML markup of your header links, add the "header" class to those elements without replacing the existing class:
Code:
<h3 id="joecontent1-title" class="handcursor headerlink">What is JavaScript?</h3>
<p id="joecontent1" class="switchgroup2">
</p>
<h3 id="joecontent2-title" class="handcursor headerlink">Difference betwen Java & JavaScript?</h3>
<p id="joecontent2" class="switchgroup2">
</p>
<h3 id="joecontent3-title" class="handcursor headerlink">What is DHTML?</h3>
<p id="joecontent3" class="switchgroup2">
DHTML is the embodiment of a combination of technologies- JavaScript, CSS, and HTML. Through them a new level of interactivity is possible for the end user experience.
</p>
Bookmarks