Guest_imported
New member
- Jan 1, 1970
- 0
Hello,
I'm currently using a marquee tag to scroll some text in my window. But I want to add some pictures in my marquee to illustrate the text but the whole html code has to be on a line and here I want to have some text below the picture and not beside it. So I want to make a table and then put in the cell my picture and my text but I have a problem!
I have an error: "Unterminated string constant" when I write finalslide = '<table><tr>' which is necessary to have my table. How can I solve this problem? Help please
Here is my Html code:
var leftrightslide=new Array()
var finalslide=''
leftrightslide[0]='<td><a href=" height="82" width="100" src="../xml/tj1/10195.jpg" border='1'/></a>blabla</td>'
leftrightslide[1]='<td><a href=" height="82" width="100" src="../xml/tj1/10889.jpg" border='1'/></a>blabla</td>'
leftrightslide[2]='<td><a href=" height="82" width="100" src="../xml/tj1/11251.jpg" border='1'/></a>blabla</td>'
finalslide = '<table><tr>'
for (var i=0 ; leftrightslide.length>i ; i++)
finalslide = finalslide+leftrightslide+"&#160;&#160;"
finalslide = finalslide + '</tr></table>'
document.write('<marquee id="ieslider" class="scrollcell" scrollAmount='0' style="width:'+sliderwidth+'">'+finalslide+'</marquee>')
I'm currently using a marquee tag to scroll some text in my window. But I want to add some pictures in my marquee to illustrate the text but the whole html code has to be on a line and here I want to have some text below the picture and not beside it. So I want to make a table and then put in the cell my picture and my text but I have a problem!
I have an error: "Unterminated string constant" when I write finalslide = '<table><tr>' which is necessary to have my table. How can I solve this problem? Help please
Here is my Html code:
var leftrightslide=new Array()
var finalslide=''
leftrightslide[0]='<td><a href=" height="82" width="100" src="../xml/tj1/10195.jpg" border='1'/></a>blabla</td>'
leftrightslide[1]='<td><a href=" height="82" width="100" src="../xml/tj1/10889.jpg" border='1'/></a>blabla</td>'
leftrightslide[2]='<td><a href=" height="82" width="100" src="../xml/tj1/11251.jpg" border='1'/></a>blabla</td>'
finalslide = '<table><tr>'
for (var i=0 ; leftrightslide.length>i ; i++)
finalslide = finalslide+leftrightslide+"&#160;&#160;"
finalslide = finalslide + '</tr></table>'
document.write('<marquee id="ieslider" class="scrollcell" scrollAmount='0' style="width:'+sliderwidth+'">'+finalslide+'</marquee>')