日期:2014-05-17  浏览次数:21303 次

flash轮播图片,字为空怎么写?
<script type="text/javascript">
var speed = 4000;
var pics='image/01.jpg|image/02.jpg|image/03.jpg|image/04.jpg';
var mylinks='fayy.asp|fayy.asp|fayy.asp|fayy.asp';
var texts='';
var sohuFlash2 = new sohuFlash("focus0414a.swf","flashcontent01","275","203","8","#ffffff");



sohuFlash2.addParam("quality", "medium");

sohuFlash2.addParam("wmode", "opaque"); sohuFlash2.addVariable("speed",speed);
sohuFlash2.addVariable("p",pics);
sohuFlash2.addVariable("l",mylinks);
sohuFlash2.addVariable("icon",texts);
sohuFlash2.write("flashcontent01");
</script>
以上是代码,现在var texts='';这里如果为空的话,前台会显示“undefined”
不想让它出现 这个字母,应该怎么写?

------解决方案--------------------
var texts='|||';