source: branches/version-2_5-dev/html/user_data/packages/sphone/js/news.js @ 20656

Revision 20656, 644 bytes checked in by nanasess, 13 years ago (diff)

#1128 (スマートフォンで、新着情報にリンクがある場合リンクが押せない)

  • jQuery を使用するよう修正
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
Line 
1$(function() {
2      $('.anews').each(function(i) {
3                           $(this).addClass('news-' + i).hide();
4                       });
5      $('.news-0').fadeIn('slow');
6      var count = 1;
7      var interval = 5000;
8      var timer = setInterval(function() {
9                                  $('.anews').hide();
10                                  $('.news-' + count).fadeIn('slow');
11                                  count++;
12                                  if (count > $('.anews').size() -1) {
13                                      count = 0;
14                                  }
15                              }, interval);
16
17  });
Note: See TracBrowser for help on using the repository browser.