I'm really not sure exactly what you're trying to accomplish... If I understand you right, here is how you can use absolute positioning to put the small textarea (PH) on top of the horizontal scrollbar of the id_parent div. Trying to figure out what you're trying to do with the javascript but not quite following it...
<script language="JavaScript">
function showExpandedTextArea(){
var expandedTextAreaDivVar = document.getElementById('expendedtextarea_div');
var id_parentVar = document.getElementById('id_parent');
expandedTextAreaDivVar.style.display="";
var divTextarea = document.getElementById('expandedTextArea_0');
}
</script>
<style type="text/css">
div.scrollable{
height:150px;
border:1px solid;
width :350px;
position:absolute;
overflow-x: scroll;
}
</style>
<div class="scrollable" id="id_parent">
textarea<TEXTAREA NAME="expandedTextArea_0" ROWS="5" COLS="15"></TEXTAREA>
</div>
<div id="div_2" style="position:absolute;left:40px; top: 134px;">
PH<TEXTAREA name="minValText_0" rows="1" cols = "22" ></TEXTAREA><INPUT TYPE="image" SRC="\arrow.gif" onclick="showExpandedTextArea();">
</div>
Shawn Steward
Web Developer
www.shawnsteward.com