This commit is contained in:
parent
25fd898623
commit
2b3138f23b
|
@ -94,35 +94,31 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$(function(){
|
// $(function(){
|
||||||
var x = 10;
|
// var x = 10;
|
||||||
var y = 20;
|
// var y = 20;
|
||||||
$("span.tooltip").mouseover(function(e){
|
// $("span.tooltip").mouseover(function(e){
|
||||||
this.myTitle = this.title;
|
// this.myTitle = this.title;
|
||||||
this.title = "";
|
// this.title = "";
|
||||||
var tooltip = "<div id='tooltip' style='background-color: red;'>" + this.myTitle + "</div>";
|
// var tooltip = "<div id='tooltip' style='background-color: red;'>" + this.myTitle + "</div>";
|
||||||
$("body").append(tooltip);
|
// $("body").append(tooltip);
|
||||||
$("#tooltip")
|
// $("#tooltip")
|
||||||
.css({
|
// .css({
|
||||||
"top": (e.pageY + y) + "px",
|
// "top": (e.pageY + y) + "px",
|
||||||
"left": (e.pageX + x) + "px"
|
// "left": (e.pageX + x) + "px"
|
||||||
}).show("fast");
|
// }).show("fast");
|
||||||
}).mouseout(function(){
|
// }).mouseout(function(){
|
||||||
this.title = this.myTitle;
|
// this.title = this.myTitle;
|
||||||
$("#tooltip").remove();
|
// $("#tooltip").remove();
|
||||||
}).mousemove(function(e){
|
// }).mousemove(function(e){
|
||||||
$("#tooltip")
|
// $("#tooltip")
|
||||||
.css({
|
// .css({
|
||||||
"top": (e.pageY + y) + "px",
|
// "top": (e.pageY + y) + "px",
|
||||||
"left": (e.pageX + x) + "px"
|
// "left": (e.pageX + x) + "px"
|
||||||
});
|
// });
|
||||||
});
|
// });
|
||||||
})
|
// })
|
||||||
|
|
||||||
$("span.project_info").live("mouseover", funtion(){
|
|
||||||
var v = $(this).attr("id");
|
|
||||||
alert(v);
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
<!-- info display block -->
|
<!-- info display block -->
|
||||||
<%= stylesheet_link_tag 'welcome' %>
|
<%= stylesheet_link_tag 'welcome' %>
|
||||||
|
@ -136,8 +132,8 @@
|
||||||
<li class="message-brief-intro" style="min-height: 25px;">
|
<li class="message-brief-intro" style="min-height: 25px;">
|
||||||
<div style="display: inline-block;">
|
<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="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; white-space: nowrap;">
|
<span style="margin-left: 20px; color: green !important; white-space: nowrap;">
|
||||||
<%= link_to topic.author, user_path(topic.author) %>
|
<%= link_to topic.author, user_path(topic.author), :style => "color: green;"%>
|
||||||
</span>
|
</span>
|
||||||
<span style="margin-left:20px; color:blue; white-space: nowrap;"><%= time_tag_welcome topic.created_at %>前</span>
|
<span style="margin-left:20px; color:blue; white-space: nowrap;"><%= time_tag_welcome topic.created_at %>前</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue