调用方法:
<textarea cols="50" rows="15" name="code" class="xhtml"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <title></title> <mce:script language="javascript" src="/javascript/jquery-1.4.4.min.js" mce_src="javascript/jquery-1.4.4.min.js"></mce:script> <mce:script language="javascript" src="/javascript/jquery.plugin_custom.js" mce_src="javascript/jquery.plugin_custom.js"></mce:script> var option = [['显示名1','值1'],['显示名1','值1'],['显示名2','值2'],['显示名3','值3']]; <mce:script type="text/javascript"><!-- 实现div模拟select插件代码--> function select_list(name,value){ jQuery.dmSelect(name,value,option); } // --></mce:script> <head> <body> <input type="text" value="" id="123name" name="123name" style="width:80px; height:15px;" onfocus="select_list('123name','123value')" /> <input type="hidden" name="123value" id="123value" /> </body> </html> </textarea>