就你这段代码而言, 没有什么问题的呀:
function show_thisUserInfo_lay_from_list(val1)
{
  var scroll_h = parseInt(parent.document.body.scrollTop);
  if(scroll_h == 0) scroll_h = 112;
  with(top.document.all.thisUserInfo_lay_from_list.style)
  {
    left = (screen.width-12)/2;
    top  = scroll_h;
    display = "";
    position= "absolute";
  }
  top.document.all.thisUserInfoCard_from_list.src = "/thisUserInfoCardAction.do?userid="+ val1;
}