如何在一个JSP页面中优先显示图片,也就是说如何在进入网页时先下载图片 太BT了,网页是按照html的内容从前往后下载的。图片和文字相互夹杂,怎么处理先后呀。我觉得很难实现。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以先载入啊<SCRIPT LANGUAGE="JavaScript"><!--lastClick=0;lastButton=document.Button0;ButtonA=new Array();ButtonB=new Array();ButtonC=new Array();ButtonA[0]=new Image(); ButtonA[0].src="../../../image/topic-js/js02/btn0a.gif";ButtonB[0]=new Image(); ButtonB[0].src="../../../image/topic-js/js02/btn0b.gif";ButtonC[0]=new Image(); ButtonC[0].src="../../../image/topic-js/js02/btn0c.gif";ButtonA[1]=new Image(); ButtonA[1].src="../../../image/topic-js/js02/btn1a.gif";ButtonB[1]=new Image(); ButtonB[1].src="../../../image/topic-js/js02/btn1b.gif";ButtonC[1]=new Image(); ButtonC[1].src="../../../image/topic-js/js02/btn1c.gif";ButtonA[2]=new Image(); ButtonA[2].src="../../../image/topic-js/js02/btn2a.gif";ButtonB[2]=new Image(); ButtonB[2].src="../../../image/topic-js/js02/btn2b.gif";ButtonC[2]=new Image(); ButtonC[2].src="../../../image/topic-js/js02/btn2c.gif";function fOver(No, Button, msg) { if (lastClick != No) { Button.src=ButtonB[No].src; } window.status=msg;}function fOut(No, Button) { if (lastClick != No) { Button.src=ButtonA[No].src; } window.status="";}function fClick(No, Button) { lastButton.src=ButtonA[lastClick].src; lastClick=No; lastButton=Button; Button.src=ButtonC[No].src;}//--></SCRIPT> 多谢您的回复,我现在只有一幅图片,能不能提供完整的html代码,我看看用什么机制能够实现图片没有下载下来时程序不会运行 怎么样把这副图片显示出来:<html><body><img src="wait.jpg"><%String xy="1";while(true) xy="2";%></body></html> <html><body><img src="wait.jpg"><%String xy="1";while(true) xy="2";%></body></html>就是把这副图片显示出来 document.createElement("input")如何定义日期格式? 关于XML解析的问题,请教高手 关于Struts 2问题 相片上传问题 中文乱码处理办法(新手来) 问一个关于网页抓取的问题:如果目标网站用的是javascript进行翻页,url中也没有关于页的参数怎么实现抓取阿??? jsp传值后取出为null的问题 java:comp/env/jdbc/aaa java表达式 高德地图jsp计算两坐标间的直线距离 初学者求助? if语句运行和想想不一样,可怜可怜我吧!!!!!!!!!!!!!! 关于JavaBean的属性编辑器的简单问题
<!--
lastClick=0;
lastButton=document.Button0;
ButtonA=new Array();
ButtonB=new Array();
ButtonC=new Array();
ButtonA[0]=new Image(); ButtonA[0].src="../../../image/topic-js/js02/btn0a.gif";
ButtonB[0]=new Image(); ButtonB[0].src="../../../image/topic-js/js02/btn0b.gif";
ButtonC[0]=new Image(); ButtonC[0].src="../../../image/topic-js/js02/btn0c.gif";
ButtonA[1]=new Image(); ButtonA[1].src="../../../image/topic-js/js02/btn1a.gif";
ButtonB[1]=new Image(); ButtonB[1].src="../../../image/topic-js/js02/btn1b.gif";
ButtonC[1]=new Image(); ButtonC[1].src="../../../image/topic-js/js02/btn1c.gif";
ButtonA[2]=new Image(); ButtonA[2].src="../../../image/topic-js/js02/btn2a.gif";
ButtonB[2]=new Image(); ButtonB[2].src="../../../image/topic-js/js02/btn2b.gif";
ButtonC[2]=new Image(); ButtonC[2].src="../../../image/topic-js/js02/btn2c.gif";function fOver(No, Button, msg) {
if (lastClick != No) {
Button.src=ButtonB[No].src;
}
window.status=msg;
}function fOut(No, Button) {
if (lastClick != No) {
Button.src=ButtonA[No].src;
}
window.status="";
}function fClick(No, Button) {
lastButton.src=ButtonA[lastClick].src;
lastClick=No;
lastButton=Button;
Button.src=ButtonC[No].src;
}
//-->
</SCRIPT>
<html>
<body>
<img src="wait.jpg">
<%
String xy="1";
while(true)
xy="2";
%>
</body>
</html>
<body>
<img src="wait.jpg">
<%
String xy="1";
while(true)
xy="2";
%>
</body>
</html>
就是把这副图片显示出来