解决方案 »
- 省市区县 页面显示效果 如何实现?
- 这段Javascript代码不知哪儿有误,本意是图片一直滚,可是我的只滚了不到10秒就不动了,再刷新才再滚10秒
- 请教各位大大,如何在html代码中利用JS返回取值!
- 求助 object播放器如何禁止自动下载视频文件
- 请问firefox地址栏输入中文显示乱码如何解决?
- 老大们一个JS问题
- iframe帧窗口 有没有让边框显示在最前的属性.
- 怎么获取屏幕的宽度和高度呢?
- 有没有不用微软的activeX也能在html中读xml的方法吗?
- 怎么屏蔽表单的自动完成功能,用代码来实现。
- JQuery如何获取下拉列表框触发的事件
- 禁止浏览器在控制台中打印response错误
var str = '<row id="5" class="listtable_selline" onmouseover="moveover(this);" title="" ondblclick="fi_selreturn();" onmouseout="moveout(this);" onclick="select_line(this);return;" 顶级部门代码="" 顶级部门名称="董事长" 顶级部门ID="1" query_deptnames="财务部" pos_deptname="财务部" pos_deptid="10" email="" postcode="" address="" city="" province="" hometel="" fax="" tel="" foreignlan2level="" foreignlan2="" foreignlan1level="" foreignlan1="" graduate="" college="" speciality="" education="" party="" stature="" registerplace="" nation="" nativeplace="" comdate="" birthday="" idcard="" p_id="5" desktop_id="" menu_id="" pwd="ZXnXtPxjOsQ=" islogin="1" isactive="1" comage="" mobile="" age="" title_name="" title_levelno="" title_id="" account="yilh" shortname="" position_id="5" dept_id="10" org_id="1" null=" " code="" name="兰花" dept_name="财务部" position_name="会计" sex="女"/>'$(str).attr('name')
<script>
function select_line(o){
//取得指定属性
var name = o.getAttribute("name");
var dept_name = o.getAttribute("dept_name"); $alert(name+" "+dept_name)
//取得所有自定义属性
var sb="";
for(var k =0;k<o.attributes.length;k++){
var ob = o.attributes[k];
if(ob.expando){
sb+=k+" - "+ob.nodeName +":"+ob.nodeValue+"\n";
}
}
$alert(sb)
}
</script><row id="5" class="listtable_selline" onmouseover="moveover(this);" title="" ondblclick="fi_selreturn();" onmouseout="moveout(this);" onclick="select_line(this);return;" 顶级部门代码="" 顶级部门名称="董事长" 顶级部门ID="1" query_deptnames="财务部" pos_deptname="财务部" pos_deptid="10" email="" postcode="" address="" city="" province="" hometel="" fax="" tel="" foreignlan2level="" foreignlan2="" foreignlan1level="" foreignlan1="" graduate="" college="" speciality="" education="" party="" stature="" registerplace="" nation="" nativeplace="" comdate="" birthday="" idcard="" p_id="5" desktop_id="" menu_id="" pwd="ZXnXtPxjOsQ=" islogin="1" isactive="1" comage="" mobile="" age="" title_name="" title_levelno="" title_id="" account="yilh" shortname="" position_id="5" dept_id="10" org_id="1" null=" " code="" name="兰花" dept_name="财务部" position_name="会计" sex="女"/> asdfasdf