<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="utf-8" />
<meta name="robots" content="all" />
<meta name="author" content="Tencent-ISRD" />
<meta name="Copyright" content="Tencent" />
<meta name="Description" content="Qzone精彩由你而来" />
<meta name="Keywords" content="Qzone,QQ空间,Blog,博客,网络日志,播客,腾讯,QQ,Tencent" />
<title> </title>
<style>
.author-display {display:none;}
.visitor-display {display:none;}
</style>
<link rel="stylesheet" rev="stylesheet" href="upload_photo.css" type="text/css" media="screen"/>
<link rel="Shortcut Icon" href="/favicon.ico" type="image/x-icon" />
<style type="text/css">
<!--
body {
/*overflow:hidden;*/
background-color:transparent;
}
-->
</style>
<script src="http://imgcache.qq.com/qzone/client/photo/pages/qzone_v4/script/qzflsmall.js"> </script>
<script src="http://imgcache.qq.com/qzone/client/photo/pages/qzone_v4/script/album.js"> </script>
<script language="vbscript" src="http://imgcache.qq.com/qzone/client/photo/script/code_proc.vbs"> </script>
<script src="../js/swfupload.js""> </script>
</head>
<body>
<div class="photo">
<div class="bg_mode">
<div class="box_ml bor">
<div class="mode_gb">
<!--==S 模块标题-->
<div class="mode_gb_title style_mode_gb_title" style="height:auto">
</div>
<!--==E 模块标题-->
<!--==S 模框内容-->
<div class="mode_gb_cont">
<!--==S 导航指引标题-->
<!--==E 导航指引标题-->
<!--==S 相册-->
<div class="upload_main">
<div class="upload_main_frame">
<div class="flash_upload_frame">
<div class="upload_frame_title">
<button > </div>
</div>
</div>
</div>
</div>
<!--==E 相册-->
</div>
<!--==E 模框内容-->
</div>
</div>
</div>
</div>
</body>
<script>
var Flash = (function(){
var _swfu;
var _fileArray = [];
var uploadStatus = 1; //0:可以上传 1:暂停上传,可以继续 -1:停止上传,不可继续 2:中间等待状态
var inner;
function showOrHideDel(type){
var eles = QZONE.dom.getByName("del_up_file","td");
if(type == "show"){
for(var i=0; i <eles.length; i++){
eles[i].style.visibility="";
}
}else{
for(var i=0; i <eles.length; i++){
eles[i].style.visibility="hidden";
}
}
}
function getFileIndexById(fid){
for(var i=0; i < _fileArray.length; i++){
if(_fileArray[i].id == fid){
return i;
}
}
}
function addFile(file){
for(var i=0; i <_fileArray.length; i++){
if(file.name==_fileArray[i].name &&
file.size==_fileArray[i].size &&
file.creationdate.getTime()==_fileArray[i].creationdate.getTime() &&
file.modificationdate.getTime()==_fileArray[i].modificationdate.getTime()){
_swfu.cancelUpload(file.id);
return false;
}
}
_fileArray.push(file);
return true;
}
function setFileStatus(fid,status){
_fileArray[getFileIndexById(fid)].filestatus = status;
}
//支持 file object 和 status number
function fileStatus(o){
var html,status;
if(typeof(o) == "object" && o.id){
status = o.filestatus;
}else{
status = o;
}
switch(status){
case -1 : html = '等待上传';break;
case -2 : html = ' <div class="loading_rate"> <div class="rate_bar" style="width:1%"> </div> </div> <strong class="proportion">1% </strong>';break;
case -3 : html = '上传失败';break;
case -4 : html = '上传成功!';break;
case -5 : html = '取消上传';break;
case -6 : html = ' <span class="loading_hint">照片大小超过2M </span>';break;
//自己定义的错误吗
case -501 : html = ' <span class="loading_hint">对不起,服务器忙! </span>';break;
case -502 : html = ' <span class="loading_hint">文件出错! </span>';break;
case -503 : html = "上传成功!";break;
case -504 : html = "上传失败";break;
case -505 : html = "上传失败";break;
case -506 : html = ' <span class="loading_hint">照片大小超过2M </span>';break;
case -507 : html = ' <span class="loading_hint">文件大小为0 </span>';break;
case -508 : html = ' <span class="loading_hint">文件格式错误 </span>';break;
case -509 : html = ' <span class="loading_hint">登陆超时 </span>';break;
case -510 : html = ' <span class="loading_hint">含有违规信息! </span>';break;
}
return html;
}
function buildHtml(){
var html=[];
var size = 0, count, errCount = 0;
if(_fileArray.length < 1){
$hide("up_file_list");
$hide("up_file_title");
$show("add_file");
$hide("list_lable");
$hide("uped_lable");
$show("add_lable");
$hide("start_up_btn");
$show("nstart_up_btn");
$("cancel_btn").disabled = true;
return;
}else{
$show("up_file_list");
$show("up_file_title");
$hide("add_file");
$hide("add_lable");
$show("list_lable");
$show("uped_lable");
$show("start_up_btn");
$hide("nstart_up_btn");
$("cancel_btn").disabled = false;
}
for(var i = 0; i < _fileArray.length; i++){
var name = _fileArray[i].name.replace(/\.[a-zA-Z]+$/g,"");
if(name.lenB() > 14){
name = name.leftB(14) + "...";
}
var tmp = [
' <tr>',
' <td>'+name+' </td>',
' <td
}else{
Flash.clean();
}
},