Прокрутка текста в определённой области окна.
<STYLE type=text/css>
.redirstyle { COLOR: #ffffff; FONT-FAMILY: Arial; FONT-SIZE: 9pt; LEFT: 200px; POSITION: absolute; TOP: 176px}
A { COLOR: #ffffff}
A:hover { COLOR: #ffffff; FONT-WEIGHT: bold}
.textstyle { COLOR: white; FONT-FAMILY: Arial; FONT-SIZE: 9pt; HEIGHT: auto; LEFT: -2000px; POSITION: absolute; TEXT-ALIGN: center; WIDTH: 110px}
.coverstyle { BACKGROUND-COLOR: blue; FILTER: alpha(opacity=0,finishopacity=100,style=2,startX=0px,startY=0px,finishX=120px,finishY=160px); HEIGHT: 180px; LEFT: -2000px; POSITION: absolute; WIDTH: 140px}
</STYLE>
<SCRIPT language=JavaScript>
<!–
var covertop=10
var coverleft=10
var coverwidth=140
var coverheight=180
var texttop=covertop
var textleft=coverleft+15
var textwidth=coverwidth-20
var textheight=500
var cliptop=texttop
var clipright=textwidth
var clipbottom=coverheight
var clipleft=0
var clippoints
var step=2
var pause=50
var timer
function init() {
if (document.all) {
document.all.text.style.posTop=texttop
document.all.text.style.posLeft=textleft
document.all.cover.style.posTop=covertop
document.all.cover.style.posLeft=coverleft
scrolltext()
}
}
function scrolltext() {
if (document.all.text.style.posTop > (covertop-textheight)) {
cliptop+=step
clipbottom+=step
clippoints=”rect(“+cliptop+” “+clipright+” “+clipbottom+” “+clipleft+”)”
document.all.text.style.clip=clippoints
document.all.text.style.posTop-=step
}
else {
document.all.text.style.posTop=texttop
cliptop=covertop
clipbottom=coverheight
}
timer= setTimeout(“scrolltext()”,pause)
}
// – End of JavaScript – –>
</SCRIPT>
</head>
<body font size=”30″ background=”images/fon.gif” bgproperties=”fixed” onload=init()><font size=”4″><center>Тряска</center><center></font>
<center><form>
<img src=”images/exit.gif” value=”Закрыть окно” onClick=”javascript:exit()”>
</form>
<script>
function exit(){
close();
}
</script></center>
Похожие записи
Нет комментариев