|
|
|
@ -190,69 +190,20 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div id="J_Slide" class="d-p-index-box d-p-index-hotproject" style="padding-left: 32px">
|
|
|
|
|
<div id="J_Slide" class="d-p-index-box d-p-index-hotproject" style="float: right;">
|
|
|
|
|
<h3 style="margin-left: 5px; color: #e8770d;">
|
|
|
|
|
<strong><%=l(:label_notification)%></strong>
|
|
|
|
|
</h3>
|
|
|
|
|
<span style="margin-top: -20px;float: right; display: block;"><%#= link_to l(:label_more_information), forums_path %></span>
|
|
|
|
|
<div style="height: 167px; padding-top:6px;">
|
|
|
|
|
<fieldset style="padding-left: 36px; margin-left: 13px; height: 150px; width:380px; border-radius:10px;">
|
|
|
|
|
<div style="font-size:14px; color: #1166AD; padding-left:52px; "><strong><%= @contestNotification.title %></strong></div>
|
|
|
|
|
<div class="underline-contests_four"></div>
|
|
|
|
|
<div id="up_zzjs">
|
|
|
|
|
<div id="marqueebox">
|
|
|
|
|
<!-- <div><span style="color: red">一等奖:</span> <span style="color: #1166AD">消灭那怪兽</span></div>
|
|
|
|
|
<div><span style="color: red">二等奖:</span> <span style="color: #1166AD">兄弟向前冲 </span></div>
|
|
|
|
|
<div><span style="color: red">二等奖:</span> <span style="color: #1166AD">鸟鸟文件管理器(银河之光版)</span></div>
|
|
|
|
|
<div><span style="color: red">三等奖:</span> <span style="color: #1166AD">疯狂猜图</span></div>
|
|
|
|
|
<div><span style="color: red">三等奖:</span> <span style="color: #1166AD">愉快的定向越野 </span></div>
|
|
|
|
|
<div><span style="color: red">三等奖:</span> <span style="color: #1166AD">体能训练助手 </span></div>
|
|
|
|
|
<div><span style="color: red">三等奖:</span> <span style="color: #1166AD">迷你日记本 </span></div>
|
|
|
|
|
<div><span style="color: red">三等奖:</span> <span style="color: #1166AD">永齐飞机大战</span></div> -->
|
|
|
|
|
<%= @contestNotification.content.html_safe %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 火狐 onmouseover、onmouseout无效 <marquee scrollamount=3 direction=up height=100 onmouseover=stop() onmouseout= start() >
|
|
|
|
|
<div><span style="color: red">一等奖:</span> <span style="color: #1166AD">消灭那怪兽</span></div>
|
|
|
|
|
<div><span style="color: red">二等奖:</span> <span style="color: #1166AD">兄弟向前冲 </span></div>
|
|
|
|
|
<div><span style="color: red">二等奖:</span> <span style="color: #1166AD">鸟鸟文件管理器(银河之光版)</span></div>
|
|
|
|
|
<div><span style="color: red">三等奖:</span> <span style="color: #1166AD">疯狂猜图</span></div>
|
|
|
|
|
<div><span style="color: red">三等奖:</span> <span style="color: #1166AD">愉快的定向越野 </span></div>
|
|
|
|
|
<div><span style="color: red">三等奖:</span> <span style="color: #1166AD">体能训练助手 </span></div>
|
|
|
|
|
<div><span style="color: red">三等奖:</span> <span style="color: #1166AD">迷你日记本 </span></div>
|
|
|
|
|
<div><span style="color: red">三等奖:</span> <span style="color: #1166AD">永齐飞机大战</span></div>
|
|
|
|
|
</marquee> -->
|
|
|
|
|
|
|
|
|
|
<script language="javascript">
|
|
|
|
|
function startmarquee(lh,speed,delay) {
|
|
|
|
|
var p=false;
|
|
|
|
|
var t;
|
|
|
|
|
var o=document.getElementById("marqueebox");
|
|
|
|
|
o.innerHTML+=o.innerHTML;
|
|
|
|
|
o.style.marginTop=0;
|
|
|
|
|
o.onmouseover=function(){p=true;}
|
|
|
|
|
o.onmouseout=function(){p=false;}
|
|
|
|
|
|
|
|
|
|
function start(){
|
|
|
|
|
t=setInterval(scrolling,speed);
|
|
|
|
|
if(!p) o.style.marginTop=parseInt(o.style.marginTop)-1+"px";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function scrolling(){
|
|
|
|
|
if(parseInt(o.style.marginTop)%lh!=0){
|
|
|
|
|
o.style.marginTop=parseInt(o.style.marginTop)-1+"px";
|
|
|
|
|
if(Math.abs(parseInt(o.style.marginTop))>=o.scrollHeight/2) o.style.marginTop=0;
|
|
|
|
|
}else{
|
|
|
|
|
clearInterval(t);
|
|
|
|
|
setTimeout(start,delay);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
setTimeout(start,delay);
|
|
|
|
|
}
|
|
|
|
|
startmarquee(20,40,0);
|
|
|
|
|
</script>
|
|
|
|
|
</fieldset>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<ul class="contest-notification-list">
|
|
|
|
|
<% @contest_notifications.each do |notification| %>
|
|
|
|
|
<li>
|
|
|
|
|
<span class="title"><%= link_to notification.title, notification %></span>
|
|
|
|
|
<span class="font_lighter content"><%= truncate(strip_tags(notification.content).gsub( ' ',' '), length:60) %></span>
|
|
|
|
|
<span class="font_lighter time"><%=l(:label_release_time)%>: <%=format_time notification.created_at %></span>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="J_Slide" class="d-p-index-box d-p-index-hotproject" style="float: right;">
|
|
|
|
|