⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 star_8_1.htm

📁 一个心理测试软件
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<STYLE type=text/css>
#scrollerContent {
	POSITION: absolute;
	left: 19px;
}
body{FONT-SIZE: 9pt; COLOR: #000000;LINE-HEIGHT: 16pt; FONT-FAMILY: '宋体'}
</STYLE>
<script>
var upH = 20;
var upW = 15;
var downH = 20;
var downW = 15;
var dragH = 40;
var dragW = 15;
var scrollH =259;
var speed =9;
var dom = document.getElementById ? true:false;
var nn4 = document.layers ? true:false;
var ie4 = document.all ? true:false;
var mouseY;
var mouseX;
var clickUp = false;
var clickDown = false;
var clickDrag = false;
var clickAbove = false;
var clickBelow = false;
var timer = setTimeout("",500);
var upL;
var upT;
var downL;
var downT;
var dragL;
var dragT;
var rulerL;
var rulerT;
var contentT;
var contentH;
var contentClipH;
var scrollLength;
var startY;
function down(e){
if((document.layers && e.which!=1) || (document.all && event.button!=1)) return true;
getMouse(e);
startY = (mouseY - dragT);
if(mouseX >= upL && (mouseX <= (upL + upW)) && mouseY >= upT && (mouseY <= (upT + upH))){
clickUp = true;
return scrollUp();
}
else if(mouseX >= downL && (mouseX <= (downL + downW)) && mouseY >= downT && (mouseY <= (downT + downH))){
clickDown = true;
return scrollDown();
}
else if(mouseX >= dragL && (mouseX <= (dragL + dragW)) && mouseY >= dragT && (mouseY <= (dragT + dragH))){
clickDrag = true;
return false;
}
else if(mouseX >= dragL && (mouseX <= (dragL + dragW)) && mouseY >= rulerT && (mouseY <= (rulerT + scrollH))){
if(mouseY < dragT){
clickAbove = true;
clickUp = true;
return scrollUp();
}
else{
clickBelow = true;
clickDown = true;
return scrollDown();
}
}
else{
return true;
}
}
function move(e){
if(clickDrag && contentH > contentClipH){
getMouse(e);
dragT = (mouseY - startY);
if(dragT < (rulerT))
dragT = rulerT;
if(dragT > (rulerT + scrollH - dragH))
dragT = (rulerT + scrollH - dragH);
contentT = ((dragT - rulerT)*(1/scrollLength));
contentT = eval('-' + contentT);
moveTo();
if(ie4)
return false;
}
}
function up(){
clearTimeout(timer);
clickUp = false;
clickDown = false;
clickDrag = false;
clickAbove = false;
clickBelow = false;
return true;
}
function getT(){
if(ie4)
contentT = document.all.scrollerContent.style.pixelTop;
else if(nn4)
contentT = document.scrollerContentClip.document.scrollerContent.top;
else if(dom)
contentT = parseInt(document.getElementById("scrollerContent").style.top);
}
function getMouse(e){
if(ie4){
mouseY = event.clientY + document.body.scrollTop;
mouseX = event.clientX + document.body.scrollLeft;
}
else if(nn4 || dom){
mouseY = e.pageY;
mouseX = e.pageX;
}
}
function moveTo(){
if(ie4){
document.all.scrollerContent.style.top = contentT;
document.all.ruler.style.top = dragT;
document.all.drag.style.top = dragT;
}
else if(nn4){
document.scrollerContentClip.document.scrollerContent.top = contentT;
document.ruler.top = dragT;
document.drag.top = dragT;
}
else if(dom){
document.getElementById("scrollerContent").style.top = contentT + "px";
document.getElementById("drag").style.top = dragT + "px";
document.getElementById("ruler").style.top = dragT + "px";
}
}
function scrollUp(){
getT();
if(clickAbove){
if(dragT <= (mouseY-(dragH/2)))
return up();
}
if(clickUp){
if(contentT < 0){
dragT = dragT - (speed*scrollLength);
if(dragT < (rulerT))
dragT = rulerT;
contentT = contentT + speed;
if(contentT > 0)
contentT = 0;
moveTo();
timer = setTimeout("scrollUp()",25);
}
}
return false;
}
function scrollDown(){
getT();
if(clickBelow){
if(dragT >= (mouseY-(dragH/2)))
return up();
}
if(clickDown){
if(contentT > -(contentH - contentClipH)){
dragT = dragT + (speed*scrollLength);
if(dragT > (rulerT + scrollH - dragH))
dragT = (rulerT + scrollH - dragH);
contentT = contentT - speed;
if(contentT < -(contentH - contentClipH))
contentT = -(contentH - contentClipH);
moveTo();
timer = setTimeout("scrollDown()",25);
}
}
return false;
}
function reloadPage(){
location.reload();
}
function eventLoader(){
if(ie4){
upL = document.all.up.style.pixelLeft;
upT = document.all.up.style.pixelTop;
downL = document.all.down.style.pixelLeft;
downT = document.all.down.style.pixelTop;
dragL = document.all.drag.style.pixelLeft;
dragT = document.all.drag.style.pixelTop;
rulerT = document.all.ruler.style.pixelTop;
contentH = parseInt(document.all.scrollerContent.scrollHeight);
contentClipH = parseInt(document.all.scrollerContentClip.style.height);
}
else if(nn4){
upL = document.up.left;
upT = document.up.top;
downL = document.down.left;
downT = document.down.top;
dragL = document.drag.left;
dragT = document.drag.top;
rulerT = document.ruler.top;
contentH = document.scrollerContentClip.document.scrollerContent.clip.bottom;
contentClipH = document.scrollerContentClip.clip.bottom;
}
else if(dom){
upL = parseInt(document.getElementById("up").style.left);
upT = parseInt(document.getElementById("up").style.top);
downL = parseInt(document.getElementById("down").style.left);
downT = parseInt(document.getElementById("down").style.top);
dragL = parseInt(document.getElementById("drag").style.left);
dragT = parseInt(document.getElementById("drag").style.top);
rulerT = parseInt(document.getElementById("ruler").style.top);
contentH = parseInt(document.getElementById("scrollerContent").offsetHeight);
contentClipH = parseInt(document.getElementById("scrollerContentClip").offsetHeight);
document.getElementById("scrollerContent").style.top = 0 + "px";
}
scrollLength = ((scrollH-dragH)/(contentH-contentClipH));
if(nn4){
document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE | Event.MOUSEUP);
window.onresize = reloadPage;
}
document.onmousedown = down;
document.onmousemove = move;
document.onmouseup = up;
}
</script>

</head>

<body onload="eventLoader()">
<SPAN id=drag style="LEFT: 535px;POSITION: absolute; TOP: 27px">
 <IMG height=40 src="image/slider.gif" width=15>
</SPAN>
<SPAN id=ruler style="TOP: 27px">
</SPAN>
<SPAN id=up style="LEFT: 535px; POSITION: absolute; TOP: 6px">
 <IMG height=20 alt="" src="image/scrollup.gif" width=15 border=0>
</SPAN>
<SPAN id=down style="LEFT: 535px; POSITION: absolute; TOP: 287px">
 <IMG height=20 alt="" src="image/scrolldown.gif" width=15 border=0>
</SPAN>
<SPAN id=scrollerContentClip style=" LEFT: 2px; VISIBILITY: visible; OVERFLOW: hidden; WIDTH: 525px; CLIP: rect(0px 540px 310px 0px); POSITION: absolute; TOP: 2px; HEIGHT: 310px;border:#708CB0 1px solid">
<SPAN
id=scrollerContent style="width: 490px; height: 300px">
<p><b>天蝎座的传说:天蝎的无奈</b>  
<p>  世上原本是没有沙漠的,没有沙漠也没有琥珀。 
<p>  太阳神的宫殿,是用华丽的圆柱支撑着,镶着闪亮的黄金和璀璨的宝石,飞檐嵌着雪白的象牙,两扇银质的大门上雕着美丽的花纹,记载着人间无数美好而又古老的传说。太阳神阿波罗的儿子法厄同,女儿赫莉就居住在这个美丽的宫殿里。法厄同天生美丽性感,冲动自负;妹妹赫莉温柔善良,却没能得到父亲的恩赐,拥有一张太阳神那样美丽的面孔,这使得她很无奈,因为她深深爱着的是法厄同。同样喜欢法厄同的还有绝美的水泉女神娜伊。 
<p>  日复一日,年复一年,在无尽的相思与失望之中赫莉渐渐变得忧郁而敏感,自负的法厄同并不理解她,依旧与娜伊成双成对。每当赫莉有所表示,法厄同总是以他们是同一个父亲为由将赫莉挡在门外。赫莉再也无法忍受他的绝情和冷漠,终于,一个无知的谎言在她的脑海中诞生了。有一天,她找到法厄同,对他说:“亲爱的哥哥,我不能再隐瞒你了,虽然她是我们的母亲,我本不该嘲笑她什么,但我不得不告诉你,你并非天国的子孙,而是克吕墨涅,也就是我们亲爱的母亲,和一个不知名的凡人所生。”冲动的法厄同轻易的相信了一向不说谎的妹妹,跑到父亲阿波罗那里问个究竟。但是无论阿波罗怎样再三保证,他就是不相信自己是父亲的亲生儿子。最后,太阳神无奈,指着冥河起誓,为了证明法厄同是自己的儿子,无论他要什么,他都会答应。然而法厄同选择的却是太阳神万万没有料到的太阳车!要知道法厄同根本不会驾驶太阳车,如果不按照规定的航线行走,那必将酿成大祸。可是,自负的儿子完全听不进劝告,跳上太阳车,冲出了时间的两扇大门。 
<p>  星星一颗颗隐没了,金色的太阳车,长着双翼的飞马,无尽的天空,魔鬼一样的幻象……法厄同根本控制不了太阳车,任由它在时空里毁灭性的穿梭。草原干枯了,森林起火了,庄稼烧毁了,湖泊变成了沙漠!地上的人们不是冻死就是热死,天昏地暗,人世间充斥了无数的怨气。赫莉眼睁睁看着惨剧的发生,知道是这一切都是自己的错,她无奈的叹着气,狠心放出一只毒蝎,咬住了法厄同的脚踝,众神这才欲趁机阻止他,但是一切都为时太晚了,燃烧着的法厄同和太阳车一起从天空坠落到广阔的埃利达努斯河里。水泉女神娜伊含泪将他埋葬。而赫莉绝望的痛哭了四个月,最后变成了一棵白杨树,她的眼泪变成了晶莹的琥珀。宙斯为了警示人类自负的弱点,以那只立了大功的蝎子命名了一个星座,叫天蝎座。<p>
</SPAN></SPAN>
</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -