Hi .I have these functions lined up. The function scroll calls the function and should pass a value ypos to move function. But it is not passing .I tried all the methods.Could someone clear my doubt<BR><BR>&#060;script language="JavaScript"&#062;<BR>var pos1= 10;<BR>var move1= false;<BR>var dir1= false;<BR>var ns4 = (document.layers)? true:false<BR>var ie4 = (document.all)? true:false<BR> <BR>function scroll()<BR>{<BR> var xpos1 = document.all(&#039parentLayer&#039).offsetTop;<BR> if (ie4) <BR> {<BR> var sElem = "";<BR> sElem = document.body.componentFromPoint(event.clientX,eve nt.clientY);<BR> var ypos = event.clientY<BR> if (sElem = "scrollbarVThumb")<BR> {<BR> move1= !move1;<BR> setInterval(&#039move()&#039, 20);<BR> }<BR>}<BR>function startStop(which) {<BR> <BR> if (which == 1) move1= !move1;<BR> }<BR>function move() {<BR> if (move1) {<BR> //move layer<BR> if (dir1) pos1--<BR> else pos1++;<BR><BR> if (pos1 &#060; 10) dir1= false;<BR> if (pos1 &#062; ypos) dir1= true;<BR> if (ns4) document.layers["parentLayer"].top= 10 + pos1;<BR> if (ie4) document.all("parentLayer").style.top= 10 + pos1;<BR><BR> <BR> }<BR>}<BR>&#060;/script&#062;