Short answer: No.
I've used this script, highly modified, on a site I master. I recall that the vertical position was difficult to get exact and that it required editing the script. I'm not sure I ever got it exact rather, I recall getting it about where I wanted it vertically. Things get even more complicated when the page you are dropping down over is displayed at various resolutions. Bear in mind that this is a drop down box, meant to cover other content and thrust itself into the user's attention. It also can be dismissed to render the content underneath it visible once again.
Added Later:
This is where the 'action' is as far as the vertical position goes:
Code:
function dropin(){
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
if (parseInt(crossobj.top)<100+scroll_top)
crossobj.top=parseInt(crossobj.top)+40+calunits
else{
clearInterval(dropstart)
bouncestart=setInterval("bouncein()",50)
}
}
Let's take a look at those two red lines:
Code:
if (parseInt(crossobj.top)<100+scroll_top)
crossobj.top=parseInt(crossobj.top)+40+calunits
100 is a limit. Once the box is 100px from the top, dropping stops. 40 is an increment. It is the number of pixels the box drops at a time. By making the increment smaller and adjusting the limit, you can achieve a fairly exact final vertical position for the top of the box.
Bookmarks