Changeset 20656
- Timestamp:
- 2011/03/15 22:51:53 (13 years ago)
- bzr:base-revision:
- ohkouchi@loop-az.jp-20110315115854-q35ywgm2xkdhufev
- bzr:committer:
- Kentaro Ohkouchi <ohkouchi@loop-az.jp>
- 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:
ohkouchi@loop-az.jp-20110315135121-a6ull38qzi6drqhq- bzr:repository-uuid:
- 1e3b908f-19a9-db11-a64c-001125224ba8
- bzr:revision-id:
- ohkouchi@loop-az.jp-20110315135150-uimkasj4fsipbmnz
- 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 ohkouchi@loop-az.jp-20110315135121-a6ull38qzi6drqhq
html/user_data/packages/sphone/css/top.css ohkouchi@loop-az.jp-20110315135121-a6ull38qzi6drqhq
html/user_data/packages/sphone/js/category.js ohkouchi@loop-az.jp-20110315135121-a6ull38qzi6drqhq
html/user_data/packages/sphone/js/news.js ohkouchi@loop-az.jp-20110315135121-a6ull38qzi6drqhq- 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
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/Smarty/templates/sphone/frontparts/bloc/news.tpl
r20462 r20656 28 28 29 29 <!--{section name=data loop=$arrNews max=3}--> 30 <div class="anews"> 31 <span><!--{$arrNews[data].news_date_disp|date_format:"%m.%d"}--></span> 32 <!--{if $arrNews[data].news_url}--><a href="<!--{$arrNews[data].news_url|h}-->"><!--{/if}--> 33 <!--{$arrNews[data].news_title|h}--> 34 <!--{if $arrNews[data].news_url}--></a><!--{/if}--> 35 </div> 30 <div class="anews"> 31 <span><!--{$arrNews[data].news_date_disp|date_format:"%m.%d"}--></span> 32 <!--{if $arrNews[data].news_url}--><a href="<!--{$arrNews[data].news_url|h}-->"><!--{/if}--><!--{$arrNews[data].news_title|h}--><!--{if $arrNews[data].news_url}--></a><!--{/if}--> 33 </div> 36 34 <!--{/section}--> 37 35 … … 39 37 </div> 40 38 41 <script type="text/javascript" language="JavaScript">42 //<![CDATA[43 initNews(); //カテゴリーリストの初期化44 //]]>45 </script>46 39 <!--{/if}--> 47 40 -
branches/version-2_5-dev/html/user_data/packages/sphone/css/top.css
r20614 r20656 2 2 3 3 /* ヘッダー 4 ----------------------------------------------- */4 ----------------------------------------------- */ 5 5 #topbox { 6 position: relative;7 width: 106.8%;8 margin-left: -3.4%;9 background-color: #333333;6 position: relative; 7 width: 106.8%; 8 margin-left: -3.4%; 9 background-color: #333333; 10 10 } 11 11 12 12 /* ヘッダーロゴ 13 ------------------------------------------------ */13 ------------------------------------------------ */ 14 14 #header { 15 15 background-color: #ffffff; … … 18 18 } 19 19 #header h1 { 20 margin: 0;20 margin: 0; 21 21 } 22 22 #header h1 a { … … 33 33 34 34 /* 検索バー 35 ----------------------------------------------- */35 ----------------------------------------------- */ 36 36 #searchbar { 37 border-top: 1px solid #5c5c5c;38 border-bottom: 1px solid #000000;39 background-color: #333333;40 background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#333333), to(#5C5C5C), color-stop(0.6,#2E2E2E));41 width: 100%;37 border-top: 1px solid #5c5c5c; 38 border-bottom: 1px solid #000000; 39 background-color: #333333; 40 background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#333333), to(#5C5C5C), color-stop(0.6,#2E2E2E)); 41 width: 100%; 42 42 } 43 43 44 44 /* メンバーメニュー 45 ----------------------------------------------- */45 ----------------------------------------------- */ 46 46 #block-login { 47 47 display: block; 48 font-size: 100%;48 font-size: 100%; 49 49 margin: 10px auto; 50 50 width: 301px; … … 52 52 53 53 /* ニュース 54 ----------------------------------------------- */54 ----------------------------------------------- */ 55 55 #block-news{ 56 position: relative; 57 width: 106.8%; 58 margin-left: -3.4%; 59 //padding: 10px 0px; 60 height: 1.8em; 61 background-image: -webkit-gradient(linear, 0% 0%, 0% 95%, from(#7A7A7A), to(#CCCCCC), color-stop(.07,#FFFFFF),color-stop(.9,#FFFFFF)); 62 overflow: hidden; 56 position: relative; 57 width: 106.8%; 58 margin-left: -3.4%; 59 height: 1.8em; 60 background-image: -webkit-gradient(linear, 0% 0%, 0% 95%, from(#7A7A7A), to(#CCCCCC), color-stop(.07,#FFFFFF),color-stop(.9,#FFFFFF)); 63 61 } 64 62 .anews{ 65 color: #666666; 66 font: /*bold*/ 90% Helvetica; 67 /*text-shadow: 1px 1px 2px rgba(0,0,0,0.3);*/ 68 margin: 0.3em 10px; 69 /*opacity: 0; 70 -webkit-transition: all 1.0s ease-in-out;*/ 71 position: absolute; 63 color: #666666; 64 font: 90% Helvetica; 65 margin: 0.3em 10px; 72 66 } 73 .anews.view{74 opacity: 1.0;75 left: 0;76 width: 100%;77 overflow: hidden;78 white-space: nowrap;79 text-overflow: ellipsis;80 }81 .anews.right{82 opacity: 0;83 left: 2em;84 } -
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.