[Javascript] CSS in JS function - where is the error?
Hassan Schroeder
hassan at webtuitive.com
Tue Jan 28 12:36:14 CST 2003
Andrzej Wroblewski wrote:
> Look at this function and tell me what is wrong:
> document.write('<div style="position:absolute; left:"+banerleft+";">');
Mismatched single and double quotes - you want the variable outside
the single quotes of your document write string, like so:
document.write('<div style="position:absolute; left:'+banerleft+';">');
HTH!
--
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
dream. code.
More information about the Javascript
mailing list