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>
<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>
解决方案 »
- 同一界面传参的问题!!!
- asp 翻页怎么实现?
- 关于TreeListView动态加载的问题
- 存储过程参数必须是数据表中的字段吗?
- OnMouseOver加在哪呢?急等
- 表示层 如何关闭 业务层的 DATAREADER ???否则会出现连接池已满的错误。
- (再给20分解决同样问题!!!!)asp.net中在datagrid中加入图片按钮无法触发事件!!
- 大家帮帮我,字符编码问题
- 刚学,发现asp.net中控件通过事件在服务器端执行代码,在asp中也有的啊?
- 一个通过客户端脚本导出Excel显示格式的问题?
- @@一个关于SQL语句的问题,请朋友们帮忙@@
- 关于在datagrid中使用"汇总"的问题,希望大家指教:)
<!-- 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 -->
(包括超链接地址、图片地址、图片宽度和高度)
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 -->