|
|

楼主 |
发表于 2012/3/18 17:29:31
|
显示全部楼层
打开门户,看到如下源代码,setMenuItemChecked就是设置默认选项,而这个门户是后台自动生成的。
至于怎么改,需要在研究研究
01.<script language="javascript">
02. with(new CCPopupMenu("searchMenu","searchflyout_span", ""))
03. {
04. addMenuItem("findTextInMenu_n","findTextInMenuGroup", "名称字段", "","CCPopupMenu.activeMenu.setMenuItemChecked(\"findTextInMenu_n\");document.mainSearchForm.sfield.value = \'n\';");
05. setMenuItemChecked("findTextInMenu_n");
06. addMenuItem("findTextInMenu_d","findTextInMenuGroup", "说明字段", "","CCPopupMenu.activeMenu.setMenuItemChecked(\"findTextInMenu_d\");document.mainSearchForm.sfield.value = \'d\';");
07. addMenuItem("findTextInMenu_nd","findTextInMenuGroup", "名称或说明字段", "","CCPopupMenu.activeMenu.setMenuItemChecked(\"findTextInMenu_nd\");document.mainSearchForm.sfield.value = \'nd\';");
08. }
09.</script>
复制代码 |
|