<applet code="apMenu.class" Width="125" Height="156" MAYSCRIPT>
<param name="menuItems" value="
{Script1,javascript:somefunction('param1','param2'),_}
{Script2,javascript:open('index.html','_blank'),_}
">
</applet>
To topThe best way to overcome most of the limitations is placing the instructions within a javascript function:
.....
function open_w(arg){
if (confirm('Open a new window?') == true){
open(arg,'window','scrollbars,resizeable=yes,width=680,height=600')
}
}
.....
<param name="menuItems" value="
{Open window,javascript:open_w('index.html'),_}">
.....
To topsetPressedItem(number_of_item)sets a new highlighted/pressed item, example: setPressedItem(3)
getPressedItem()returns a highlighted/pressed item, example: getPressedItem()
changeItem('index_of_item','new_item_text','new_link','new_target')
changes an item, example: changeItem('3_1_9','Apycom Home','http://www.apycom.com','_self')setCheckbox('index_of_item','flag')
sets a submenu checkbox item to a state difined by 'flag': 'true' checks item, 'false' unchecks itgetCheckbox('index_of_item')
returns a checkbox state, 'true' - item is in checked state, 'false' - item is in unchecked state<applet name=myap1 code=apPopupMenu.class Width=125 Height=156 MAYSCRIPT> ..... </applet>* and then call the function via javascript;
<a href="javascript:document.myap1.changeItem('3_2','Text','test.html','_blank')">
Click here!</a>
To top