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
pull/1/head
michitux 19 years ago
parent 0e84a969d6
commit 567c40f5f0

@ -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;
}

@ -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<divs.length; i++) {
var node = divs[i];
if (node.className=="searchresults") {
node.onmouseover=function() {
this.className+=" hover";
}
node.onmouseout=function() {
this.className=this.className.replace(" hover", "");
}
}
}
}
}

@ -144,6 +144,7 @@ You can enrich the search results by using the 'global' option; you must also sw
<script type="text/javascript">
AllSnippets();
addHover();
</script>
</body>

Loading…
Cancel
Save