اقتباس المشاركة الأصلية كتبت بواسطة ZINABIDIN مشاهدة المشاركة
كيف أضع كتابة متحركة كاني أكتب في تلك اللحظة
لما تفتح الاندكس تجيك كتابة وكأني انا كتب فيه في تلك اللحظة
أرجو انك فهمتني
وأرجو الافادة ان امكن

ضع هذا الكود في منطقة body مع كتابة الجمله اللتي تريد كما هو موضع أدناه

كود PHP:
<p id='anima' style="position:absolute;font-size:20;background-color:white;">
</
p>
<
br>
<
br>

<
script language="JavaScript">

// Visit http://www.star28.com/ for more code

<!-- Begin
text 
"hacked by";
word text.split('~');
= -1;           //letter count
0;            //which word in array is to be spelled
start 0;      //variable to hold cycles of the blink
scount 0;  //variable to hold cycles of the mispell
function checkIt() {
with(document.all.anima) {
if(
innerText.charAt(innerText.length-1) == "_") {
innerText innerText.substring(0innerText.length 1);
return 
true;
}
else {
innerText innerText "_";
return 
false;
      }
   }
}
function 
blinkfor(counttiming) {
with(document.all.anima) {
if(
start count) {
if(
checkIt()) {
start++;
}
mistake 'blinkfor('+count+','+timing+')';
setTimeout('eval(mistake)'timing);
}
else {
start 0;
i++;
call_It();
      }
   }
}
function 
mispell(offset,correction) {
with(document.all.anima) {
if(
scount offset) {
if(!
checkIt()) {
innerText innerText.substring(0innerText.length-2) + "_";
scount++;
}
mistake 'mispell(' offset ', "' correction '")';
setTimeout("eval(mistake)"150);
}
else {
if(
correction == '' && scount == offset ) {
offset;
scount++;
}
if(
offset 0) {
if(
checkIt()) {
innerText += correction.charAt(correction.length offset) + "_";
offset--;
}
mistake 'mispell(' offset ',"' correction '")';
setTimeout("eval(mistake)"150);
}
else {
scount 0;
j++;
innerText innerText.substring(0innerText.length 1);
call_It();
         }
      }
   }
}
function 
spellit(string) {
with(document.all.anima) {
if(
<= string.length) {
if(
string.charAt(i) == '/') {
NumErrs string.charAt(1);
NewLets string.substring(2NumErrs);
mispell(NumErrs,NewLets);
}
else if(
<= string.length 1) {
i++;
innerText string.substring(0,i) + "_";
mistake 'spellit("' string '")';
setTimeout("eval(mistake)"150);
}
else {
innerText string.substring(0i);
j++;
call_It();
         }
      }
   }
}
function 
call_It() {
with(document.all) {
if(
== -1){
blinkfor(4150);
}
else if(
<= word.length 1) {
spellit(anima.innerText " " word[j]);

else {
blinkfor(100,230);
      }
   }
}
if(
document.all) {
call_It();
}
//  End -->
</script