var imgPath = <%=objRS("path")%>;
var imgAlt = <%=objRS("alt")%>;
and that comes out fine. but the second thing i want to do is to adjust the image size based on window size, so i have a pre-written width detector thing. so THEN I do this:
var imgPath = <%=objRS("path")%>;
var imgAlt = <%=objRS("alt")%>;
if (Width <= 1000) {
document.write("<img src='/images/level1/" + imgPath + "' vspace='20' alt='" + imgAlt + "' width='760'>");
}
else {
document.write("<img src='/images/level1/" + imgPath + "' vspace='20' alt='" + imgAlt + "' width='975'>");
}
but no image shows. what am i doing wrong?
the image path and alt are coming through correctly, but the image tag isn't working.
:)

New Topic/Question
Reply


MultiQuote



|