/**************************************************************************
Init function. Set the placements of the objects here.
***************************************************************************/
function Side_init () {
The width of the menu, currently set to the the document.
If you are want the menu to is 500px wide for instance, just
Set the pagewidth=500 in stead.
Pagewidth= (n)? innerwidth:document.body.offsetwidth-20;
Obg=new makeobj (' DIVBG ')
Omenu=new makeobj (' Divmenu ', ' DIVBG ')
Oarrowright=new makeobj (' divarrowright ', ' DIVBG ')
Placement
Obg.moveit (0,0)//main Div, holds all of the other divs.
Omenu.moveit (arrowwidth,6)
Oarrowright.moveit (pagewidth-arrowwidth,9)
Setting the width and the visible area of the links.
if (IE) {obg.css.width=pagewidth; obg.css.overflow= "Hidden"}
Obg.clipto (0,pagewidth,menuheight,0)
}
Executing the init function on pageload.
Onload=side_init;
</script>
Step Two: Add the following original code to <body> and </body>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.