My Blog Title Here

November 16, 2008

Java script executes when the link is clicked it is not the javascript menu over link itself.

Filed under: Uncategorized — Tags: , — admin @ 5:00 am

Q:

["item text", "javascript:your_code_here", ...]

This won’t work the java script executes when the link is clicked it is not
the link itself. Below is what I normally use and how would I incorporate
that?

<a
onclick=”NewWindow(this.href,’name’,'490′,’400′,’yes’);return
false;”
href=”web/equipment/hydraulic_truck.htm”>

A:

You can use

NewWindow(this.href,’name’,'490′,’400′,’yes’);

code in an item link:

["text", "javascript:NewWindow(url,'name','490','400','yes');"]

But if you don’t want that, you can just insert <a> into an javascript menu over item text.

November 13, 2008

When I check my website for accessibility it shows NoAlt on the javascript menu over!

Filed under: Uncategorized — Tags: , — admin @ 4:35 am

Q:

When I check my website for accessibility it shows NoAlt on the javascript menu over!. Where
do I add an alt tag in the data file?

A:

You should use the fifth parameter in menuItems

[text, link, iconNormal, iconOver, tip, target, itemStyleInd, submenuStyleInd, jsFilename],

For example:
["Home","index.htm", "", "", "Home", "", "", "", "", ],
["|Dr. Copeland's Bio","bio.htm", "", "", "Dr. Copeland's Bio", "", "", "", "", ],
["|Destiny History","history.htm", "", "", "Destiny History", "", "", "", "", ],
["|Contact Destiny","contact.htm", "", "", "Contact Destiny", "", "", "", "", ],
["|Dr. Copeland's Itinerary","itinerary.htm", "", "", "Dr. Copeland's Itinerary", "", "", "", "", ],

October 14, 2008

Can I expand a javascript menu popup from a link in my html page?

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

Q:
javascript menu popup from a link in my html page?

A:

Yes, it’s possible, please see
http://www.deluxe-tree.com/functions-info.html

function dtreet_ext_expandItem (itemID, expand)
function dtreet_ext_getItemIDByIndex (menuInd, itemInd)

October 3, 2008

If I want to pop up a link text, should I use alert(itemID[0])) in javascript menu popup?

Filed under: Uncategorized — Tags: , — admin @ 9:30 pm

Q:

I want to use
function dtreet_ext_userRightClick(itemID) {

alert(itemID[0]); ???

return false;
}

But how do I refer to tmenuItems array using itemID in the javascript?
For example, if I want to pop a link text, should I use alert(itemID[0]))?
It doesn’t work.
Please let me know how I refer to the javascript menu popup.

A:

You should use the following function to get item’s info:

dtreet_ext_getItemParams (0, itemID);

For example:

<script type="text/javascript">

function dtreet_ext_userRightClick(itemID)
{ var link = [];
link = dtreet_ext_getItemParams (0, itemID);
//Returns item parameters in the array:
// [item_id, index_within_submenu, parentID, level, has_child, child_count, expanded, text, link, target, tip, align, icons, hidden, disabled, visible]

alert(link[7]);

return false;
}
</script>

September 6, 2008

Can all the java script for the javascript menu popup be contained with in the html and not use an external .js file?

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

Date: 10.21.2005

Q:

Can all the javascript menu popup be contained with in the html and not
use an external .js file?

A:

Of course, you can place all Javascript data from .js file within your
html page code!

\title Generate Search Engine Friendly Code


Hotkey: F3

To open Search Engine Friendly Code dialogue choose “Tools->Generate SE-Friendly Code” in the main menu or press F3. This dialogue generates a special Search Engine Friendly HTML code that you can add in your HTML pages. The code based on your menu is generated automatically when the dialog is opened. To copy the code to clipboard, click on “Copy HTML to clipboard” button. If you need to see how to place the code in your HTML page in a proper way, go to Preview window, click the right mouse button and choose “View Source” in java context menu.

Powered by WordPress