|
|
|
@ -94,30 +94,36 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// $(function(){
|
|
|
|
|
// var x = 10;
|
|
|
|
|
// var y = 20;
|
|
|
|
|
// $("span.tooltip").mouseover(function(e){
|
|
|
|
|
// this.myTitle = this.title;
|
|
|
|
|
// this.title = "";
|
|
|
|
|
// var tooltip = "<div id='tooltip' style='background-color: red;'>" + this.myTitle + "</div>";
|
|
|
|
|
// $("body").append(tooltip);
|
|
|
|
|
// $("#tooltip")
|
|
|
|
|
// .css({
|
|
|
|
|
// "top": (e.pageY + y) + "px",
|
|
|
|
|
// "left": (e.pageX + x) + "px"
|
|
|
|
|
// }).show("fast");
|
|
|
|
|
// }).mouseout(function(){
|
|
|
|
|
// this.title = this.myTitle;
|
|
|
|
|
// $("#tooltip").remove();
|
|
|
|
|
// }).mousemove(function(e){
|
|
|
|
|
// $("#tooltip")
|
|
|
|
|
// .css({
|
|
|
|
|
// "top": (e.pageY + y) + "px",
|
|
|
|
|
// "left": (e.pageX + x) + "px"
|
|
|
|
|
// });
|
|
|
|
|
// });
|
|
|
|
|
// })
|
|
|
|
|
$(function(){
|
|
|
|
|
var x = 10;
|
|
|
|
|
var y = 20;
|
|
|
|
|
$("span.tooltip").mouseover(function(e){
|
|
|
|
|
this.myTitle = this.title;
|
|
|
|
|
this.title = "";
|
|
|
|
|
var tooltip = "<div id='tooltip' style='background-color: red; position: absolute;'>" + this.myTitle + "</div>";
|
|
|
|
|
$("body").append(tooltip);
|
|
|
|
|
$("#tooltip")
|
|
|
|
|
.css({
|
|
|
|
|
"top": (e.pageY + y) + "px",
|
|
|
|
|
"left": (e.pageX + x) + "px"
|
|
|
|
|
}).show("fast");
|
|
|
|
|
}).mouseout(function(){
|
|
|
|
|
this.title = this.myTitle;
|
|
|
|
|
$("#tooltip").remove();
|
|
|
|
|
}).mousemove(function(e){
|
|
|
|
|
$("#tooltip")
|
|
|
|
|
.css({
|
|
|
|
|
"top": (e.pageY + y) + "px",
|
|
|
|
|
"left": (e.pageX + x) + "px"
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
// $('li').mouseover(function(){
|
|
|
|
|
// var id=$(this).attr('id');
|
|
|
|
|
// alert(id);
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
<!-- info display block -->
|
|
|
|
@ -126,16 +132,16 @@
|
|
|
|
|
|
|
|
|
|
<div class="left" style="float: left; height: 445px; width: 50%;">
|
|
|
|
|
<ul class="welcome-message-list" style="width: 90%; ">
|
|
|
|
|
<h3 style="">论坛热帖</h3>
|
|
|
|
|
<h3 style="color: rgb(21, 188, 207)"><strong>论坛热帖</strong></h3>
|
|
|
|
|
<div class="welcome-box-list">
|
|
|
|
|
<% find_hot_forum_topics.each do |topic|%>
|
|
|
|
|
<li class="message-brief-intro" style="min-height: 25px;">
|
|
|
|
|
<div style="display: inline-block;">
|
|
|
|
|
<span style="color:gray; display: inline-block; background: url('/images/list-icon.png') no-repeat scroll ;background-position: left center;"> <%= link_to topic.subject.truncate(25, omission: '...'), forum_memo_path(topic.forum_id,topic.id), :class => "gray" %></span>
|
|
|
|
|
<span style="margin-left: 20px; color: green !important; white-space: nowrap;">
|
|
|
|
|
<%= link_to topic.author, user_path(topic.author), :style => "color: green;"%>
|
|
|
|
|
<%= link_to topic.author, user_path(topic.author), :style => "color: rgb(72,72,72);"%>
|
|
|
|
|
</span>
|
|
|
|
|
<span style="margin-left:20px; color:blue; white-space: nowrap;"><%= time_tag_welcome topic.created_at %>前</span>
|
|
|
|
|
<span style="margin-left:20px; color:rgb(72,72,72); white-space: nowrap;"><%= time_tag_welcome topic.created_at %>前</span>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
@ -145,7 +151,7 @@
|
|
|
|
|
|
|
|
|
|
<div class="right" style="float: right; margin-right: -10px; height: 445px; width: 50%; ">
|
|
|
|
|
<ul class="user-welcome-message-list" style="width: 80%; margin-top: 0px;">
|
|
|
|
|
<h3 style="margin-left: -5px;">用户动态</h3>
|
|
|
|
|
<h3 style="margin-left: -5px; color: rgb(21, 188, 207)"><strong>用户动态</strong></h3>
|
|
|
|
|
<div class="user-message-box-list">
|
|
|
|
|
<% find_all_activities.each do |event| %>
|
|
|
|
|
<li style="display: block;height:60px;">
|
|
|
|
|