Document.write newbie question

Hello,
Don’t know javascript too well and can’t figure what should be a simple thing. I’ve included little javascript code to display a scrolling news item list which works great, but just trying to modify slightly. For the following code, simply want to have “What’s New?” written on screen and have the scrolling news appear on the SAME line after it.

document.write ('<ilayer id=tickernsmain visibility=hide width='+scroller_width+' height='+scroller_height+' bgColor='+bgcolor+'><layer id=tickernssub width='+scroller_width+' height='+scroller_height+' left=0 top=0>'+scrollercontent[0]+'</layer></ilayer>')
}

So, thought could put something like document.write (“What’s New?”, '<ilayer…), but that doesn’t seem to work.

Tried using something like:

whatsnew=“What’s New?”

and then writing document.write (whatsnew, '<ilayer id=…) but can’t get that to work either.

What am I doing wrong?
Thanks!

I had to lookup what ilayer is, and vaguely remembered there was such thing from a long time ago. First of all, it’s not standards at all, and it seems like it’s proprietary technology by a now-obsolete browser: netscape. (Not entirely sure about its proprietarity, correct me if im wrong)

I think what you need to do is not a javascript problem, but rather a css issue. ilayer is supposed to be helping bringing content to an inline level. However, this is not the function of html, as html is only supposed to concern with content, not styling. What you can do is, get rid of both ilayer and layer, use a div is enclose your scrolling block. Assign an id to it, and assign the following style to it:


display: inline;