155、按分辨率显示图片

155、按分辨率显示图片

脚本说明:

把如下代码加入<body>区域中:

<SCRIPT LANGUAGE="JavaScript1.2">

 

<!-- Begin

if (screen.height >= 768 && screen.width >= 1024) {

document.write("<img src='line073.gif' width=700 border=0>");

}

else {

if (screen.height == 600 && screen.width == 800) {

document.write("<img src='line073.gif' width=400 border=0>");

}

else {

document.write("<img src='line073.gif' width=300 border=0>");

   }

}

//  End -->

</script>

 

 

Write a comment

Comments: 0