日期:2014-05-16  浏览次数:20383 次

请教!为何我的图片轮播代码在图片下方显示不了文字?
<SCRIPT   language= "javascript "   type=text/javascript>
var   imgWidth=365;                             //图片宽
var   imgHeight=120;                           //图片高
var   textFromHeight=0;                   //焦点字框高度   (单位为px)
var   textStyle= "f12 ";                       //焦点字class   style   (不是连接class)
var   textLinkStyle= "p1 ";   //焦点字连接class   style
var   buttonLineOn= "#f60 ";                       //button下划线on的颜色
var   buttonLineOff= "#000 ";                     //button下划线off的颜色
var   TimeOut=5000;                             //每张图切换时间   (单位毫秒);
var   imgUrl=new   Array();  
var   imgLink=new   Array();
var   imgtext=new   Array();
var   imgAlt=new   Array();
var   adNum=0;

//焦点字框高度样式表   开始
document.write( ' <style   type= "text/css "> ');
document.write( '#focuseFrom{width: '+(imgWidth+2)+ ';margin:   0px;   padding:0px;height: '+(imgHeight+textFromHeight)+ 'px;   overflow:hidden;} ');
document.write( '#txtFrom{height: '+textFromHeight+ 'px;line-height: '+textFromHeight+ 'px;width: '+imgWidth+ 'px;overflow:hidden;} ');
document.write( '#imgTitle{width: '+imgWidth+ ';top:- '+(textFromHeight+16)+ 'px;height:18px} ');
document.write( ' </style> ');
document.write( ' <div   id= "focuseFrom "> ');
//焦点字框高度样式表   结束


 
 
imgUrl[1]= ' <a   href= "http://www.pconline.com.cn/test/toptitle/images/picpath/3651012bikanfoc.jpg "   target= "_blank "> http://www.pconline.com.cn/test/toptitle/images/picpath/3651012bikanfoc.jpg </a> ';
imgtext[1]= ' <A   HREF= " <a   href= "http://www.pconline.com.cn/digital/audio/daogou/mp3/time/0610/882310.html "   target= "_blank "> http://www.pconline.com.cn/digital/audio/daogou/mp3/time/0610/882310.html </a>   "   TARGET= "_blank "   class= " '+textLinkStyle+ ' "> 随身听 </A> ';
imgLink[1]= ' <a   href= "http://www.pconline.com.cn/digital/audio/daogou/mp3/time/0610/882310.html "   target= "_blank "> http://www.pconline.com.cn/digital/audio/daogou/mp3/time/0610/882310.html </a>   ';
imgAlt[1]= '随身听 ';


imgUrl[2]= ' <a   href= "http://www.pconline.com.cn/test/toptitle/images/picpath/3651012bikanfoc.jpg "   target= "_blank "> http://www.pconline.com.cn/test/toptitle/images/picpath/3651012bikanfoc.jpg </a> ';
imgtext[2]= ' <A   HREF= " <a   href= "http://www.pconline.com.cn/digital/audio/daogou/mp3/time/0610/882310.html "   target= "_blank "> http://www.pconline.com.cn/digital/audio/daogou/mp3/time/0610/882310.html </a>   "   TARGET= "_blank "   class= " '+textLinkStyle+ ' "> 报价 </A> &#