body {
padding-top: 40px;
padding-bottom: 40px;
background-color: #f5f5f5;
}
.form_pan {
max-width: 650px;
padding: 19px 29px 29px;
margin: 0 auto 20px;
background-color: #fff;
border: 1px solid #e5e5e5;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.form_pan .form_pan-heading {
margin-bottom: 10px;
}
function Change()
{
var host = window.location.host;
var hostname = "http://" + window.location.hostname + "/";
var url = document.getElementById("text1").value;
var tmp= new Array();
tmp=url.split("/");
var fileid = tmp[tmp.length-1];
/*
var arr = url.split("&");
document.write(arr+"
");
var shareid = arr[0].split("=")[1];
document.write(shareid+"
");
var uk = arr[1].split("=")[1];
document.write(uk+"
");
*/
var file_value = "";
var file_type = document.getElementsByName("file_type");
for (var i = 0; i < file_type.length; i++) {
if (file_type[i].checked) {
file_value = file_type[i].value;
break;
}
};
var file_other = document.getElementById("file_other");
file_other_text = document.getElementById("file_other_text");
if (file_value == 'other') {
if (file_other_text.value.length == 0) {
alert("扩展名不能为空!");
inputUrl.focus();
return false;
}
var songurl = hostname+fileid+ "."+file_other_text.value;
document.getElementById("text2").value = songurl;
} else {
var songurl = hostname+fileid+"." + file_value;
document.getElementById("text2").value = songurl;
}
}
function fileOtherTextChange() {
if (file_other.checked == true) {
file_other_text.disabled = false;
file_other_text.focus();
} else {
file_other_text.disabled = true;
}
}
百度网盘文件永久外链
分享地址:
外链地址:
文件的扩展名:
mp3
png
exe
zip
mp4
其他格式