Q:

کد بسیاز زیبای متن تایپ شونده

سلام دوستان خودتون دمو رو ببینید و کیف کنید

دمو

اینم کد

کد:

<div class="mod_type">

<span id="theTicker"> </span>

<script type="text/javascript">

var theSummaries = new Array();

var theSiteLinks = new Array();

theSummaries[0]='متن اول شما';

theSummaries[1]='متن دوم شما';

theSummaries[2]=' متن سوم شما';

theSummaries[3]=' متن چهارم شما شما';

</script>

<script type="text/javascript">

var theCharacterTimeout = 80;

var theStoryTimeout     = 3000;

var theWidgetOne        = "_";

var theWidgetTwo        = "-";

var theWidgetNone       = "";

var theItemCount = theSummaries.length;

var NS6=(document.getElementById && !document.all) ? true : false;

function startTicker()

   {

   theCurrentStory     = -1;

   theCurrentLength    = 0;

   if (document.getElementById) runTheTicker();      

   else {document.write("<style>.ticki{display:none;}.ticko{border:0px; padding:0px;}</style>"); return true;}

}

function runTheTicker()

   {

   var myTimeout;  

   if(theCurrentLength == 0){

       theCurrentStory++;

       theCurrentStory      = theCurrentStory % theItemCount;

       theStorySummary      = theSummaries[theCurrentStory];

       theTargetLink        = theSiteLinks[theCurrentStory];

   }

   var textTitle = theStorySummary.substring(0,theCurrentLength) + whatWidget();

   if (theTargetLink ) {

       if (NS6) document.getElementById("theTicker").innerHTML  = '<a  class=jstop  target="_blank" href="'+ theTargetLink +'" target="_top">'+textTitle+'</a>';            

       else document.all.theTicker.innerHTML  = '<a  class=jstop  target="_blank" href="'+ theTargetLink +'" target="_top">'+textTitle+'</a>';

                       }    

   else {

       if (NS6) document.getElementById("theTicker").innerHTML = '<span>'+textTitle+'</span>';

       else document.all.theTicker.innerHTML  = '<span>'+textTitle+'</span>';

       }

   if(theCurrentLength != theStorySummary.length){theCurrentLength++;    myTimeout = theCharacterTimeout;}

   else{theCurrentLength = 0; myTimeout = theStoryTimeout;}

   setTimeout("runTheTicker()", myTimeout);

}

function whatWidget()

   {

   if(theCurrentLength == theStorySummary.length)    return theWidgetNone;

   if((theCurrentLength % 2) == 1)    return theWidgetOne;

   else return theWidgetTwo;

}

startTicker();

</script>

</div>

اگر هم دوست داشتید تشکر رو بزنید

بحث و گفتمان آزاد
پاسخ ها

داداش دوباره ترکوندی

ایول

رنگ های دیگه رو هم بزار

این رنگ قرمز

کد:

<center>

<div class="mod_type">

<span id="theTicker"> </span>

<script type="text/javascript">

var theSummaries = new Array();

var theSiteLinks = new Array();

theSummaries[0]='<font color="red"><b>متن اول شما</b></font>';

theSummaries[1]='<font color="red"><b>متن دوم شما</b></font>';

theSummaries[2]=' <font color="red"><b>متن سوم شما</b></font>';

theSummaries[3]=' <font color="red"><b>متن چهارم شما</b></font>';

</script>

<script type="text/javascript">

var theCharacterTimeout = 80;

var theStoryTimeout = 3000;

var theWidgetOne = "_";

var theWidgetTwo = "-";

var theWidgetNone = "";

var theItemCount = theSummaries.length;

var NS6=(document.getElementById && !document.all) ? true : false;

function startTicker()

{

theCurrentStory = -1;

theCurrentLength = 0;

if (document.getElementById) runTheTicker();

else {document.write("<style>.ticki{display:none;}.ticko{border:0px; padding:0px;}</style>"); return true;}

}

function runTheTicker()

{

var myTimeout;

if(theCurrentLength == 0){

theCurrentStory++;

theCurrentStory = theCurrentStory % theItemCount;

theStorySummary = theSummaries[theCurrentStory];

theTargetLink = theSiteLinks[theCurrentStory];

}

var textTitle = theStorySummary.substring(0,theCurrentLength) + whatWidget();

if (theTargetLink ) {

if (NS6) document.getElementById("theTicker").innerHTML = '<a class=jstop target="_blank" href="'+ theTargetLink +'" target="_top">'+textTitle+'</a>';

else document.all.theTicker.innerHTML = '<a class=jstop target="_blank" href="'+ theTargetLink +'" target="_top">'+textTitle+'</a>';

}

else {

if (NS6) document.getElementById("theTicker").innerHTML = '<span>'+textTitle+'</span>';

else document.all.theTicker.innerHTML = '<span>'+textTitle+'</span>';

}

if(theCurrentLength != theStorySummary.length){theCurrentLength++; myTimeout = theCharacterTimeout;}

else{theCurrentLength = 0; myTimeout = theStoryTimeout;}

setTimeout("runTheTicker()", myTimeout);

}

function whatWidget()

{

if(theCurrentLength == theStorySummary.length) return theWidgetNone;

if((theCurrentLength % 2) == 1) return theWidgetOne;

else return theWidgetTwo;

}

startTicker();

</script>

</div>

نقل قول از amirio

داداش دوباره ترکوندی

ایول

رنگ های دیگه رو هم بزار

این خوب ارزش یه تشکر نداشت؟

اگه تو بخش کدهای جاوا میزاشتی خوب نبود؟

ایول داداش اینم یه تشکر

متاسفانه توسطدوست دیگری در انجمن قرار گرفته

http://news.rozblog.com/Forum/Catgory/24/Post/5218

سعی کنید کارهای جدیدتری ارائه بدین

نقل قول از 2pak

متاسفانه توسطدوست دیگری در انجمن قرار گرفته

http://news.rozblog.com/Forum/Catgory/24/Post/5218

سعی کنید کارهای جدیدتری ارائه بدین

ببخشید من جستجو نکرده بودم قفل یا حذفش کنید

اگر هم خطا کردم اخطار بدید

تازه سازي پاسخ ها
پست های مرتبط

•·.·´¯`·.·• چت روم انجمن رزبلاگ No.7 •·.·´¯`·.·•

  • mypanahgah
  • سه شنبه 04 فروردین 1405 - 12:40

چطور راحت ترید و بهتره ؟ (لینک های دانلود)

  • tikat
  • پنجشنبه 10 مهر 1404 - 16:51

نسبت کدهای قالب به متن روی سئو سایت تاثیر داره؟

  • vahidsnh
  • پنجشنبه 19 مهر 1403 - 19:08

نیاز به مدیر و پلیس برای انجمن بدنسازی

انتخاب نام وبلاگ موبایل

ساخت اوتار عروسکی انلاین

  • t_n_t
  • سه شنبه 23 شهریور 1400 - 11:37

کمک در ثبت دامنه .ir

  • majid1988
  • چهارشنبه 06 فروردین 1399 - 11:39

** نیازمند یک نویسنده برای گذاشتن روزی یک مطلب (فال روزانه) + پول میدم +شرایط عالی **

  • narsi
  • شنبه 29 تیر 1398 - 12:02

انجمن ایران موزیک یکی از بزرگترین انجمن های موسیقی(مهم)

  • irmusics
  • جمعه 28 تیر 1398 - 9:59

معرفی بهترین سایت دانلود فیلم ,آهنگ , اخبار که جامع باش

یه سوال دارم درباره دامنهir

یسوال دارم.ریپ زدن قالب

  • amisam
  • پنجشنبه 02 اسفند 1397 - 23:56

پیوند یکتا

  • nex1music
  • پنجشنبه 02 اسفند 1397 - 23:54

لایه باز پوستر یا بنر مناسب برای سایت های گیم

  • mostafa
  • پنجشنبه 02 اسفند 1397 - 23:53

افتتاح اولین سایت نویسندگی در ایران

  • omidbest74
  • پنجشنبه 02 اسفند 1397 - 23:51

مراقب باشید سیستمتون هک نشه !اطلاعیه!

  • koolak91
  • پنجشنبه 02 اسفند 1397 - 23:50

رزبلاگ چش شد؟؟

  • moisrex
  • شنبه 02 تیر 1397 - 3:40

انجمن رزبلاگ فعال شد!مرسی .خیلی ممنون ازمدیر

  • imansaye
  • سه شنبه 17 بهمن 1396 - 16:48

مشکل در تغییر دامنه

  • adrian
  • دوشنبه 02 بهمن 1396 - 9:49

** یه عکس برای فال روزانه میخوام **

  • narsi
  • یکشنبه 24 دی 1396 - 12:53
ارسال تیکت