﻿document.writeln("<style type='text/css'>body{margin:auto;font-family:arial;font-size:1em;text-align:center;margin:1em;line-height:1.3em}h1,h2{margin-top:2em;text-align:center;color:#f00}h1{font-size:1.25em}h2{font-size:1em}form{margin:0em}img{border:0em}div{margin:auto}a:link,a:visited{color:#000;text-decoration:none;padding:4px}a:hover{color:#ff0000;font-weight:bold}.input{cursor:pointer;border:#ff0000 1px solid;color:#ff0000;width:18em;padding:4px;font-weight:bold}span{color:red}.l{text-align:left}.t{margin:auto;border:0px;margin-bottom:12px;width:48em;text-align:center}td{vertical-align:top;text-align:center;}.head{border-top:2px solid #f4bf20;background-color:#F9F9F9;padding:10px 2px 10px 2px;letter-spacing:1px}.content{border:1px solid;border-color:#f4bf20;background-color:#ffeeee;padding:16px 2px 16px 2px}.foot{border-top:1px solid #f4bf20;background-color:#F9F9F9;padding:2px 2px 20px 2px;letter-spacing:2px}.c1 td{border:1px solid #ffdeef}.c2{border:1px solid #808080;cursor:pointer;width:13px;height:14px}</style>")
document.writeln("<iframe name='upfrm' style='display:none' src='about:blank' width='0' height='0'></iframe>")
var xmlHttp=false;var c0;try{xmlHttp=new XMLHttpRequest()}catch(trymicrosoft){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(othermicrosoft){try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(failed){xmlHttp=false}}}if(!xmlHttp){alert("启用Ajax功能失败，您可能无法使用本站的部分功能！手机用户请访问 zly.mobi")}
function zhenbi(url){if (document.all.id.value==""){alert("额，总得上传一张图片，或者说些什么吧？^.^ 急切网！");return false}document.getElementById('up').disabled=true;var MyWebSend="id="+encodeURIComponent(document.all.id.value)+"&id1="+encodeURIComponent(document.all.id1.value)+"&id2="+encodeURIComponent(document.all.id2.value)+"&id3="+encodeURIComponent(document.all.id3.value)+"&id4="+encodeURIComponent(document.all.id4.value)+"&id5="+encodeURIComponent(document.all.id5.value);if (document.all.id6.value=="jiqie"){MyWebSend=MyWebSend+"&id7="+encodeURIComponent(document.all.id7.value)+"&id8="+encodeURIComponent(document.all.id8.value)+"&id9="+encodeURIComponent(document.all.id9.value)+"&id10="+encodeURIComponent(document.all.id10.value)+"&id11="+encodeURIComponent(document.all.id11.value)+"&id12="+encodeURIComponent(document.all.id12.value)}else{MyWebSend=MyWebSend+"&id6="+encodeURIComponent(document.all.id6.value)}xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");xmlHttp.onreadystatechange=zhenbi_com;xmlHttp.send(MyWebSend);document.getElementById("show").innerHTML="<img src=/im/loading.gif>很努力地加载中..."}
function zhenbi_com(){if(xmlHttp.readyState==4){setTimeout(function(){document.getElementById('up').disabled=false},5000);document.getElementById("show").innerHTML="&nbsp;";if(xmlHttp.status==200){document.getElementById("show").innerHTML="⒈右击图片⒉ 图片另存为(S)<br>"+xmlHttp.responseText}else{document.getElementById("show").innerHTML="<img src=/im/loading.gif>网络错误或者服务器繁忙,请访问www.jiqie.com更换其他服务器!<br>"}}}
function l0(){var jiqie=document.all.upfile.value.split('.')[document.all.upfile.value.split('.').length-1].toLowerCase();if(jiqie!='jpg'&&jiqie!='jpeg'&&jiqie!='png'&&jiqie!='gif'){alert('请确认您上传的是否是图片哦! \n 只能使用gif、jpg、png格式的图片呀!^_^');return false}document.upfor.submit();document.all.upfor.style.display='none';document.all.upinfo.innerHTML="<img src=/im/loading.gif>上传中…"}
function l1(msg){document.all.id.value=msg;document.all.upinfo.innerHTML="<font color='red'>恭喜您，成功上传图片！</font><br>说明：制作间隔5秒，20秒后可以[重新上传]";setTimeout(function(){document.getElementById("upinfo").innerHTML="<font color='red'>恭喜您，成功上传图片！</font><br><a style='cursor:pointer' onclick='window.external.AddFavorite(location.href,document.title);'>[加入收藏]</a><a style='cursor:pointer'onclick='l2();'>[重新上传]</a>"},20000)}
function l2(msg){if(msg)alert(msg);document.all.upinfo.innerHTML="";document.all.upfor.style.display=''}
function d1(color){c0.style.backgroundColor=c0.value;}
function d2(color){c0.style.backgroundColor=color;}
function d3(color){c0.value=color;c0.style.backgroundColor=color;c0.style.borderColor="#FFF";document.getElementById("col").innerHTML=""}
function pic(c1){document.getElementById("col").innerHTML="<img src='../im/fon/"+c1+".gif' alt='字体'/>"}
function col(c1){c0=c1;var c2="<table border='0' cellspacing='0' cellpadding='0' class='c1'>";var c3=new Array("00","22","55","78","aa","dd","ff");var j=0;for(var g=6;g>=0;g--){for(var r=6;r>=0;r--)for(var b=6;b>=0;b--){c4="#"+c3[r]+c3[g]+c3[b];c2+="<td onmouseout=\"parent.d1('"+c4+"')\" onmouseover=\"parent.d2('"+c4+"')\" onmousedown=\"parent.d3('"+c4+"')\"><table class='c2' bgcolor='"+c4+"'><tr><td></td></tr></table></td>";j++;if(j%49==0 && j>1){c2+="<tr></tr>"} }}c2+="</table>";document.getElementById("col").innerHTML=c2}