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

关于<marquee>的问题
想实现多张图片滚动的功能.
现在写了个相似的例子
<table>
<marquee   direction= "down ">
<tr>
<td> Helloworld </td>
<td> yesworld </td>
<tr>
</marquee>
</table>
但是实现不了
求救,,,很急

------解决方案--------------------
<marquee direction= "down ">
<table>
<tr>
<td> Helloworld </td>
<td> yesworld </td>
<tr>
</table>
</marquee>

这个标记ff应该不认,用js的可能好点儿
------解决方案--------------------
<marquee> 放在 <table> 外围即可
------解决方案--------------------
<script language= "javascript ">
//more javascript from http://www.smallrain.net
var images=Array();
images.push( "http://www.smallrain.net/jsimg/1.jpg ");
images.push( "# ");

images.push( "http://www.smallrain.net/jsimg/2.jpg ");
images.push( "# ");

images.push( "http://www.smallrain.net/jsimg/3.jpg ");
images.push( "# ");

images.push( "http://www.smallrain.net/jsimg/4.jpg ");
images.push( "# ");

images.push( "http://www.smallrain.net/jsimg/5.jpg ");
images.push( "# ");

images.push( "http://www.smallrain.net/jsimg/6.jpg ");
images.push( "# ");

images.push( "http://www.smallrain.net/jsimg/7.jpg ");
images.push( "# ");

images.push( "http://www.smallrain.net/jsimg/8.jpg ");
images.push( "# ");
//Specify the slider 's width (in pixels)
var sliderwidth=695
//Specify the slider 's height
var sliderheight=82
//Specify the slider 's slide speed (larger is faster 1-10)
var slidespeed=1
//configure background color:
slidebgcolor= "#fff "
//Specify the slider 's images
var leftrightslide=new Array()
var finalslide= ' '
leftrightslide[0]= ' <table border= "0 " cellspacing= "13 " cellpadding= "0 " width= "695px " style= "margin-top:-10px "> '+
' <tr align= "center "> ';
var size=images.length/2;
for(var i=0;i <size;i++)
leftrightslide[0]+= " <td width= '80 ' height= '62 '> <div onclick=\ "window.open( ' "+images[i*2+1]+ " ');\ " style=\ "cursor:pointer;width:72px;height:62px;background:url( "+images[i*2]+ ") no-repeat;\ "> <img src=\ "/jsimg/2006_12_19/2006121915522247333.gif\ " width=\ "72\ " height=\ "62\ " border=\ "0\ " /> </div> </td> ";
leftrightslide[0]+= ' </tr> </table> ';
////NO NEED TO EDIT BELOW THIS LINE////////////
var copyspeed=slidespeed
leftrightslide= ' <nobr> '+leftrightslide.join( " ")+ ' </nobr> '
var iedom=document.all||document.getElementById
if (iedom)
document.write( ' <span id= "temp " style= "visibility:hidden;position:absolute;top:0;left:0 "> '+leftrightslide+ ' </span> ')
var actualwidth= ' '
var cross_slide, ns_slide

function fillup(){
if (iedom){
cross_slide=document.getElementById? document.getElementById( "test2 ") : document.all.test2
cross_slide2=document.getElementById?