JS如何设置CuteEditor控件不可用呢?

JavaScript012

JS如何设置CuteEditor控件不可用呢?,第1张

<html>

<head>

<meta http-equiv="Content-Type" content="text/htmlcharset=gb2312">

<meta name="keywords" content="">

<style type="text/css">body

table

td

img

a

a:hover

.sec_menu

.menu_title

.menu_title span

.menu_title2

.menu_title2 span

</style>

<script language="javascript">

function menuShow(obj,maxh,obj2)

{

if(obj.style.pixelHeight<maxh)

{

obj.style.pixelHeight+=maxh/20

obj.filters.alpha.opacity+=5

obj2.background="images/title_bg_hide.gif"

if(obj.style.pixelHeight==maxh/10)

obj.style.display='block'

myObj=obj

myMaxh=maxh

myObj2=obj2

setTimeout('menuShow(myObj,myMaxh,myObj2)','5')

}

}

function menuHide(obj,maxh,obj2)

{

if(obj.style.pixelHeight>0)

{

if(obj.style.pixelHeight==maxh/20)

obj.style.display='none'

obj.style.pixelHeight-=maxh/20

obj.filters.alpha.opacity-=5

obj2.background="images/title_bg_show.gif"

myObj=obj

myMaxh=maxh

myObj2=obj2

setTimeout('menuHide(myObj,myMaxh,myObj2)','5')

}

else

if(whichContinue)

whichContinue.click()

}

function menuChange(obj,maxh,obj2)

{

if(obj.style.pixelHeight)

{

menuHide(obj,maxh,obj2)

whichOpen=''

whichcontinue=''

}

else

if(whichOpen)

{

whichContinue=obj2

whichOpen.click()

}

else

{

menuShow(obj,maxh,obj2)

whichOpen=obj2

whichContinue=''

}

}

</script>

<base target="left">

</head>

<body>

<table cellpadding="0" cellspacing="0" width="158">

<tr style="CURSOR:hand">

<td height="42" valign="bottom">

<img src="images/back.gif" width="160" height="30">

</td>

</tr>

</table>

<table cellpadding="0" cellspacing="0" width="158">

<tr style="CURSOR:hand">

<td height="25" class="menu_title" onmouseover="this.className='menu_title2'" onmouseout="this.className='menu_title'"

background="images/title_bg_show.gif" id="menuTitle1" onclick="menuChange(menu1,80,menuTitle1)">

<span>基本选项</span>

</td>

</tr>

<tr>

<td>

<div class="sec_menu" style="FILTER:alpha(Opacity=100)OVERFLOW:hiddenWIDTH:158pxHEIGHT:80px"

id="menu1">

<table cellpadding="0" cellspacing="0" align="center" width="135" style="POSITION:relativeTOP:10px">

<tr>

<td height="20">

<a href="setLogo.aspx" target="right" onfocus="this.blur()">设置Logo</a>

</td>

</tr>

<tr>

<td height="20">

<a href="setHotNews.aspx" target="right" onfocus="this.blur()">增加热点信息</a>

</td>

</tr>

<tr>

<td height="20">

<a href="HotNewsForSearch.aspx" target="right" onfocus="this.blur()">查看热点信息</a> 

</td>

</tr>

</table>

</div>

</td>

</tr>

</table>

<script language="javascript">

var whichOpen=menuTitle1

var whichContinue=''

</script>

<table cellpadding="0" cellspacing="0" width="158">

<tr style="CURSOR:hand">

<td height="25" class="menu_title" onmouseover="this.className='menu_title2'" onmouseout="this.className='menu_title'"

background="images/title_bg_show.gif" id="menuTitle2" onclick="menuChange(menu2,120,menuTitle2)">

<span>信息设置</span>

</td>

</tr>

<tr>

<td>

<div class="sec_menu" style="DISPLAY:noneFILTER:alpha(Opacity=0)WIDTH:158pxHEIGHT:0px"

id="menu2">

<table cellpadding="0" cellspacing="0" align="center" width="135" style="POSITION:relativeTOP:10px">

<tr>

<td height="20">

<a href="searchInfo.aspx?type=0" target="right" onfocus="this.blur()">查看未审核的信息</a>

</td>

</tr>

<tr>

<td height="20">

<a href="searchInfo.aspx?type=1" target="right" onfocus="this.blur()">查看已审核信息</a>

</td>

</tr>

<tr>

<td height="20">

<a href="put.aspx" target="right" onfocus="this.blur()">固定位置设置</a>

</td>

</tr>

<tr>

<td height="20">

<a href="" onfocus="this.blur()">信体过滤规则</a>

</td>

</tr>

<tr>

<td height="20">

<a href="" onfocus="this.blur()">附件过滤规则</a>

</td>

</tr>

</table>

</div>

</td>

</tr>

</table>

<table cellpadding="0" cellspacing="0" width="158">

<tr style="CURSOR:hand">

<td height="25" class="menu_title" onmouseover="this.className='menu_title2'" onmouseout="this.className='menu_title'"

background="images/title_bg_show.gif" id="menuTitle3" onclick="menuChange(menu3,120,menuTitle3)">

<span>系统管理</span>

</td>

</tr>

<tr>

<td>

<div class="sec_menu" style="DISPLAY:noneFILTER:alpha(Opacity=0)WIDTH:158pxHEIGHT:0px"

id="menu3">

<table cellpadding="0" cellspacing="0" align="center" width="135" style="POSITION:relativeTOP:10px">

<tr>

<td height="20">

<a href="" onfocus="this.blur()">用户管理</a>

</td>

</tr>

<tr>

<td height="20">

<a href="" onfocus="this.blur()">进程管理</a>

</td>

</tr>

<tr>

<td height="20">

<a href="" onfocus="this.blur()">主机运行状态</a>

</td>

</tr>

<tr>

<td height="20">

<a href="" onfocus="this.blur()">数据备份</a>

</td>

</tr>

<tr>

<td height="20">

<a href="" onfocus="this.blur()">垃圾目录管理</a>

</td>

</tr>

</table>

</div>

</td>

</tr>

</table>

<table cellpadding="0" cellspacing="0" width="158">

<tr style="CURSOR:hand">

<td height="25" class="menu_title" onmouseover="this.className='menu_title2'" onmouseout="this.className='menu_title'"

background="images/title_bg_show.gif" id="menuTitle4" onclick="menuChange(menu4,140,menuTitle4)">

<span>系统统计</span>

</td>

</tr>

<tr>

<td>

<div class="sec_menu" style="DISPLAY:noneFILTER:alpha(Opacity=0)WIDTH:158pxHEIGHT:0px"

id="menu4">

<table cellpadding="0" cellspacing="0" align="center" width="135" style="POSITION:relativeTOP:10px">

<tr>

<td height="20">

<a href="" onfocus="this.blur()">IP过滤统计</a>

</td>

</tr>

<tr>

<td height="20">

<a href="" onfocus="this.blur()">信封过滤统计</a>

</td>

</tr>

<tr>

<td height="20">

<a href="" onfocus="this.blur()">信头过滤统计</a>

</td>

</tr>

<tr>

<td height="20">

<a href="" onfocus="this.blur()">信体过滤统计</a>

</td>

</tr>

<tr>

<td height="20">

<a href="" onfocus="this.blur()">附件过滤统计</a>

</td>

</tr>

<tr>

<td height="20">

<a href="" onfocus="this.blur()">动态规则统计</a>

</td>

</tr>

</table>

</div>

</td>

</tr>

</table>

<table cellpadding="0" cellspacing="0" width="158">

<tr style="CURSOR:hand">

<td height="25" class="menu_title" background="images/title_bg_quit.gif">

<a href="managerLogin.aspx" target="_parent">

<span>退出系统</span></a>

</td>

</tr>

</table>

</body>

</html>

正好在做东西...这个是MENU的

用隐藏控件的这个方法我也想过,但是因为画面上的下拉框比较多,所以要再formbean中加很多的属性。并在画面上有三个radiobutton,分别代表了三种状态。选择其中一种时,画面上的有些控件就被设置成不可用的。还有就是select控件是不支持readonly这个属性的。这次要实现的效果就是 不使用disabled这个属性 而实现select的disabled功能。