How to change the font color if the user click on css pull down menu?
Return to Recent Questions
Q:
How to modify data.js in deluxe menu to change the font color if the user
click on css pull down menu.
Expl. If the user click on 'Webdesign' and then on 'Thema Webdesign' the
color dosn't change to #333. So the user don't now, where is it.
Please test it on www.media-design.ch. Thank!
A:
Deluxe Tree doesn't save a pressed
item as it saves a tree state. It works within 1 page only and if you
reload the page you should set a pressed item using Javascript API:
function dtreet_ext_setPressedItem (menuInd, itemID)
<script type="text/javascript">
var i = <?php echo $selitem; ?>;
onload=setPressed;
function setPressed()
{
dtreet_ext_setPressedItem(0,dtreet_ext_getItemIDByIndex(0, i));
}
</script>
You should define selitem using server side script.
Return to Recent Questions
Related:
- Sep 02, 2006 - Little vertical spacers between menu items in the drop down menu.
- Sep 06, 2006 - The alighment of the dropdown menu is off to the right in Firefox...
- Sep 06, 2006 - The first item of the html drop down menu stays highlighted.
- Sep 11, 2006 - How can I hide my dropdown menu on print?
- Sep 11, 2006 - If I use doctype the settings of the submenus in javascript dropdown menu get lost.
- Sep 23, 2006 - Is it possible that javascript drop down menus doesn't put anything on the local computer?
- Sep 26, 2006 - Firefox doesn't support the dropshadow and effects in the javascript pull down menu.
- Sep 29, 2006 - Is it possible to use an external file in the java drop down menu?
- Oct 01, 2006 - All of the items in html pull down menu are different sizes.
- Oct 01, 2006 - When I click on link of my vertical drop down menu no file is loaded!?
- Oct 27, 2006 - I'm trying to get a cascading menu that will float as I scroll down the page.
|