This is the line in Javascript which works well
document.write('<DIV id="barbackground" style="width:\'+screen.availWidth+\'px;height:\'+10+\'px"></div><div id="bar" style="width:\'+screen.availWidth+\'px;height:\'+10+\'px"></div></div>');
and this is the line in PHP which is parsed correctly, I think, but I get an Javascript Error:eek:...:
echo '<DIV id="barbackground" style="width:\'+screen.availWidth+\'px;height:\'+10+\'px"></div><div id="bar" style="width:\'+screen.availWidth+\'px;height:\'+10+\'px"></div></div>';
The whole problem is about using >"< more than one time in Javascript and PHP