remove underline for label when hyperlink is added

When label is hyperlinked to internal bookmark to drill through, it creates an underline in the label content. 


How to remove the underline from the label element when hyperlink is added


Comments

  • One method is to use a HTML Report Item and change the link styles for all hyperlink tags:



    <SCRIPT language='JavaScript'>
    var hyperlinks = document.getElementsByTagName('A');
    for (var i = 0; i < hyperlinks.length; i++) {
    var hyperlink = hyperlinks[i];
    var hyperlinkParent = hyperlink.parentNode;
    var parentStyle;
    if (window.getComputedStyle) {
    parentStyle = window.getComputedStyle(hyperlinkParent,null);
    } else {
    parentStyle = hyperlinkParent.currentStyle;
    }
    hyperlink.style.color = parentStyle.color;
    hyperlink.style.textDecoration = parentStyle.textDecoration;
    }
    </SCRIPT>

    It can be customized to target specific links.


    Clement Wong
    Principal Analytics Architect

    OpenText Corporation
    http://www.actuate.com | http://www.opentext.com

Sign In or Register to comment.