Head区加入:
<style type="text/css">
.posstyle { LEFT: 778px; POSITION: absolute; TOP: 160px }
SPAN { FONT-SIZE: 14px; COLOR: #333333; LINE-HEIGHT: 140%; FONT-FAMILY: "宋体"; TEXT-DECORATION: none }
</style><script type="text/javascript">
<!--
function myscroll(){
posnum.innerHTML="当前位置:"+document.body.scrollTop;
pos.style.top=160+document.body.scrollTop;
document.Form1.txt_pos.value=document.body.scrollTop;
}
--></script>
Body区加入:
<div id="pos" class="posstyle"><table border="0">
<tr>
<td valign="top"><div id="posnum">当前位置:0</div>
<img border="0" src="Images/save.gif"><asp:LinkButton ID="save" Runat="server" Text="智能存储" ToolTip="点击对当前位置存储"></asp:LinkButton></td>
<td><img border="0" src='Images/pos.gif'></td>
</tr>
</table>
</div>

解决方案 »

  1.   

    首先,在页面中实现随拉动滚动条而移动的广告窗口,与ASPX没有任何关系,是用JAVASCRIPT实现的。在BODY中ONLOAD函数。因为这是客户端事件。其次,要实现你所述的功能,可以将JS与ASPX结合起来应用。你得先找到随窗口移动而移动的JS代码,然后在后台用RESPONSE.write输出JS。其中可以把DATAGRID的表头TEXT输出到里面。不过,我觉得没什么实际意义:)
      

  2.   

    给你一个例子(直接把代码复制到HTML中就可以了,放到<body></body>中):
    <!-- gif floating begin -->
    <script language="JavaScript">
    <!--
    document.ns = navigator.appName == "Netscape"
    //--
    var rnumx1=new Array();
    var rnumx2;
    var rnumx3;
    rnumxtemp="";
    for(i=0;i<3;i++){
    rnumx2 =Math.round(Math.random()*10);
    rnumx2!=10 ? rnumx3=rnumx2:rnumx3=9;
    //document.write("["+rnumx3+"]");
    rnumx1[i]=rnumx3;
    if (rnumx1[0]>4||rnumx1[0]<1){
    rnumx1[0]=1;
    }
    if (rnumx1[1]>2&&rnumx1[0]==4){
    rnumx1[1]=1;
    }
    rnumxtemp+=new String(rnumx1[i]);
    }
    //--
    window.screen.width>800 ? imgheight=150:imgheight=rnumxtemp
    window.screen.width>800 ? imgright=20:imgright=20
    window.screen.width>800 ? imgleft=20:imgleft=20
    function threenineload()
    {
    if (navigator.appName == "Netscape")
    {
    if(document.getElementById) {
    document.getElementById('threenine').pageY=pageYOffset+window.innerHeight-imgheight;
    document.getElementById('threenine').pageX=imgright;} else {
    document.threenine.pageY=pageYOffset+window.innerHeight-imgheight;
    document.threenine.pageX=imgright;
    }
    threeninemove();
    }
    else
    {
    threenine.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
    threenine.style.right=imgright;
    threeninemove();
    }
    }
    function threeninemove()
    {
    if(document.ns)
    {
    if(document.getElementById) {
    document.getElementById('threenine').style.top=pageYOffset+window.innerHeight-imgheight
    document.getElementById('threenine').style.right=imgright;
    } else {
    document.threenine.top=pageYOffset+window.innerHeight-imgheight
    document.threenine.right=imgright;
    }
    setTimeout("threeninemove();",40)
    }
    else
    {
    threenine.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
    threenine.style.right=imgright;
    setTimeout("threeninemove();",80)
    }
    }
    function MM_reloadPage(init) { //reloads the window if Nav4 resized
    if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
    else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    }
    MM_reloadPage(true)
    {
    document.write("<div id=threenine style='position: absolute;width:64;top:200;visibility: visible;z-index: 1'><a href=http://www.csdn.net target=_blank><img src=images/csdn.gif border=0 width=100 height=85></a></div>");
    threenineload()
    }
    //-->
    </script>
    <!-- gif floating end -->
      

  3.   

    注:因为图片和连接的内容不同,你要修改一下最后部分,以便适合你的使用。
    (包括超链接地址、图片地址、图片宽度和高度)
    MM_reloadPage(true)
    {
    document.write("<div id=threenine style='position: absolute;width:64;top:200;visibility: visible;z-index: 1'><a href=http://www.csdn.net target=_blank><img src=images/csdn.gif border=0 width=100 height=85></a></div>");
    threenineload()
    }
    //-->
    </script>
    <!-- gif floating end -->
      

  4.   

    到網上找一個网有這种效果的,找到它的javascript代碼放到你的aspx頁中,就可以了,不難.