瞎逛悠
高级会员

无欲则刚
UID 64733
精华
0
积分 559
帖子 229
金钱 559 喜悦币
威望 0
人脉 0
阅读权限 50
注册 2005-6-14
状态 离线
|
[推荐阅读] adodb连接oracle出错,请指教..
利用层,则可以从上往下,也可以使用窗口
这是我写的一个DEMO,希望满足你的要求.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<style type='text/css'>
<!--
body{
MARGIN:0;
PADDING:0;
BORDER:10px solid #ccc;
}
.msg{
BORDER:1PX SOLID #FF9933;
POSITION:ABSOLUTE;
BACKGROUND:#FFFF33;
FONT-SIZE:8pt;
FONT-FAMILY:verdana;
PADDING:3px;
HEIGHT:auto;
OVERFLOW:HIDDEN;
MARGIN:0;
}
//-->
</style>
<script language='JavaScript'>
<!--
//global
var CURRETN_HEIGHT = -120;
var Run_Timer;
function showMSG()
{
var MSG_WIDTH = "300";
var Client_Width = (document.all)?document.body.offsetWidth:document.width;;
var Client_Height = (document.all)?document.body.offsetHeight:document.height;
/*create Msg Window
use div object*/
var MSG_OBJ = document.createElement("div");
var MSG_STYLE = (document.all)?MSG_OBJ.style:MSG_OBJ.document;
//use style table
MSG_OBJ.className = "msg";
//position
MSG_OBJ.WIDTH = MSG_WIDTH;
//alert(CURRETN_HEIGHT);
//窗口移动
//(MSG_HEIGHT>=CURRETN_HEIGHT)?CURRETN_HEIGHT++:clearTimeout(Run_Timer);
if(CURRETN_HEIGHT<0){
MSG_STYLE.top = CURRETN_HEIGHT++;
//alert(MSG_STYLE.top);
}else
clearTimeout(Run_Timer);
MSG_STYLE.left = Client_Width-MSG_WIDTH;
//create msg element
var MSG_CONTENT = document.createTextNode("For this part, you are allowed 30 minutes to write a composition on the topic Can Money Buy Happiness? You should write no less than 100 words and you should base your composition on the outline.");
MSG_OBJ.appendChild(MSG_CONTENT);
//get body object & append the MSG_OBJ
var BODY_OBJ = document.getElementsByTagName("body").item(0);
BODY_OBJ.appendChild(MSG_OBJ);
Run_Timer = setTimeout("showMSG()",10);
}
//-->
</script>
</HEAD>
<BODY onload='showMSG();'>
</BODY>
</HTML> [ 本帖最后由 瞎逛悠 于 2006-8-13 11:24 PM 编辑 ]
|  person help person. |
|