देखो vwphillips करने पर '2010/03/06 से पोस्ट, 03:35 http://www.codingforums.com/archive/index.php/t-190887.html
में
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
function Div(id,ud) {
var div=document.getElementById(id);
var h=parseInt(div.style.height)+ud;
if (h>=1){
div.style.height = h + "em"; // I'm using "em" instead of "px", but you can use px like measure...
}
}
</script>
</head>
<body>
<div>
<input type="button" value="+" onclick="Div('my_div', 1);">
<input type="button" value="-" onclick="Div('my_div', -1);"></div>
</div>
<div id="my_div" style="height: 1em; width: 1em; overflow: auto;"></div>
</body>
</html>
यह मेरे लिए काम करता है :)
रहें सेंट संबंध है!
आप jQuery से परिचित हो जाना चाहिए, यह बातें रास्ता आसान बना देता है। :) www.jquery.com – odaa