|
|
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
Hidde Manders - Dafne Swank - Mary Ann Berendson - Arav Kumar - Szymon Lapaj - Koen Martens
Error: bad URI in <img>!