📄 star_1_1.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>
</SPAN></SPAN>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -