<img src=39214.jpg border=0 onload=reSize(this,610,1000)>
<script language="javascript">
function resizePic(obj)
{
var picWidth = obj.width;
var screenWidth = screen.width;
if(screenWidth>800)
{
if(picWidth > 700)
{
obj.width = 650;
}
}
else
{
if(picWidth > screenWidth)
{
obj.width = screenWidth - 100;
}
}
}
function reSize(myImg, maxWidth, maxHeight)
{
var iniPicWidth = myImg.width;
var iniPicHeight = myImg.height;
var iniRate = iniPicHeight/iniPicWidth;
if(iniPicWidth>maxWidth || iniPicHeight>maxHeight){
var newW = maxWidth;
var newH = Math.floor(newW*iniRate);
if (newH>maxHeight)
{
var newH = maxHeight;
var newW = Math.floor(newH/iniRate);
}
myImg.width = newW;
myImg.height = newH;
}
}
</script>
http://ent.omeweb.com/book/content.aspx?id=985
<script language="javascript">
function resizePic(obj)
{
var picWidth = obj.width;
var screenWidth = screen.width;
if(screenWidth>800)
{
if(picWidth > 700)
{
obj.width = 650;
}
}
else
{
if(picWidth > screenWidth)
{
obj.width = screenWidth - 100;
}
}
}
function reSize(myImg, maxWidth, maxHeight)
{
var iniPicWidth = myImg.width;
var iniPicHeight = myImg.height;
var iniRate = iniPicHeight/iniPicWidth;
if(iniPicWidth>maxWidth || iniPicHeight>maxHeight){
var newW = maxWidth;
var newH = Math.floor(newW*iniRate);
if (newH>maxHeight)
{
var newH = maxHeight;
var newW = Math.floor(newH/iniRate);
}
myImg.width = newW;
myImg.height = newH;
}
}
</script>
http://ent.omeweb.com/book/content.aspx?id=985
浙公网安备 33010602011771号