Template:Paris2009 slidemenu
From 2009.igem.org
(Difference between revisions)
Christophe.R (Talk | contribs) (New page: <html> <script type="text/javascript"> - →JS for slide menu: var slideMenu=function(){ var sp,st,t,m,sa,l,w,sw,ot; return{ build:function(sm,sw,mt,s,sl,h){ sp=s; st=sw; t=mt; ...) |
Christophe.R (Talk | contribs) |
||
Line 30: | Line 30: | ||
}; | }; | ||
}(); | }(); | ||
+ | |||
+ | slideMenu.build('sm', 200, 10, 10, 1); | ||
+ | |||
+ | function addLoadEvent(func) { | ||
+ | var oldonload = window.onload; | ||
+ | if (typeof window.onload != 'function') { | ||
+ | window.onload = func; | ||
+ | } else { | ||
+ | window.onload = function() { | ||
+ | if (oldonload) { | ||
+ | oldonload(); | ||
+ | } | ||
+ | func(); | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | addLoadEvent(function() { | ||
+ | slideMenu.build('sm',200,10,10,1); | ||
+ | }); | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 10:32, 5 August 2009