日期:2014-05-17 浏览次数:20552 次
<script language="JavaScript"> <!-- var so = new SWFObject('http://v.ku6.com/uploadvideoforpartnerserver.jsp', 'video_uploader', '500', '58', '9', ''); so.addParam('allowScriptAccess', 'always'); so.addParam('FlashVars', 'mediatype=1'); so.write('flash_uper'); var uploadObject=document.getElementById("video_uploader"); //--> </script>
<div id="mainarea"> <script language="JavaScript" src="http://home.babydao.com/swfobject.js"></script> <script language="JavaScript"> var isSelectFile=false; var upLoading=false; function isMvUploaded(B,S){ //alert(B); //alert("upv"+S); alert("文件上传成功,开始提交视频信息"); document.postForm.upv.value=S; document.postForm.submit(); } function MvSelected(B, C){ var ext; var title; title= C.substring(0,C.lastIndexOf(".")); ext= C.substring(C.lastIndexOf("."),C.length).toLowerCase(); isSelectFile=true; //alert("文件标题为:"+title+"\r\n文件扩展名为:"+ext); } function uploadFile(){ if(document.postForm.title.value.length>30 || document.postForm.title.value.length==0){ alert("标题长度大于30个字符或者为空,请重新填写"); return false; } if(document.postForm.des.value.length>1000 || document.postForm.des.value.length==0){ alert("简介长度大于1000个字符或者为空,请重新填写"); return false; } if(document.postForm.tag.value.length>44 || document.postForm.tag.value.length==0){ alert("关键字长度大于44个字符或者为空,请重新填写"); return false; } document.postForm.uploadsubmit.disabled=true; document.postForm.uploadsubmit.value="上传中......"; if(upLoading){ alert("已经在上传中..."); return; } if(!isSelectFile){ showOpenDialog(); } uploadObject.UpMV(false); upLoading=true; } </script> <h2 class="title"><img src="image/app/video.gif">视频</h2> <div class="tabs_header"> <ul class="tabs"> <li class="active"><a href="cp.php?ac=uploadvideo&albumid="><span>视频上传</span></a></li> <li><a href="space-88449-do-video-view-me.html"><span>返回我的视频</span></a></li> </ul> </div> <div class="c_form"> <form method="post" id="postForm" name="postForm" action="cp.php?ac=uploadvideo"> <table cellspacing="0" cellpadding="0" class="formtable"> <tbody id="attachbodyhidden"> <tr> <td> 选择视频</td><td><div id="flash_uper"> <script language="JavaScript"> <!-- var so = new SWFObject('http://v.ku6.com/uploadvideoforpartnerserver.jsp', 'video_uploader', '500', '58', '9', ''); so.addParam('allowScriptAccess', 'always'); so.addParam('FlashVars', 'mediatype=1'); so.write('flash_uper'); var uploadObject=document.getElementById("video_uploader"); //--> </script></div> <input type="hidden" name="formhash" value=&quo