From 567c40f5f0d12e2925648cbb5a202a562dc57074 Mon Sep 17 00:00:00 2001 From: michitux Date: Sat, 16 Sep 2006 16:56:22 +0000 Subject: [PATCH] Bookmark/delete-links now visible when mouse is over the searchresult, in standard-compliant browsers with css, in Microsoft Internet Explorer via JavaScript git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2608 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/env/base.css | 4 ++-- htroot/js/yacysearch.js | 17 +++++++++++++++++ htroot/yacysearch.html | 1 + 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/htroot/env/base.css b/htroot/env/base.css index c74a44ff1..d1a9dfcad 100644 --- a/htroot/env/base.css +++ b/htroot/env/base.css @@ -203,11 +203,11 @@ img.bookmarkIcon, img.deleteIcon { width: 16px; } -a.deletelink:hover { +a.deletelink:hover, div.searchresults:hover a.deletelink, div.searchresults.hover a.deletelink { background:url(/env/grafics/minus.gif) center center no-repeat; } -a.bookmarklink:hover { +a.bookmarklink:hover, div.searchresults:hover a.bookmarklink, div.searchresults.hover a.bookmarklink { background:url(/env/grafics/plus.gif) center center no-repeat; } diff --git a/htroot/js/yacysearch.js b/htroot/js/yacysearch.js index fde8d9fba..9be0f1778 100644 --- a/htroot/js/yacysearch.js +++ b/htroot/js/yacysearch.js @@ -64,3 +64,20 @@ function handleState(req) { span.appendChild(document.createTextNode(snippetText)); } } + +function addHover() { + if (document.all&&document.getElementById) { + var divs = document.getElementsByTagName("div"); + for (i=0; i AllSnippets(); +addHover();