CharisKomos (Talk | contribs) |
CharisKomos (Talk | contribs) |
||
Line 124: | Line 124: | ||
svgDoc.getElementById(item.id).addEventListener('click', function(){ svgFunctionality(item) }); | svgDoc.getElementById(item.id).addEventListener('click', function(){ svgFunctionality(item) }); | ||
svgDoc.getElementById(item.image_id).setAttribute('opacity', '0'); | svgDoc.getElementById(item.image_id).setAttribute('opacity', '0'); | ||
− | svgDoc.getElementById(item.id).addEventListener('mouseover', function(){ | + | svgDoc.getElementById(item.id).addEventListener('mouseover', function(){ this.setAttribute('cursor', 'pointer') }); |
}); | }); | ||
Line 131: | Line 131: | ||
svgDoc.getElementById(item.id).addEventListener('click', function(){ svgFunctionality(item) }); | svgDoc.getElementById(item.id).addEventListener('click', function(){ svgFunctionality(item) }); | ||
svgDoc.getElementById(item.image_id).setAttribute('opacity', '0'); | svgDoc.getElementById(item.image_id).setAttribute('opacity', '0'); | ||
− | svgDoc.getElementById(item.id).addEventListener('mouseover', function(){ | + | svgDoc.getElementById(item.id).addEventListener('mouseover', function(){ this.setAttribute('cursor', 'pointer') }); |
}); | }); | ||
Revision as of 18:06, 21 October 2017