abbconsole.cadency.trintech.com Open in urlscan Pro
2606:4700::6810:191b  Public Scan

URL: https://abbconsole.cadency.trintech.com/console/javascript/ie-scripts.js
Submission: On July 24 via api from GB — Scanned from GB

Form analysis 0 forms found in the DOM

Text Content

/* This script is based on the "Son of Suckerfish" technique discussed here: http://www.htmldog.com/articles/suckerfish/ . 
It is run when the window loads and assigns onmouseenter and onmouseleave events to each of the li's in the nav. These events 
dynamically assignclasses to the li's which make them have the same appearance as the :hover styles (which IE does not support on 
elements other than <a> tags. These dynamically assigned classes are "sfhover" and "sfhoverparent" (for all li's with class="parent").
*/

sfHover = function() {
    if (document.getElementById("nav")) {
        var sfEls = document.getElementById("nav").getElementsByTagName("li");
        var btnSpans = document.getElementsByTagName("a");
        for (var i=0; i<sfEls.length; i++) {

            if (sfEls[i].className == "parent") {
                sfEls[i].onmouseenter=function() {
                this.className="sfhoverparent";
                }
                sfEls[i].onmouseleave=function() {
                this.className=this.className="parent";
                }
            } else {
                sfEls[i].onmouseenter=function() {
                this.className="sfhover";
                }
                sfEls[i].onmouseleave=function() {
                this.className=this.className="";
                }
            }
        }
    }
}