Hello,Can anyone tell me (or show me) what I must modify in this code, so it would work for multiple elements.It currently works only for 1 element.
<script type="text/javascript">var i=-135var intHidevar speed=3function showmenu(){clearInterval(intHide)intShow=setInterval("show()",10)}function hidemenu(){clearInterval(intShow)intHide=setInterval("hide()",10)}function show(){if (i<-12){ i=i+speed document.getElementById('myMenu').style.left=i }}function hide(){if (i>-135){ i=i-speed document.getElementById('myMenu').style.left=i }}</script>
Thanks in advance