Я после того, как сделал тикер новостей, и его первый раз, когда я сталкивался с этим сайтом.Проблемы с тикером, не загружайте в движение, просто отображает весь текст. jquery ajax
http://www.jquerynewsticker.com/
и ив получил код все готово, как это
<div class="news_ticker"><link href="LPMS\production_scn\jquery_news_ticker\styles\ticker-style.css" rel="stylesheet" type="text/css" />
<script src="LPMS\production_scn\jquery_news_ticker\includes\jquery.ticker.js" type="text/javascript"></script>
<ul id="js-news" class="js-hidden">
<li class="news-item"><a href="#">This is the 1st latest news item.</a></li>
<li class="news-item"><a href="#">This is the 2nd latest news item.</a></li>
<li class="news-item"><a href="#">This is the 3rd latest news item.</a></li>
<li class="news-item"><a href="#">This is the 4th latest news item.</a></li>
</ul>
<script type="text/javascript">
$(function() {
$('#js-news').ticker();
});
</script>
</div>
им предполагая, что все это идет в 1 деления? он просто перечисляет новости последних новостей вместо прокрутки или чего-то еще, почти как если бы он не собирал jquery, но я укоренил его, чтобы найти источник, может ли кто-нибудь пролить свет на это для меня?
EDIT/UPDATE
с благодарностью Java_User я сумел заставить его немного работать, теперь мои проблемы является оно не показать то, что я прошу его выхода, он показывает только линию, даже когда я изменить текст/ввод.
мой код теперь .. это в голове
<link href="/LPMS/production_scn/jquery_news_ticker/styles/ticker-style.css" rel="stylesheet" type="text/css" />
<script src="/LPMS/production_scn/jquery_news_ticker/includes/jquery.ticker.js" type="text/javascript"></script>
</head>
это в нижней части страницы (остальная часть страницы пуста, чтобы избежать каких-либо conflictions сейчас!)
<div class="clear_line"></div>
<script type="text/javascript">
$(function() {
$('#js-news').ticker();
});
</script>
<!-- News Feed ticker - use jquery to scroll ticker!! -->
<div class="news_feed">
<img src="/LPMS/images/news/breaking_news.png" style="border-style:none;">
<div class="news_ticker"><ul id="js-news" class="js-hidden">
<li class="news-item"><a href="#">This is the 1st latest news item.</a></li>
<li class="news-item"><a href="#">This is the 2nd latest news item.</a></li>
<li class="news-item"><a href="#">This is the 3rd latest news item.</a></li>
<li class="news-item"><a href="#">This is the 4th latest news item.</a></li>
</ul> </div></div>
</div>
любые идеи, почему он отображает только подчеркивание _ как это? он делает мою голову!
благодаря
Где находится ваша библиотека jQuery? –
Я включил, что выше на странице, теперь я подвел его под jquery.ticker.js и им, используя jQuery googleapi в скрипте. – JimJAM