89,946 Mesaj - 11,501 Konu - 54,822 Üye - Son üye: veLLe
[TIKLAYIN] ReklamStore ile sitenizden para kazanın!

Hosting Hizmetleri TOPlist TOPlist
Sayfa: 1 [2] |   Aşağı git
 
Gönderen Konu: ileri düzey html kodları  (Okunma Sayısı 1298 defa)
0 Üye ve 1 Ziyaretçi konuyu incelemekte.
p_kilicarslan
Master Üye [%28]
*****

İtibarı : 223
Offline

Mesaj Sayısı: 1,381


Alayına İsyan!!! انتفاضة لجميع!!!











« Yanıtla #6 : Ağustos 15, 2007, 02:28:06 ÖS »



Typingtext;

1.Adım;

Aşağıdaki kodları <head> tagının hemen altına yerleştirin
<script type="text/javascript" src="TypingText.js">
/****************************************************
* Typing Text script- By p_kilicarslan
* Visit www.teknikportal.com" target="_blank">www.teknikportal.com for more
****************************************************/
</script>

2.Adım;
Aşağıdaki kodları sayfada herhangi bir yere yerleştirin

<div id="example1">Thanks for visiting <a href="http://www.dynamicdrive.com/">Dynamic Drive!</a>
Wow, HTML gets properly typed out too!</div>

<p id="example2">This text has a <b>slashing cursor</b> at the end. <br />And this is on a new line, thanks to the <br> tag.</p>

<script type="text/javascript">
//Define first typing example:
new TypingText(document.getElementById("example1"));

//Define second typing example (use "slashing" cursor at the end):
new TypingText(document.getElementById("example2"), 100, function(i){ var ar = new Array("\\", "|", "/", "-"); return " " + ar[i.length % ar.length]; });

//Type out examples:
TypingText.runAll();
</script>

3.Adım;

Aşağıdaki kodları herhangi bir notderfteri ile açarak yerleştirin ve TypingText.js olarak farklı kaydedin ve .htm sayfanızın bulunduğu klasore atın


TypingText = function(element, interval, cursor, finishedCallback) {
  if((typeof document.getElementById == "undefined") || (typeof element.innerHTML == "undefined")) {
    this.running = true; // Never run.
    return;
  }
  this.element = element;
  this.finishedCallback = (finishedCallback ? finishedCallback : function() { return; });
  this.interval = (typeof interval == "undefined" ? 100 : interval);
  this.origText = this.element.innerHTML;
  this.unparsedOrigText = this.origText;
  this.cursor = (cursor ? cursor : "");
  this.currentText = "";
  this.currentChar = 0;
  this.element.typingText = this;
  if(this.element.id == "") this.element.id = "typingtext" + TypingText.currentIndex++;
  TypingText.all.push(this);
  this.running = false;
  this.inTag = false;
  this.tagBuffer = "";
  this.inHTMLEntity = false;
  this.HTMLEntityBuffer = "";
}
TypingText.all = new Array();
TypingText.currentIndex = 0;
TypingText.runAll = function() {
  for(var i = 0; i < TypingText.all.length; i++) TypingText.all[i].run();
}
TypingText.prototype.run = function() {
  if(this.running) return;
  if(typeof this.origText == "undefined") {
    setTimeout("document.getElementById('" + this.element.id + "').typingText.run()", this.interval); // We haven't finished loading yet.  Have patience.
    return;
  }
  if(this.currentText == "") this.element.innerHTML = "";
//  this.origText = this.origText.replace(/<([^<])*>/, "");     // Strip HTML from text.
  if(this.currentChar < this.origText.length) {
    if(this.origText.charAt(this.currentChar) == "<" && !this.inTag) {
      this.tagBuffer = "<";
      this.inTag = true;
      this.currentChar++;
      this.run();
      return;
    } else if(this.origText.charAt(this.currentChar) == ">" && this.inTag) {
      this.tagBuffer += ">";
      this.inTag = false;
      this.currentText += this.tagBuffer;
      this.currentChar++;
      this.run();
      return;
    } else if(this.inTag) {
      this.tagBuffer += this.origText.charAt(this.currentChar);
      this.currentChar++;
      this.run();
      return;
    } else if(this.origText.charAt(this.currentChar) == "&" && !this.inHTMLEntity) {
      this.HTMLEntityBuffer = "&";
      this.inHTMLEntity = true;
      this.currentChar++;
      this.run();
      return;
    } else if(this.origText.charAt(this.currentChar) == ";" && this.inHTMLEntity) {
      this.HTMLEntityBuffer += ";";
      this.inHTMLEntity = false;
      this.currentText += this.HTMLEntityBuffer;
      this.currentChar++;
      this.run();
      return;
    } else if(this.inHTMLEntity) {
      this.HTMLEntityBuffer += this.origText.charAt(this.currentChar);
      this.currentChar++;
      this.run();
      return;
    } else {
      this.currentText += this.origText.charAt(this.currentChar);
    }
    this.element.innerHTML = this.currentText;
    this.element.innerHTML += (this.currentChar < this.origText.length - 1 ? (typeof this.cursor == "function" ? this.cursor(this.currentText) : this.cursor) : "");
    this.currentChar++;
    setTimeout("document.getElementById('" + this.element.id + "').typingText.run()", this.interval);
  } else {
this.currentText = "";
this.currentChar = 0;
        this.running = false;
        this.finishedCallback();
  }
}
Logged
Photoshop Web Tasarım
[ÁĎМĨŃ]
Webmaster
*

İtibarı : 5183
Offline

Mesaj Sayısı: 1,727


[Kişisel bir ileti]











« Yanıtla #7 : Aralık 02, 2007, 09:44:08 ÖÖ »

teşekkürler.
Logged

Hayırlısı..
iso_98
Altın Üye [%10]
***

İtibarı : 8
Offline

Mesaj Sayısı: 83












« Yanıtla #8 : Şubat 01, 2008, 12:25:08 ÖS »

teşekkürlerde ne işe yarıyo
Logged

mercifulkiller
Gümüş Üye [%5]
**

İtibarı : 2
Offline

Mesaj Sayısı: 42











« Yanıtla #9 : Haziran 30, 2008, 09:02:41 ÖS »

emeğine sağlık güzel paylaşım yapmışsın
Logged
Sayfa: 1 [2] |   Yukarı git
 

 
Gitmek istediğiniz yer:  

Benzer Konular
Konu Başlığı Başlatan Yorum Okunma Sayısı Son Mesaj
Html Nedir ? , Html Dersleri , Html Kodları , Html Eğitimi Web Dilleri « 1 2 » [ÁĎМĨŃ] 9 2096 Haziran 30, 2008, 08:58:07 ÖS
Gönderen: NehiR-dEniZz
Html Nedir ? , Html Dersleri , Html Kodları , Html Eğitimi - 2 - Web Dilleri [ÁĎМĨŃ] 1 1188 Ağustos 31, 2007, 07:16:41 ÖS
Gönderen: B!L!MC!L
Html Nedir ? , Html Dersleri , Html Kodları , Html Eğitimi !! - 3 - Web Dilleri [ÁĎМĨŃ] 1 753 Ağustos 31, 2007, 07:20:19 ÖS
Gönderen: B!L!MC!L
Html Nedir ? , Html Dersleri , Html Kodları , Html Eğitimi !! - 4 - [ Güvenlik ] Web Dilleri [ÁĎМĨŃ] 0 428 Temmuz 02, 2007, 11:36:48 ÖÖ
Gönderen: [ÁĎМĨŃ]
Html Nedir ? , Html Dersleri , Html Kodları , Html Eğitimi !! - 5 - Web Dilleri [ÁĎМĨŃ] 0 641 Temmuz 02, 2007, 11:37:47 ÖÖ
Gönderen: [ÁĎМĨŃ]