وهذا السكريبت حولته لك إلى php
كود:
<?php
echo " <TABLE dir=ltr cellSpacing=0 cellPadding=0 width=\"100%\" border=0 height=\"13\">\n";
echo " <TR>\n";
echo " <TD height=\"13\" width=\"5%\" style=\"font-style: normal; font-variant: normal; font-weight: normal;
font-size: 10pt; font-family: arial, helvetica, verdana\"> </TD>\n";
echo " <TD height=\"13\" width=\"95%\" nowrap style=\"font-style: normal; font-variant: normal; font-weight:
normal; font-size: 10pt; font-family: arial, helvetica, verdana\">\n";
echo "<script type=\"text/javascript\">\n";
echo "\n";
echo "/***********************************************\n";
echo "* Pausing updown message scroller- © Dynamic Drive DHTML code library
(www.dynamicdrive.com)\n";
echo "* This notice MUST stay intact for legal use\n";
echo "* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code\n";
echo "***********************************************/\n";
echo "\n";
echo "//configure the below five variables to change the style of the scroller\n";
echo "var scrollerdelay='2200' //delay between msg scrolls. 3000=3 seconds.\n";
echo "var scrollerwidth='240px'\n";
echo "var scrollerheight='20px'\n";
echo "var scrollerbgcolor=''\n";
echo "//set below to '' if you don't wish to use a background image\n";
echo "var scrollerbackground=''\n";
echo "\n";
echo "//configure the below variable to change the contents of the scroller\n";
echo "var messages=new Array()\n";
echo "messages[0]=\"<font style='FONT-SIZE: 11px; FONT-FAMILY: Tahoma; font-weight:700'><a
target='_blank' href='http://www.hamooruae.com/vb/index.php'>السمك
الكبير ياكل السمك
الصغير</a></font>\"\n";
echo "messages[1]=\"<font style='FONT-SIZE: 11px; FONT-FAMILY: Tahoma; font-weight:700'><a
target='_blank' href='http://www.swalif.net/softs/showthread.php?
t=137088'>أعلانك في وصلات
يحقق أهدافك. أضغط
هنا</a></font>\"\n";
echo "messages[2]=\"<font style='FONT-SIZE: 11px; FONT-FAMILY: Tahoma; font-weight:700'><a
target='_blank' href='http://www.awal4host.com/'>مؤسسة أول
لخدمات الإنترنت</a></font>\"\n";
echo "messages[3]=\"<font style='FONT-SIZE: 11px; FONT-FAMILY: Tahoma; font-weight:700'><a
target='_blank' href='http://arabmesh.com'>استضافه
مواقع - دي جي شات -
تصميم</a></font>\"\n";
echo "messages[4]=\"<font style='FONT-SIZE: 11px; FONT-FAMILY: Tahoma; font-weight:700'><a
target='_blank' href='http://www.l99l.com'>مجالس
الديوانية - ملتقى
الاصاله العربيه</a></font>\"\n";
echo "\n";
echo "///////Do not edit pass this line///////////////////////\n";
echo "\n";
echo "var ie=document.all\n";
echo "var dom=document.getElementById\n";
echo "\n";
echo "if (messages.length>2)\n";
echo "i=2\n";
echo "else\n";
echo "i=0\n";
echo "\n";
echo "function move(whichdiv){\n";
echo "tdiv=eval(whichdiv)\n";
echo "if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){\n";
echo "tdiv.style.top=0+\"px\"\n";
echo "setTimeout(\"move(tdiv)\",scrollerdelay)\n";
echo "setTimeout(\"move2(second2_obj)\",scrollerdelay)\n";
echo "return\n";
echo "}\n";
echo "if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){\n";
echo "tdiv.style.top=parseInt(tdiv.style.top)-5+\"px\"\n";
echo "setTimeout(\"move(tdiv)\",50)\n";
echo "}\n";
echo "else{\n";
echo "tdiv.style.top=parseInt(scrollerheight)+\"px\"\n";
echo "tdiv.innerHTML=messages[i]\n";
echo "if (i==messages.length-1)\n";
echo "i=0\n";
echo "else\n";
echo "i++\n";
echo "}\n";
echo "}\n";
echo "\n";
echo "function move2(whichdiv){\n";
echo "tdiv2=eval(whichdiv)\n";
echo "if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){\n";
echo "tdiv2.style.top=0+\"px\"\n";
echo "setTimeout(\"move2(tdiv2)\",scrollerdelay)\n";
echo "setTimeout(\"move(first2_obj)\",scrollerdelay)\n";
echo "return\n";
echo "}\n";
echo "if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){\n";
echo "tdiv2.style.top=parseInt(tdiv2.style.top)-5+\"px\"\n";
echo "setTimeout(\"move2(second2_obj)\",50)\n";
echo "}\n";
echo "else{\n";
echo "tdiv2.style.top=parseInt(scrollerheight)+\"px\"\n";
echo "tdiv2.innerHTML=messages[i]\n";
echo "if (i==messages.length-1)\n";
echo "i=0\n";
echo "else\n";
echo "i++\n";
echo "}\n";
echo "}\n";
echo "\n";
echo "function startscroll(){\n";
echo "first2_obj=ie? first2 : document.getElementById(\"first2\")\n";
echo "second2_obj=ie? second2 : document.getElementById(\"second2\")\n";
echo "move(first2_obj)\n";
echo "second2_obj.style.top=scrollerheight\n";
echo "second2_obj.style.visibility='visible'\n";
echo "}\n";
echo "\n";
echo "if (ie||dom){\n";
echo "document.writeln('<div id=\"main2\"
style=\"position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hidden;background-
color:'+scrollerbgcolor+' ;background-image:url('+scrollerbackground+')\">')\n";
echo "document.writeln('<div
style=\"position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+'
'+scrollerheight+' 0);left:0px;top:0px\">')\n";
echo "document.writeln('<div id=\"first2\"
style=\"position:absolute;width:'+scrollerwidth+';left:0px;top:1px;\">')\n";
echo "document.write(messages[0])\n";
echo "document.writeln('</div>')\n";
echo "document.writeln('<div id=\"second2\"
style=\"position:absolute;width:'+scrollerwidth+';left:0px;top:0px;visibility:hidden\">')\n";
echo "document.write(messages[dyndetermine=(messages.length==1)? 0 : 1])\n";
echo "document.writeln('</div>')\n";
echo "document.writeln('</div>')\n";
echo "document.writeln('</div>')\n";
echo "}\n";
echo "\n";
echo "if (window.addEventListener)\n";
echo "window.addEventListener(\"load\", startscroll, false)\n";
echo "else if (window.attachEvent)\n";
echo "window.attachEvent(\"onload\", startscroll)\n";
echo "else if (ie||dom)\n";
echo "window.onload=startscroll\n";
echo "\n";
echo " </script>\n";
echo "\n";
?>