|
Which one says to use thumbnails to browse, if I use it myself, I don’t need to browse at all, will the client bother you?
Some people leave comments indiscriminately without even reading the question, and sympathize with the host
I also encountered the same problem as the original poster
//upload image
function UpImgInHtm()
{
if(document.getElementById("img1").fileSize==-1)
{
alert("The file type is incorrect, please select the correct image file to upload!");
cHead=0;
return false;
}
var s=document.getElementById("img1").fileSize/1024;
if(s>300)
{
alert("The image size exceeds 300K! Please re-select to upload");
cHead=0;
return false;
}
var str=document.getElementById("fu1").value;
var obj=document.getElementById("LitImg");
obj.src=str
cHead=1;
return false;
}
No problem in ie6, life and death in ie7, there are other problems...
Thank youwh8938, I will try your method, support the original poster, and despise the blaster |
|