I came across (you may be familiar with it) a pure CSS horz/vertical dropdown Menu system that has a small bit of javascript to complete the system. The page demonstrating this Menu system is at:
Suckerfish Dropdowns - Vertical
The Javascript function appears as:
..the CSS elements can be seen in the page source of the above link. My question is what would need to be added to force the menu to open left rather than right as the above example shows? This is a pretty good system for a pure Menu so thought it worth sharing (it may be a CSS issue but my gut feeling is that this is control by javascript).
Suckerfish Dropdowns - Vertical
The Javascript function appears as:
Code:
<script type="text/javascript"><!--//--><![CDATA[//><!--
sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]></script>