From 2b3138f23b908e94f32ec7a2e2b0e435eee37bdc Mon Sep 17 00:00:00 2001 From: nieguanghui Date: Tue, 3 Dec 2013 09:37:34 +0800 Subject: [PATCH] 1 --- app/views/welcome/index.html.erb | 58 +++++++++++++++----------------- 1 file changed, 27 insertions(+), 31 deletions(-) diff --git a/app/views/welcome/index.html.erb b/app/views/welcome/index.html.erb index 7e6e09564..545486861 100644 --- a/app/views/welcome/index.html.erb +++ b/app/views/welcome/index.html.erb @@ -94,35 +94,31 @@ } } - $(function(){ - var x = 10; - var y = 20; - $("span.tooltip").mouseover(function(e){ - this.myTitle = this.title; - this.title = ""; - var tooltip = "
" + this.myTitle + "
"; - $("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" - }); - }); - }) - - $("span.project_info").live("mouseover", funtion(){ - var v = $(this).attr("id"); - alert(v); - }); + // $(function(){ + // var x = 10; + // var y = 20; + // $("span.tooltip").mouseover(function(e){ + // this.myTitle = this.title; + // this.title = ""; + // var tooltip = "
" + this.myTitle + "
"; + // $("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" + // }); + // }); + // }) + <%= stylesheet_link_tag 'welcome' %> @@ -136,8 +132,8 @@
  •      <%= link_to topic.subject.truncate(25, omission: '...'), forum_memo_path(topic.forum_id,topic.id), :class => "gray" %> - - <%= link_to topic.author, user_path(topic.author) %> + + <%= link_to topic.author, user_path(topic.author), :style => "color: green;"%> <%= time_tag_welcome topic.created_at %>前