lee
2012-03-19 17:21:39 来源: 评论:0 点击:
<a href="javascript:void();" onclick="vclearjs();" title="清空集数,系统自动从第1集重新排列,适用于集数错乱时">校正集数</a>
<a href="javascript:void();" onclick="addone('gvod');" title="增加一行以便手工填写">增加一行</a>
<script>
function vclearjs(){
$("input[name='gvod_alt\\[\\]']").attr("value", '');
}
function addone(returnid){
var str = $('#'+returnid).html();
var ids = parseInt(Math.random() * 10000 + 10*i);
str += "<li id='image"+ids+"'><input type='text' name='"+returnid+"_url[]' value='' style='width:310px;' ondblclick='image_priview(this.value);' class='input-text'> <input type='text' name='"+returnid+"_alt[]' value='' style='width:160px;' class='input-text' onfocus=\"if(this.value == this.defaultValue) this.value = ''\" onblur=\"if(this.value.replace(' ','') == '') this.value = this.defaultValue;\"> <a href=\"javascript:remove_div('image"+ids+"')\">移除</a> </li>";
$('#'+returnid).html(str);
}
</script>
相关热词搜索:lee