Difference between revisions of "Template:ETH Zurich"
m |
m |
||
Line 14: | Line 14: | ||
function expand(obj) { | function expand(obj) { | ||
− | if (getStyle(obj.parentElement | + | if (getStyle(obj.parentElement,'max-height') == "999999px") { |
obj.parentElement.style.maxHeight = "100px"; | obj.parentElement.style.maxHeight = "100px"; | ||
obj.getElementsByTagName('img')[0].style.backgroundPosition = "0px 0px"; | obj.getElementsByTagName('img')[0].style.backgroundPosition = "0px 0px"; |
Revision as of 14:58, 19 August 2015