I’m trying to use:
[CODE]
<script type=”text/javascript”>
<!–
window.onload=function(){
document.getElementById(‘text7’).onclick=function(){
this.style.color= ‘#CC0000’;
return false;
}
}
//–>
</script>
to change the color of the links printed by:
[CODE]
<hx:outputLinkEx styleClass=”outputLinkEx” id=”formPdfLink”
onclick=”return openPDFWord(this, ‘#{varsearchResults.targetURLForPDF}’);”
value=”#{varsearchResults.pdfURL}”>
<h:outputText style=”vlink.color:red;” styleClass=”outputText”
id=”text7″ value=”#{varsearchResults.formIdAndEditionDate}”
escape=”false”>
</h:outputText>
</hx:outputLinkEx>
that have been clicked
From what I understand about javascript this function opens as the page does and acts as a listener. When a link with the id ‘text7’ gets clicked it takes this(that link) and changes the color to red. Sounds good, but doesn’t work. Any help would be greatly appreciated.
The site is jsp/jsf/css on:
IE Version: 6.0.2900.2180.xpsp_sp2_qfe.090206-1239