Добро пожаловать! Это — архивная версия форумов на «Хакер.Ru». Она работает в режиме read-only.
 

Слайдер новостей

Пользователи, просматривающие топик: none

Зашли как: Guest
Все форумы >> [Web-дизайн] >> Слайдер новостей
Имя
Сообщение << Старые топики   Новые топики >>
Слайдер новостей - 2010-10-25 13:37:01.830000   
akonosx

Сообщений: 42
Оценки: 0
Присоединился: 2010-06-15 18:22:01.806666
Всем привет!


Помогите поставить на сайт новостной слайдер как в http://24.kg/ (НОВОСТИ ДНЯ:) на мой сайт kginfo.org что бы там выходило последние 10 нвости с каждой категорией по одной или 2. У них стоит такой код
&lt;sсriрt type="text/jаvаsсriрt" language="jаvаsсriрt"&gt; // Control parameters var theCharacterTimeout = 60; var theStoryTimeout = 3000; var theWidgetOne = "-"; var theWidgetTwo = " "; var theWidgetNone = ""; var theItemCount = theSummaries.length; var NS6=(document.getElementById && !document.all) ? true : false; // Ticker startup function startTicker() { // Define run time values theCurrentStory = -1; theCurrentLength = 0; // Locate base objects if (document.getElementById) { runTheTicker(); } else { document.write("&lt;style&gt;.ticki{display:none;}.ticko{border:0px; padding:0px;}&lt;/style&gt;"); return true; } } // Ticker main run loop function runTheTicker() { var myTimeout; // Go for the next story data block 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").innerHТМL = '&lt;a href="'+ theTargetLink +'" class="tick"&gt;'+textTitle+'&lt;/a&gt;'; } else { document.all.theTicker.innerHТМL = '&lt;a href="'+ theTargetLink +'" target="_blank" class="tick"&gt;'+textTitle+'&lt;/a&gt;'; } } else { if (NS6) { document.getElementById("theTicker").innerHТМL = '&lt;span class="tickertext"&gt;'+textTitle+'&lt;/span&gt;'; } else { document.all.theTicker.innerHТМL = '&lt;span dir=ltr" class="tickertext"&gt;'+textTitle+'&lt;/span&gt;'; } } // Modify the length for the substring and define the timer if(theCurrentLength != theStorySummary.length) { theCurrentLength++; myTimeout = theCharacterTimeout; } else { theCurrentLength = 0; myTimeout = theStoryTimeout; } // Call up the next cycle of the ticker setTimeout("runTheTicker()", myTimeout); // Widget generator function whatWidget() { if(theCurrentLength == theStorySummary.length) { return theWidgetNone; } if((theCurrentLength % 2) == 1) { return theWidgetOne; } else { return theWidgetTwo; } } startTicker(); &lt;/sсriрt&gt;
Post #: 1
RE: Слайдер новостей - 2010-11-10 20:58:50.800000   
raliya

Сообщений: 122
Оценки: 0
Присоединился: 2010-06-02 11:00:39.863333
f d xtv ghj,ktvf
Post #: 2
Страниц:  [1]
Все форумы >> [Web-дизайн] >> Слайдер новостей







Связаться:
Вопросы по сайту / xakep@glc.ru

Предупреждение: использование полученных знаний в противозаконных целях преследуется по закону.