日期:2014-05-16  浏览次数:20424 次

很急,在线等.如何在页面的右下缓慢的弹出一个小方框的信息,应该是Div的
实现后立即给分,100

------解决方案--------------------

<HTML>
<HEAD>
<META http-equiv= "content-type " content= "text/html; charset=gb2312 "/>
<base href= "http://dotnet.aspx.cc/ ">
<LINK href= "Images/favicon.ico " rel= "Shortcut Icon "/>
<LINK href= "Detail.css " type= "text/css " rel= "stylesheet "/>
</HEAD>
<body>
<div id= "eMeng " style= "BORDER-RIGHT:#455690 1px solid; BORDER-TOP:#a6b4cf 1px solid; Z-INDEX:99999; LEFT:0px; VISIBILITY:hidden; BORDER-LEFT:#a6b4cf 1px solid; WIDTH:180px; BORDER-BOTTOM:#455690 1px solid; POSITION:absolute; TOP:0px; HEIGHT:116px; BACKGROUND-COLOR:#c9d3f3 ">
<table width= "100% " border= "0 " cellpadding= "0 " cellspacing= "0 " style= "BORDER-TOP:#ffffff 1px solid; BORDER-LEFT:#ffffff 1px solid "
bgcolor= "#cfdef4 ">
<tr>
<td height= "24 " width= "26 " style= "FONT-SIZE:12px;BACKGROUND-IMAGE:url(Images/msgTopBg.gif);COLOR:#0f2c8c "
valign= "middle "> <img src= "image/meng.gif " hspace= "5 " align= "absMiddle " vspace= "1 "/> </td>
<td style= "FONT-WEIGHT:normal;FONT-SIZE:9pt;BACKGROUND-IMAGE:url(Images/msgTopBg.gif);COLOR:#1f336b;PADDING-TOP:4px "
valign= "middle " width= "100% "> 温馨提示: </td>
<td style= "BACKGROUND-IMAGE:url(Images/msgTopBg.gif);PADDING-TOP:2px " valign= "middle "
width= "19 " align= "right "> <img src= "Images/msgClose.jpg " hspace= "3 " style= "CURSOR:pointer " onclick= "closeDiv() " title= "关闭 "/> </td>
</tr>
<tr>
<td colspan= "3 " height= "90 " style= "PADDING-RIGHT:1px;BACKGROUND-IMAGE:url(Images/msgBottomBg.jpg);PADDING-BOTTOM:1px ">
<div style= "BORDER-RIGHT: #b9c9ef 1px solid; PADDING-RIGHT: 13px; BORDER-TOP: #728eb8 1px solid; PADDING-LEFT: 13px; FONT-SIZE: 9pt; PADDING-BOTTOM: 13px; BORDER-LEFT: #728eb8 1px solid; WIDTH: 100%; COLOR: #1f336b; PADDING-TOP: 18px; BORDER-BOTTOM: #b9c9ef 1px solid; HEIGHT: 100% "> 请打开您的音箱收听不同的音乐吧,随机播放。快试试吧!:) <br/>
<div align= "center "> <a href= "# " onclick= "window.parent.frames[ 'TopMusic '].location= 'Play.aspx ';return false "
style= "FONT-WEIGHT:bold;COLOR:navy "> 收听全部 </a> </div>
</div>
</td>
</tr>
</table>
</div>

<script language= "JavaScript " type= "text/javascript ">
var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,i = 0;
function getMsg()
{
try{
divTop = parseInt(document.getElementById( "eMeng ").style.top,10)
divLeft = parseInt(document.getElementById( "eMeng ").style.left,10)
divHeight = parseInt(document.getElementById( "eMeng ").offsetHeight,10)
divWidth = parseInt(document.getElementById( "eMeng ").offsetWidth,10)
docWidth = document.body.clientWidth;
docHeight = document.body.clientHeight;
document.getElementById( "eMeng ").style.top = parseInt(document.body.scrollTop,10) + docHeight + 10;// divHeight
document.getElementById( "eMeng ").style.left = parseInt(document.body.scrollLeft,10) + docWidth - divWidth
document.getEle