⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 object.htm

📁 DWR与界面开发 ,对ajax感兴趣的可以看看哦
💻 HTM
📖 第 1 页 / 共 3 页
字号:
<html>
<head>
<title>Binary Star 右键菜单常用方法和属性</title>
<link href="../css/bs.css" rel="stylesheet" type="text/css">
<style>
body{font-family: verdana;font-size: 9pt;}
table{font-family: verdana;font-size: 9pt;}
a{font-family: verdana;font-size: 9pt;color: blue;}
.table_a{border: #bababa 1px solid;border-top: White 0px solid;}
.table_b{border-left: #bababa 1px solid;}
.table_c{border: #bababa 1px solid;}
.table_d{border-bottom:#bababa 1px solid;}
.td_a{background:url(../images/qq.gif);background-repeat:repeat-x;}
.td_b{border-right: #bababa 1px solid; width:150px;}
.td_c{border-bottom: #bababa 1px solid; width:150px;}
.td_d{border-bottom: #bababa 1px solid; width:150px;border-right: #bababa 1px solid; width:150px;}
.button_a{cursor: hand;}
.h1{font-family: verdana;font-weight: normal;font-size: 9pt;color:blue;}
.h1_1{font-family: verdana;font-weight: normal;font-size: 9pt;color:black;}
.h2{font-family: verdana;font-weight: normal;font-size: 9pt;color:red;}
.h2_2{font-family: verdana;font-weight: normal;font-size: 9pt;color:green;}
.h3{font-family: verdana;font-weight: bold;font-size: 10pt;}
</style>
<SCRIPT language=javascript src="../js/bs.js"></SCRIPT>
<SCRIPT language=javascript src="../js/bsrightmenu.js"></SCRIPT>
<SCRIPT language=javascript src="../js/treeview.js"></SCRIPT>
<SCRIPT language=javascript>

var function_rm = new BSTreeView("function_rm", "frmBusiness", false, "");
function_rm.setImagesPath("../images/");
function_rm.setShowLine(true);
function_rm.setShowNodeImg(true);
function_rm.setShowAddImg(true);
var thisShowDiv = "";

function setDivShow(inID){
	if (thisShowDiv!=""){
    document.getElementById(thisShowDiv).style.display = "none";
  }
  if (inID != ""){
	  document.getElementById(inID).style.display = "block";
	  document.getElementById(inID).style.overflow="auto";
  }
  thisShowDiv = inID;
}

</SCRIPT>
</head>
<body leftMargin="0" topMargin="0" rightMargin="0" scroll="no" >
  <table align="center" style="width:100%;height:100%;" class="table_a" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td height="25px" style="" align="left" style="border-right: #bababa 1px solid;" class="td_a"><nobr>&nbsp;对象结构树</nobr>
      </td>
      <td height="25px" style="" align="left" class="td_a" width="100%"><nobr>&nbsp;方法/属性说明</nobr>
      </td>
      <td height="25px" style="" align="right" class="td_a"><nobr>[<a href="../index.htm">回首页</a>]&nbsp;&nbsp;[<a href="rmtest.htm">如何使用Binary Star 右键菜单</a>]&nbsp;&nbsp;</nobr>
      </td>
    </tr>
    <tr>
      <td style="width:220px;height:100%;" class="td_b" valign="top">
      	<div style="width:220px;height:100%;overflow:auto;">
      </br>
	<SCRIPT language=javascript>
	//BSRightMenu对象
	var rootNode = function_rm.addRootNode("bsrmmenu", "BSRightMenu对象", "function_rm.getSelectNode().expand();setDivShow('bsrmmenu')", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
	//方法
	var funcNode = rootNode.addNode("bsrmmenu_f", "常用方法", "function_rm.getSelectNode().expand();setDivShow('');", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
	var oneNode = funcNode.addNode("bsrmmenu.addItemArea", "addItemArea", "setDivShow('bsrmmenu_addItemArea')", "", "", false, false, -1, "package_obj.gif", "package_obj.gif", "package_obj.gif");
	oneNode.setTitle("添加一个右键菜单块");
	oneNode = funcNode.addNode("bsrmmenu.setImagesPath", "setImagesPath", "setDivShow('bsrmmenu_setImagesPath')", "", "", false, false, -1, "package_obj.gif", "package_obj.gif", "package_obj.gif");
	oneNode.setTitle("设置右键控件需要的图片路径");
	oneNode = funcNode.addNode("bsrmmenu.getThisRMArea", "getThisRMArea", "setDivShow('bsrmmenu_getThisRMArea')", "", "", false, false, -1, "package_obj.gif", "package_obj.gif", "package.gif");
	oneNode.setTitle("得到当前显示的菜单块");
	oneNode = funcNode.addNode("bsrmmenu.getThisRMItem", "getThisRMItem", "setDivShow('bsrmmenu_getThisRMItem')", "", "", false, false, -1, "package_obj.gif", "package_obj.gif", "package.gif");
	oneNode.setTitle("得到当前高显的菜单项");
	oneNode = funcNode.addNode("bsrmmenu.doRightMenu", "doRightMenu", "setDivShow('bsrmmenu_doRightMenu')", "", "", false, false, -1, "package_obj.gif", "package_obj.gif", "package.gif");
	oneNode.setTitle("激发右键菜单");
	//属性
	var attNode = rootNode.addNode("bsrmmenu_a", "常用属性", "function_rm.getSelectNode().expand();setDivShow('');", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
	oneNode = attNode.addNode("bsrmmenu.itemAreaList", "itemAreaList", "setDivShow('bsrmmenu_itemAreaList')", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
	oneNode.setTitle("右键块集合");
	
	//BSRightItemArea对象
	var rootNode = function_rm.addRootNode("bsrmmenuarea", "BSRightItemArea对象", "function_rm.getSelectNode().expand();setDivShow('bsrmmenuarea')", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
	//方法
	funcNode = rootNode.addNode("bsrmmenuarea_f", "常用方法", "function_rm.getSelectNode().expand();setDivShow('');", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
	oneNode = funcNode.addNode("bsrmmenuarea.addRootItem", "addRootItem", "setDivShow('bsrmmenuarea_addRootItem')", "", "", false, false, -1, "package_obj.gif", "package_obj.gif", "package_obj.gif");
	oneNode.setTitle("添加一个右键根菜单项");
	oneNode = funcNode.addNode("bsrmmenuarea.addItem", "addItem", "setDivShow('bsrmmenuarea_addItem')", "", "", false, false, -1, "package_obj.gif", "package_obj.gif", "package_obj.gif");
	oneNode.setTitle("添加一个右键菜单项");
	//属性
	attNode = rootNode.addNode("bsrmmenuarea_a", "常用属性", "function_rm.getSelectNode().expand();setDivShow('');", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
	oneNode = attNode.addNode("bsrmmenuarea.index", "index", "setDivShow('bsrmmenuarea_index')", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
	oneNode.setTitle("该菜单块索引");
	oneNode = attNode.addNode("bsrmmenuarea.itemList", "itemList", "setDivShow('bsrmmenuarea_itemList')", "", "", false, false, -1, "package_obj.gif", "package_obj.gif", "package.gif");
	oneNode.setTitle("右键菜单集合");
	
	//BSRightItem对象
	var rootNode = function_rm.addRootNode("bsrmmenuitem", "BSRightItem对象", "function_rm.getSelectNode().expand();setDivShow('bsrmmenuitem')", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
	//方法
	funcNode = rootNode.addNode("bsrmmenuitem_f", "常用方法", "function_rm.getSelectNode().expand();setDivShow('');", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
	oneNode = funcNode.addNode("bsrmmenuitem.addItem", "addItem", "setDivShow('bsrmmenuitem_addItem')", "", "", false, false, -1, "package_obj.gif", "package_obj.gif", "package_obj.gif");
	oneNode.setTitle("添加一个子右键菜项");
	oneNode = funcNode.addNode("bsrmmenuitem.setDisabled", "setDisabled", "setDivShow('bsrmmenuitem_setDisabled')", "", "", false, false, -1, "package_obj.gif", "package_obj.gif", "package_obj.gif");
	oneNode.setTitle("设置菜单项是否可用");
	//属性
	attNode = rootNode.addNode("bsrmmenuitem_a", "常用属性", "function_rm.getSelectNode().expand();setDivShow('');", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
	oneNode = attNode.addNode("bsrmmenuitem.index", "index", "setDivShow('bsrmmenuitem_index')", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
	oneNode.setTitle("本菜单项索引");
	oneNode = attNode.addNode("bsrmmenuitem.areaIndex", "areaIndex", "setDivShow('bsrmmenuitem_areaIndex')", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
	oneNode.setTitle("本菜单项所在的右键块索引");
	oneNode = attNode.addNode("bsrmmenuitem.childList", "childList", "setDivShow('bsrmmenuitem_childList')", "", "", false, false, -1, "package_obj.gif", "package_obj.gif", "package.gif");
	oneNode.setTitle("该菜单项包含的子菜单项索引集合");

	function_rm.DrawTree(true);
	</SCRIPT>
	</div>
      </td>
      <td style="height:100%;overflow:auto;" valign="top" colspan="2">
      
      <!--BSRightMenu -->
      <div id="bsrmmenu" style="width:100%;height:100%;display:none;overflow:auto;">
      <br/>
      <table style="width:98%;" class="table_a" align="center" border="0" cellpadding="0" cellspacing="0">
	    <tr>
	      <td height="25px" style="width:100%;" align="center" class="td_a" colspan="2"><b>BSRightMenu 对象</b>
	      </td>
	    </tr>
	    <tr>
	      <td height="25px" style="width:100%;" align="left" class="td_c" colspan="2">
	      	语法:var RMMenu = new BSRightMenu(id);
	      </td>
	    </tr>
	    <tr>
	      <td height="25px" style="width:200;" align="left" class="td_b">
	      	<b><nobr>参数[id]:</nobr></b>
	      </td>
	      <td height="25px" style="width:100%;" align="left">
	      	[<b class="h1">String</b>] 右键的实例名称。
	      </td>
	    </tr>
      </table>
      </div>
      
      <!--bsrmmenu_addItemArea -->
      <div id="bsrmmenu_addItemArea" style="width:100%;height:100%;display:none;overflow:auto;">
      <br/>
      <table style="width:98%;" class="table_a" align="center" border="0" cellpadding="0" cellspacing="0">
	    <tr>
	      <td height="25px" style="width:100%;" align="center" class="td_a" colspan="2"><b>addItemArea 方法</b>
	      </td>
	    </tr>
	    <tr>
	      <td height="25px" style="width:100%;" align="left" class="td_c" colspan="2">
	      	[作用]:为树控件添加跟节点,返回添加的根节点对象。
	      </td>
	    </tr>
	    <tr>
	      <td height="25px" style="width:100%;" align="left" class="td_c" colspan="2">
	      	[语法]:var newArea = RMMenu.addItemArea(text);
	      </td>
	    </tr>
	    <tr>
	      <td height="25px" style="width:200;" align="left" class="td_b">
	      	<b><nobr>参数[text]:</nobr></b>
	      </td>
	      <td height="25px" style="width:100%;" align="left">
	      	[<b class="h1">String</b>] 输入的右键菜单展现时左侧文字。
	      </td>
	    </tr>
      </table>
      </div>
      
      <!--bsrmmenu_setImagesPath -->
      <div id="bsrmmenu_setImagesPath" style="width:100%;height:100%;display:none;overflow:auto;">
      <br/>
      <table style="width:98%;" class="table_a" align="center" border="0" cellpadding="0" cellspacing="0">
	    <tr>
	      <td height="25px" style="width:100%;" align="center" class="td_a" colspan="2"><b>setImagesPath 方法</b>
	      </td>
	    </tr>
	    <tr>
	      <td height="25px" style="width:100%;" align="left" class="td_c" colspan="2">
	      	[作用]:设置右键控件需要的图片路径。
	      </td>
	    </tr>
	    <tr>
	      <td height="25px" style="width:100%;" align="left" class="td_c" colspan="2">
	      	[语法]:RMMenu.setImagesPath(inPath);
	      </td>
	    </tr>
	    <tr>
	      <td height="25px" style="width:200;" align="left" class="td_b">
	      	<b><nobr>参数[inPath]:</nobr></b>
	      </td>
	      <td height="25px" style="width:100%;" align="left">
	      	[<b class="h1">String</b>] 输入的图片路径。
	      </td>
	    </tr>
      </table>
      </div>
      
      <!--bsrmmenu_getThisRMArea -->
      <div id="bsrmmenu_getThisRMArea" style="width:100%;height:100%;display:none;overflow:auto;">
      <br/>
      <table style="width:98%;" class="table_a" align="center" border="0" cellpadding="0" cellspacing="0">
	    <tr>
	      <td height="25px" style="width:100%;" align="center" class="td_a" colspan="2"><b>getThisRMArea 方法</b>
	      </td>
	    </tr>
	    <tr>
	      <td height="25px" style="width:100%;" align="left" class="td_c" colspan="2">
	      	[作用]:得到当前显示的菜单块。
	      </td>
	    </tr>
	    <tr>
	      <td height="25px" style="width:100%;" align="left" class="td_b">
	      	[语法]:RMMenu.getThisRMArea();
	      </td>
	    </tr>
      </table>
      </div>
      
      <!--bsrmmenu_getThisRMItem -->
      <div id="bsrmmenu_getThisRMItem" style="width:100%;height:100%;display:none;overflow:auto;">
      <br/>
      <table style="width:98%;" class="table_a" align="center" border="0" cellpadding="0" cellspacing="0">
	    <tr>
	      <td height="25px" style="width:100%;" align="center" class="td_a" colspan="2"><b>getThisRMItem 方法</b>
	      </td>
	    </tr>
	    <tr>
	      <td height="25px" style="width:100%;" align="left" class="td_c" colspan="2">
	      	[作用]:得到当前高显的菜单项。
	      </td>
	    </tr>
	    <tr>
	      <td height="25px" style="width:100%;" align="left" class="td_b">
	      	[语法]:RMMenu.getThisRMItem();
	      </td>
	    </tr>
      </table>
      </div>
      
      <!--bsrmmenu_doRightMenu -->
      <div id="bsrmmenu_doRightMenu" style="width:100%;height:100%;display:none;overflow:auto;">
      <br/>
      <table style="width:98%;" class="table_a" align="center" border="0" cellpadding="0" cellspacing="0">
	    <tr>
	      <td height="25px" style="width:100%;" align="center" class="td_a" colspan="2"><b>doRightMenu 方法</b>
	      </td>
	    </tr>
	    <tr>
	      <td height="25px" style="width:100%;" align="left" class="td_c" colspan="2">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -