<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title></title>
<script>
<!-- Beginning of JavaScript -
// Edit your messages. You can add as many messages as you like. Try to be short.
// Long messages will slow down the script as you have to enlarge
// the width of your TextRotor (see variable 'scrollerwidth' below messages)
var message = new Array()
message[0]="الجملة الاولى"
message[1]="الجملة الثانية"
message[2]="الجملة الثالثة"
message[3]="الجملة الرابعة"
message[4]="الجملة الخامسة"
message[5]="الجملة السادسة"
//
var scrollerheight=200
var scrollerwidth=500
// نوع الخط
var font_family="Verdana"
// حجم الخط
var font_size=50
// ابعاد النص
var x_textposition=150
var y_textposition=10
// Do not edit the variables below
var i_message=0
var i_loop=0
var max_loop=45
var timer
scrollerwidth=2*scrollerwidth
y_textposition=y_textposition-scrollerheight+font_size
x_textposition=x_textposition-Math.floor(scrollerwidth/2)
function initiate() {
if (document.all) {
document.all.rotationstyle.style.posLeft=x_textposition
document.all.rotationstyle.style.posTop=y_textposition
changemessage()
}
}
function changemessage() {
do_rotate="yes"
rotationstyle.innerHTML=
'<OBJECT ID="rotationobj" CLASSID="CLSID:369303C2-D7AC-11d0-89D5-00A0C90833E6" STYLE="position:relative;width:'+scrollerwidth+'px;height:'+2*scrollerheight+'px">'+
'<PARAM NAME="Line0001" VALUE="SetLineStyle(0)">'+
'<PARAM NAME="Line0002" VALUE="SetLineColor(255,255,255)">'+
'<PARAM NAME="Line0003" VALUE="SetFillColor(0,255,255)">'+
'<PARAM NAME="Line0004" VALUE="SetFont(''+font_family+'', '+font_size+', 400, 0, 0, 0)">'+
'<PARAM NAME="Line0005" VALUE="Text(''+message[i_message]+'',0, 2, 0)">'+
'</OBJECT>'
rotationobj.Rotate(-90,0,0)
startscroll()
}
function startscroll() {
if (i_loop < max_loop) {
rotationobj.Rotate(2,0,0)
i_loop++
timer=setTimeout("startscroll()",20)
}
else {
i_loop=0
timer=setTimeout("endscroll()",2000)
}
}
function endscroll() {
if (i_loop < max_loop) {
rotationobj.Rotate(-2,0,0)
i_loop++
timer=setTimeout("endscroll()",50)
}
else {
i_message++
i_loop=0
if (i_message>=message.length) {i_message=0}
timer=setTimeout("changemessage()",1000)
}
}
// - End of JavaScript - -->
</script>
</head>
<body onLoad="initiate()">
<p align="center">
<SPAN ID="rotationstyle" STYLE="position:absolute">
<OBJECT ID="rotationobj" CLASSID="CLSID:369303C2-D7AC-11d0-89D5-00A0C90833E6" width="14" height="14">
<param name="SourceURL" value>
<param name="CoordinateSystem" value="0">
<param name="MouseEventsEnabled" value="0">
<param name="HighQuality" value="0">
<param name="PreserveAspectRatio" value="-1">
</OBJECT>
</SPAN>
</html>