Click to See Complete Forum and Search --> : insert an image into script


webdesign
04-20-2004, 02:33 PM
I cannot get this to work for me!! In the code below, where it says "Go Paperless" I have an image that I want to put there. How do I do that???


if ("<WC@PaperBill></WC@PaperBill>" == "Y")
{
document.write("<input type='checkbox' name=NoPaper value=NoPaper> <font color=#ff0000 size=4> Go Paperless </font>- I no longer wish to receive a bill through the mail<br>")
}
else
{
document.write("Currently you are not receiving paper bill.<br>To resume paper billing, please contact ....</b><br>")
}

steelersfan88
04-20-2004, 03:12 PM
<img src='img_src' ...> you'll have to use single quotes, or use \" (escaped quote) :)

webdesign
04-20-2004, 04:17 PM
It's amazing what can happen when you use the right quotes, eh? =) Thanks bunches!!

steelersfan88
04-20-2004, 04:21 PM
speaking of that, don't use MS word for editing, since they use smart quotes, which browsers do not parse as with normal quotes :)