diff --git a/app/views/stores/search.html.erb b/app/views/stores/search.html.erb index 23f6312cc..90828a003 100644 --- a/app/views/stores/search.html.erb +++ b/app/views/stores/search.html.erb @@ -11,6 +11,10 @@ .highlight { padding: 1px 4px; margin: 0 -4px; + filter: alpha(opacity=70); + -moz-opacity: 0.7; + -webkit-opacity: 0.7; + opacity: 0.7; } <% content_for :top_field do%> @@ -30,7 +34,7 @@
<%= result.filename %> - <%= link_to_attachment result, {:text => "下载"}%> + <%= link_to_attachment result, {:text => image_tag("/images/button/download.png", width: "22px", alt: "l(:button_download)", :class => 'download_icon')}%>
<%= result.description %>
所属分类:<%=result_come_from result%> @@ -76,7 +80,15 @@ }); }; $(document).ready(function($) { - $('.cb span').highlight('<%=params[:name]%>') - // $('#main').highlight('<%=params[:name]%>') + $('.cb span').highlight('<%=params[:name]%>'); + + $('.a_download_icon').each(function(){ + $(this).mouseenter(function(event) { + $(this).attr("src", "/images/button/download_focus.png") + }); + $(this).mouseleave(function(event) { + $(this).attr("src", "/images/button/download.png") + }); + }); }); \ No newline at end of file diff --git a/public/images/button/download.png b/public/images/button/download.png index af9748df2..1588a5af4 100644 Binary files a/public/images/button/download.png and b/public/images/button/download.png differ diff --git a/public/images/button/download_focus.png b/public/images/button/download_focus.png index b1604a048..5bad4fc6b 100644 Binary files a/public/images/button/download_focus.png and b/public/images/button/download_focus.png differ