Recent Questions
Q: Microsoft Explorer has settings that block JAVA scripts (and therefore our JAVA menu).
However, I notice that some JAVA menus on other web sites are not blocked by Microsoft Explorer.
Is there any way to make the java cascading menu not be blocked by Microsoft Explorer ?
I want people visiting my web site not to have the java cascading menu blocked by Mircrosot Explorer.
A: There is no way to enable these preferences automatically, in othercase there are no reasons to create security preferences.
But you can try to use a workaround:http://www.adobe.com/devnet/activecontent/articles/devletter.htmlTry to use AC_RunActiveContent.js file to run active content.
Q: One other question, how do you get the menu bar to highlight and stay on the page you are viewing rather than highlighting home the whole time.
A: You should set a pressed item using Javascript API:
function dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion)
Sets a current pressed item.
menuInd - index of a menu on a page, >= 0.
submenuInd - index of a submenu, >= 0.
itemInd - index of an item, >=0.
recursion = true/false - highlight parent items.
But notice, to use dm_ext_setPressedItem() you should know ID of selected item and subitem.
You can't get this ID after you reload your page. That is why you should write your own code on PHP.
Q: I need to use an iframe within the popup window.
Is there any way I can close the dhtml window from the page loaded within the iframe?
A: You can close the popup using the following function:
document.getElementById('win').hide();
Unfortunately it won't work if you use iframe as window content.
You open another page in the popup (in Iframe) so you cannot access
document.getElementById('win').hide();
element which is situated on the first page.
When you use text or object_id as window content the content of the popup will be situated
on the same page so you can access document.getElementById('win') element and hide it.
There is a workaround.
Use text as content type and add the following code inside popup:
<a onclick="document.getElementById('win').hide();">...</a><iframe></iframe>
Your link will work in that case.
Q: When you hover over words the background color is light blue - How do I change dhtml context menu so that the color when you hover over items is different?
A: You should change the following parameter:
var itemBackColor=["#FCEEB0","#65BDDC"];