AK Parti |AKParti Forum |AK Gençlik |Recep Tayyip Erdoğan |AKPARTİ Gençlik Forumu|

AK Parti |AKParti Forum |AK Gençlik |Recep Tayyip Erdoğan |AKPARTİ Gençlik Forumu| (https://www.akpartiforum.com/index.php)
-   Javascript (https://www.akpartiforum.com/forumdisplay.php?f=399)
-   -   Görünüp Kaybolan Yazı Efekti (https://www.akpartiforum.com/showthread.php?t=55459)

OTTOMAN 02-10-2009 14:56

Görünüp Kaybolan Yazı Efekti
 
Kod:

<SCRIPT language=JavaScript>
if (document.all){
Size=14;
Font='Arial';
Colour='#115585';
typespeed=50;
containerwidth=380;
containerheight=30;
msg=new Array()
msg[0]=" Buraya mesajınızı yazacaksınız...";
msg[1]="Buraya mesajınızı yazacaksınız...";
msg[2]="Buraya mesajınızı yazacaksınız...";
msg[3]="Buraya mesajınızı yazacaksınız...";
msg[4]="Buraya mesajınızı yazacaksınız...";
Msgs="<div id='X' style='position:relative;"
+"width:"+containerwidth+";height:"+containerheight+";font-family:"+Font+";"
+"font-size:"+Size+";color:"+Colour+"'></div>";
fade=100;
next=0;
pos=0;
function Type(){
if (fade == 100) pos++;
if (msg[next].substring(pos-1,pos) == " ") pos++;
if (pos > msg[next].length*1.5) {fade-=3}
if (fade <= 0) {fade=100;pos=0;next++}
if (next == msg.length) {next=0}
text=msg[next].substring(0,pos);
X.innerHTML=text;
X.style.filter='alpha(opacity='+fade+')';
setTimeout('Type()',typespeed);
}
}
</SCRIPT>
</HEAD>
<BODY onload="if (document.all) Type()">
<SCRIPT language=JavaScript>
if (document.all) document.write(Msgs)
</SCRIPT>
</BODY>



All times are GMT +3. The time now is 12:11.

Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
AK Parti Forum 2007-2023