1) Script Title: ddaccordion.js
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ordionmenu.htm
3) Describe problem:
Hello friends,
I have recently used the script ddaccordion.js for dynamic menu....
I am using it for the Menu of my web page which i m developing using ASP.net with c# coding.
I made a style sheet "MenuStyle.css" wherein i Copied the code:
.arrowlistmenu
{
width: 225px; /*width of accordion menu*/
}
.arrowlistmenu .menuheader
{
/*CSS class for menu headers in general (expanding or not!)*/
font: bold 14px Arial;
color: white;
/*background: black url(MenuImages/titlebar.png) repeat-x center left;*/
background: black url(../../themes/MenuStyle/MenuImages/titlebar.png) repeat-x center left;
margin-bottom: 10px; /*bottom spacing between header and rest of content*/
text-transform: uppercase;
padding: 4px 0 4px 10px; /*header text is indented 10px*/
cursor: hand;
cursor: pointer;
}
.arrowlistmenu .openheader
{
/*CSS class to apply to expandable header when it's expanded
background-image: url(../MenuImages/titlebar-active.png);*/
background-image: url(../../themes/MenuStyle/MenuImages/titlebar-active.png);
}
.arrowlistmenu ul
{
/*CSS for UL of each sub menu*/
list-style-type: none;
margin: 0;
padding: 0;
margin-bottom: 8px; /*bottom spacing between each UL and rest of content*/
}
.arrowlistmenu ul li
{
padding-bottom: 2px; /*bottom spacing between menu items*/
}
.arrowlistmenu ul li a
{
color: #FFFFFF;
background: url(../../themes/MenuStyle/MenuImages/arrow2.gif) no-repeat center left; /*custom bullet list image*/
display: block;
padding: 2px 0;
padding-left: 19px; /*link text is indented 19px*/
text-decoration: none;
font-weight: bold;
border-bottom: 1px solid #dadada;
font-size: 100%;
}
.arrowlistmenu ul li a:visited
{
color: #A70303;
font-size: 100%;
}
.arrowlistmenu ul li a:hover
{
/*hover state CSS*/
color: #A70303;
background: url(../../themes/images_template1/bg_content.jpg)
}
and on my master page i linked the style sheet .
I placed the images in the folder Menu Images.
Though i have created MenuStyle.css I have to write the whole code for the style sheet in every page which I inherit from the master page.
So please anyone can help me out.
Thanks in advance.



Reply With Quote

Bookmarks