一个js+flash的图片切换,图片显示不全,求高手帮看下 20
<html><head><metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/><title>...
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>图片特效源码下载:http://www.codefans.net</title>
</head>
<body>
<div align="center">
<DIV id=focus></DIV>
<script language="JavaScript" type="text/javascript" src="js/swfobject.js"></script>
<SCRIPT type=text/javascript>
var pics = "";
var links = "";
var texts = "";
pics += "images/01.jpg";
links += "http://www.codefans.net/";
texts += "图片切换特效测试1";
pics += "|";
links += "|";
texts += "|";
pics += "images/02.jpg";
links += "http://www.codefans.net/";
texts += "图片切换特效测试2";
pics += "|";
links += "|";
texts += "|";
pics += "images/03.jpg";
links += "http://www.codefans.net/";
texts += "图片切换特效测试3";
pics += "|";
links += "|";
texts += "|";
pics += "images/04.jpg";
links += "http://www.codefans.net/";
texts += "图片切换特效测试4";
pics += "|";
links += "|";
texts += "|";
pics += "images/05.jpg";
links += "http://www.codefans.net/";
texts += "图片切换特效测试5";
var so = new SWFObject("flash/img.swf", "focus", "550", "400", "7", "#ffffff");
so.addParam('wmode','transparent');
so.addVariable("picurl",pics);
so.addVariable("pictext",texts);
so.addVariable("piclink",links);
so.addVariable("pictime","5");
so.addVariable("borderwidth","550");
so.addVariable("borderheight","400");
so.addVariable("borderw","true");
so.addVariable("buttondisplay","true");
so.addVariable("textheight","1");
so.write("focus");
</SCRIPT>
</div>
</body>
</html>
还需要改哪里吗,这里还有个单独的js文件,和flash文件 展开
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>图片特效源码下载:http://www.codefans.net</title>
</head>
<body>
<div align="center">
<DIV id=focus></DIV>
<script language="JavaScript" type="text/javascript" src="js/swfobject.js"></script>
<SCRIPT type=text/javascript>
var pics = "";
var links = "";
var texts = "";
pics += "images/01.jpg";
links += "http://www.codefans.net/";
texts += "图片切换特效测试1";
pics += "|";
links += "|";
texts += "|";
pics += "images/02.jpg";
links += "http://www.codefans.net/";
texts += "图片切换特效测试2";
pics += "|";
links += "|";
texts += "|";
pics += "images/03.jpg";
links += "http://www.codefans.net/";
texts += "图片切换特效测试3";
pics += "|";
links += "|";
texts += "|";
pics += "images/04.jpg";
links += "http://www.codefans.net/";
texts += "图片切换特效测试4";
pics += "|";
links += "|";
texts += "|";
pics += "images/05.jpg";
links += "http://www.codefans.net/";
texts += "图片切换特效测试5";
var so = new SWFObject("flash/img.swf", "focus", "550", "400", "7", "#ffffff");
so.addParam('wmode','transparent');
so.addVariable("picurl",pics);
so.addVariable("pictext",texts);
so.addVariable("piclink",links);
so.addVariable("pictime","5");
so.addVariable("borderwidth","550");
so.addVariable("borderheight","400");
so.addVariable("borderw","true");
so.addVariable("buttondisplay","true");
so.addVariable("textheight","1");
so.write("focus");
</SCRIPT>
</div>
</body>
</html>
还需要改哪里吗,这里还有个单独的js文件,和flash文件 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询