View Full Version : add statusicon to Arrow Side Menu ?
stevekane
03-29-2011, 01:43 PM
1) Script Title: Arrow Side Menu
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-arrow.htm
3) Describe problem:
Is it possible to add a statusicon to the above script and keep the background sprite working as it is
stevekane
03-31-2011, 11:40 AM
I have found a way of doing this if anyone else is interested. Not sure it's the best way but appears to work :)
added this to css
.statusicon{ /*CSS for icon image that gets dynamically added to headers*/
position: absolute;
margin-top: 8px;
margin-left: 4px;
border: none;
}
.menuheaders a{
text-indent: 18px;
}
and added this to //Initialize Arrow Side Menu: to point to images
togglehtml: ["prefix", "<img src='http://www.3d-cases.co.uk/assets/images/icons/menu-plus_icon.gif' class='statusicon' />", "<img src='http://www.3d-cases.co.uk/assets/images/icons/menu-minus_icon.gif' class='statusicon' />"],
If anyone knows a better/simplier way please let me know
Thanks DD for a great menu
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.