Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

writeln using a variable... 1

Status
Not open for further replies.

KevinFSI

Programmer
Nov 17, 2000
582
US
Is it possible to write this line using a variable?

Code:
d.writeln('{ background: #ddf0ff;}');

where "#ddf0ff" is some var?

Something like
Code:
var myColor = "#ffffff";
d.writeln('{ background: myColor;}');
Kevin
slanek@ssd.fsi.com
 
hie, its simple:
var myColor = "#ffffff";
d.writeln('{ background: '+myColor+';}');


regards, vic
 
Those damn plus signs!

Thanks Vic, you've bailed me out a few times now. Kevin
slanek@ssd.fsi.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top