- Timestamp:
- 2011/03/15 22:51:53 (16 years ago)
- bzr:base-revision:
- [email protected]
- bzr:committer:
- Kentaro Ohkouchi <[email protected]>
- bzr:file-ids:
data/Smarty/templates/sphone/frontparts/bloc/news.tpl 19798@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fversion-2_5-dev%2Fdata%2FSmarty%2Ftemplates%2Fsphone%2Ffrontparts%2Fbloc%2Fnews.tpl
html/user_data/packages/sphone/css/top.css 19839@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fversion-2_5-dev%2Fhtml%2Fuser_data%2Fpackages%2Fsphone%2Fcss%2Ftop.css
html/user_data/packages/sphone/js/category.js 19839@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fversion-2_5-dev%2Fhtml%2Fuser_data%2Fpackages%2Fsphone%2Fjs%2Fcategory.js
html/user_data/packages/sphone/js/news.js 19839@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fversion-2_5-dev%2Fhtml%2Fuser_data%2Fpackages%2Fsphone%2Fjs%2Fnews.js- bzr:mapping-version:
- v4
- bzr:merge:
[email protected]- bzr:repository-uuid:
- 1e3b908f-19a9-db11-a64c-001125224ba8
- bzr:revision-id:
- [email protected]
- bzr:revno:
- 3376
- bzr:revprop:branch-nick:
- branches/version-2_5-dev
- bzr:root:
- branches/version-2_5-dev
- bzr:text-revisions:
data/Smarty/templates/sphone/frontparts/bloc/news.tpl [email protected]
html/user_data/packages/sphone/css/top.css [email protected]
html/user_data/packages/sphone/js/category.js [email protected]
html/user_data/packages/sphone/js/news.js [email protected]- bzr:timestamp:
- 2011-03-15 22:51:50.190999985 +0900
- bzr:user-agent:
- bzr2.2.1+bzr-svn1.0.4
- svn:original-date:
- 2011-03-15T13:51:50.191000Z
- Location:
- branches/version-2_5-dev/html/user_data/packages/sphone/js
- Files:
-
- 2 edited
-
category.js (modified) (1 diff)
-
news.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/html/user_data/packages/sphone/js/category.js
r20116 r20656 9 9 tgt.style.height = "auto"; 10 10 tgt.style.paddingTop = "0.25em"; 11 tgt.style.lineHeight = "1em" 11 tgt.style.lineHeight = "1em"; 12 12 tgt.style.opacity = 1.0; 13 13 } -
branches/version-2_5-dev/html/user_data/packages/sphone/js/news.js
r20116 r20656 1 var newsText = new Array(); 2 var newsCnt = 0; 3 /*------------------------------------------ 4 @î{Ö(zñÌÌJEgð¾éj 5 ------------------------------------------*/ 6 function getNext(ary, cnt) { 7 if(++cnt >= ary.length) 8 return 0; 9 else 10 return cnt; 11 } 12 /*------------------------------------------ 13 @î{Ö(zñÌÌJEgð¾éj 14 ------------------------------------------*/ 15 function nextNews(){ 16 newsText[newsCnt].className = "anews"; 17 newsCnt = getNext(newsText, newsCnt); 18 newsText[getNext(newsText, newsCnt)].className = "anews right"; 19 newsText[newsCnt].className = "anews view"; 20 } 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); 21 16 22 function initNews(){ 23 newsText = document.getElementsByClassName('anews'); 24 newsid = setInterval("nextNews()", 10000); 25 newsText[getNext(newsText, newsCnt)].className = "anews right"; 26 newsText[newsCnt].className = "anews view"; 27 } 17 });
Note: See TracChangeset
for help on using the changeset viewer.
