My Blog Title Here

November 27, 2008

I don’t understand how dm_ext_setPressedItem() function works in dhtml menu build

Filed under: Uncategorized — Tags: , — admin @ 3:20 am

Q:

I would like to add the javascript API to a link contained in my website that will have the corresponding item in the dhtml menu build act as if it was “clicked”.

Presumably I need to add the script (for example) <A HREF=”mycourts/ScreenShots.html” TARGET=”_self” “..javascriptHere ..”>. Can you give me an example please of what code goes into there.

I presume I use dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion) but where do I get the ????Ind data from and make the javascript call in the above link.

A copy of a working example together with where to get the data , perhaps on your own web pages, would help.

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.

November 18, 2008

Is it possible to create the dhtml menu build with a tilde (over the letter N)?

Filed under: Uncategorized — Tags: , — admin @ 7:25 pm

Q:

Is it possible to create the dhtml menu build with a tilde (over the letter N).
it would look like N. I want the menu item to be labeled
ÑSe habla Epanol.

A:

You can use any html code within menuItems, for example:

var menuItems = [

["Se habla Epa&ntilde;ol","testlink.html", "", "", "", "", "", "", "", ],

October 13, 2008

I need that the dhtml menu build opens loads pages into an iFrame.

Filed under: Uncategorized — Tags: , — admin @ 11:40 am

Q:

That is what I need:

a) I build a dhtml menu build with an item like this:
["||"Product1","http://127.0.0.1/product1.htm","","","",,"0",],

b) when I select that item, I need that page product1.htm loads into an
iFrame.

Can I do this?

A:

You should set the Iframe name as the target value in the menuItems.
You should also set the following parameter:
var itemTarget = “”;

August 27, 2008

Is there any way to keep the cursor as default on disabled links of dhtml menu build?

Filed under: Uncategorized — Tags: , — admin @ 3:20 pm

Q:

Is there any way to keep
the cursor as default on disabled links? I see that there’s a
general cursor choice, is there any chance to make it individually?

A:

Unfortunately you cannot set cursor type individually for all items.
You can set it only for whole items.

You can try to set a cursor for your <img> tag. for example:
["<img src='deluxe-menu.files/sep_mac.gif' style='cursor: default;'>","", "", "", "", "_", "-1", "0", "", ],

You can also try to set the following dhtml menu build parameter:
var itemCursor=”default”;
for all items and use <a> tags for all links:

["<a href='index.html' target='_blank' class='link'>Home</a>","", "", "", "", "Return to Index page", "", "0", "", ],

And create styles
.link{
color: #FFFFFF;}
.link:hover{
color: #FFBEBE;}

August 15, 2008

I cannot select another font type in dhtml menu code

Filed under: Uncategorized — Tags: , — admin @ 2:10 pm

Q:

I have a problem in dhtml menu code creator.
I should mean the font style that I
failed to update after I have selected and assign font as shown in
the pic above.

Step 1. using the sample data file
Step 2. select the font section of the Parameter
Step3. click the font style and a window box will show up
all the installed fonts
Step4. the default font is Tahoma, so I change it Times
Roman
Step5. select Times Roman and click the Assign Font button
There is no response with or without option Auto
The style font box did not update nor the preview

A:

You should click OK button, not “Assign Font” button when you choose
the font. It is possible that you have to click “Update” button on the
“Preview” window.

Powered by WordPress