No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
2 Posted Topics
Hi. I am trying to develop a small webshop for some friends, and I tought it was working very well until I accidentally tested it in IE (works fine in Chrome and Firefox). When someone clicks the "add to basket" there is an On-Click that triggers a function. That function … | |
Re: [QUOTE=hunkychop;563390]try this: [CODE=html] <div id="div1" style="background:#003399; height:152px; width:175px; position:absolute; left: 595px; top: 181px;">div 1</div> <div id='div2' style="background:#99FF00; height:500; width:500; position:absolute; left: 44px; top: 143px;">div 2</div> <input type="button" onclick="javascript:matchHeight('div1','div2');" value="match height" /> <script type="text/javascript"> function matchHeight(id1,id2) { var el1=document.getElementById(id1); var el2=document.getElementById(id2); el2.style.height = el1.style.height; } </script> [/CODE][/QUOTE] Hi. I know this … |
The End.