Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
add image rising while mouse over in Collage
detaf8f7b8bba6b
diff --git a/htroot/Collage.html b/htroot/Collage.htmlindex f47cbacef..ac97ed52c 100755--- a/htroot/Collage.html+++ b/htroot/Collage.html@@ -17,6 +17,24 @@ form dd {}</style><meta http-equiv="REFRESH" content="#[refresh]#" />+<script type="text/javascript">+var CollageLastImageZIndex;++function raise (element)+{+ var img = document.getElementById("col" + element);++ CollageLastImageZIndex = img.style.zIndex;+ img.style.zIndex = 0xffff;+}++function lower (element)+{+ var img = document.getElementById("col" + element);++ img.style.zIndex = CollageLastImageZIndex;+}+</script></head><body>#(emb)#@@ -49,4 +67,4 @@ document.body.style.background = "#000";#%env/templates/footer.template%##(/emb)#</body>-</html>\ No newline at end of file+</html>diff --git a/htroot/Collage.java b/htroot/Collage.javaindex 3cbd23646..dd7606d74 100755--- a/htroot/Collage.java+++ b/htroot/Collage.java@@ -101,6 +101,7 @@ public class Collage {if (fifoSize > 0) {prop.put("imgurl", "1");int c = 0;+ int yOffset = embed ? 0 : 70;for (int i = 0; i < fifoSize; i++) {yacyURL baseURL = origins[i].baseURL;@@ -111,14 +112,17 @@ public class Collage {if ((serverCore.isLocalhost(baseURL.getHost()) || serverCore.isLocalhost(imageURL.getHost())) &&sb.getConfigBool("adminAccountForLocalhost", false)) continue;+ long z = imgZIndex[i];prop.put("imgurl_list_" + c + "_url","<a href=\"" + baseURL.toNormalform(true, false) + "\">"+ "<img src=\"" + imageURL.toNormalform(true, false) + "\" "+ "style=\""+ ((imgWidth[i] == 0 || imgHeight[i] == 0) ? "" : "width:" + imgWidth[i] + "px;height:" + imgHeight[i] + "px;")- + "position:absolute;top:" + imgPosY[i]+ + "position:absolute;top:" + (imgPosY[i] + yOffset)+ "px;left:" + imgPosX[i]- + "px;z-index:" + imgZIndex[i] + "\""+ + "px;z-index:" + z + "\" "+ + "id=\"col" + z + "\" "+ + "onmouseover=\"raise(" + z + ")\" onmouseout=\"lower(" + z + ")\" "+ "title=\"" + baseURL.toNormalform(true, false) + "\">"+ "</a><br>");c++;@@ -133,4 +137,4 @@ public class Collage {prop.put("emb_publicQueueSize", ResultImages.publicQueueHighSize() + "+" + ResultImages.publicQueueLowSize());return prop;}-}\ No newline at end of file+}