[bknr-cvs] hans changed trunk/projects/quickhoney/website/static/javascript.js

BKNR Commits bknr at bknr.net
Sat Aug 30 20:11:12 UTC 2008


Revision: 3753
Author: hans
URL: http://bknr.net/trac/changeset/3753

Hack around Internet Explorer overlap problem.

U   trunk/projects/quickhoney/website/static/javascript.js

Modified: trunk/projects/quickhoney/website/static/javascript.js
===================================================================
--- trunk/projects/quickhoney/website/static/javascript.js	2008-08-30 14:11:09 UTC (rev 3752)
+++ trunk/projects/quickhoney/website/static/javascript.js	2008-08-30 20:11:12 UTC (rev 3753)
@@ -504,6 +504,11 @@
 
     debug('show_page ' + pagename + ' subpath ' + subpath + ' current_directory ' + current_directory);
 
+    /* workaround for IE, which does not display the overlapping menu items expectedly */
+    map(function (keyword) {
+            $('m_' + keyword).style.zIndex = (keyword == pagename) ? 101 : 100;
+        }, ['pixel', 'vector', 'news', 'shop', 'contact']);
+    
     // Activate the menu by coloring the menu choices correctly
     $('menu').className = pagename;
 




More information about the Bknr-cvs mailing list