Difference between revisions of "Msc1G2:Group"

From uf
Jump to: navigation, search
(TUD 2)
(TUD 2)
Line 31: Line 31:
  
  
function addEvent( obj, type, fn ) {
+
<img onmouseover="bigImg(this)" src="smiley.gif" alt="Smiley">
 
+
    if ( obj.attachEvent ) {
+
        obj['e'+type+fn] = fn;
+
        obj[type+fn] = function(){obj['e'+type+fn] ( window.event );}
+
        obj.attachEvent( 'on'+type, obj[type+fn] );
+
    } else
+
        obj.addEventListener(type, fn, false);
+
    }
+
 
+
    function setUpFieldEvents(){
+
        var stripeTables = document.getElementsByClassName("stripe_table");
+
        var tableBodies = stripeTables.tBodies;
+
 
+
            addEvent(tableBodies, "mouseover", hoverHighlight);
+
            addEvent(tableBodies, "mouseout", undoHighlight);
+
    }
+
 
+
    function hoverHighlight(){
+
            var stripeTables = document.getElementsByClassName("stripe_table");
+
            var tableBodies = stripeTables.tBodies;
+
            var tableData = tableBodies.getElementsByTagName("td");
+
    }
+
 
+
    function undoHighlight(){
+
 
+
    }
+

Revision as of 22:58, 1 November 2017


TUD 2

Banner1.png


Hidde Manders - Dafne Swank - Mary Ann Berendson - Arav Kumar - Szymon Lapaj - Koen Martens




Error: bad URI in <img>!