87,990
社区成员
发帖
与我相关
我的任务
分享<html>
<head>
<style>
.mz_icon_inline{
background-color:red;
}
</style>
</head>
<body>
<div id="admin_postnews_2_1">
</div>
<script>
editorbar = [
["a1","a2"],
["b1","b2"],
["c1","c2"]
]
function edit_border_show(id){
id.className ="mz_icon_inline";
}
function edit_border_hide(){
}
var load_editor = function(){
var editor="";
for(i=0;i<editorbar.length;i++)
{
editor += '<span id="'+editorbar[i][0]+'" class="mz_icon_url mz_ico_'+editorbar[i][0]+ '" title="'+editorbar[i][1]+'" onmousemove="edit_border_show(this)" onmouseout="edit_border_hide(this)">'+editorbar[i][0]+'</span>';
}
return editor;
}
document.getElementById("admin_postnews_2_1").innerHTML = load_editor();
</script>
</body>
</html>