PDA

View Full Version : help with syntax


gcapp
04-22-2004, 05:02 PM
Can someone help me with this syntax??

I am trying to have a thumbnail photo initially show ont he page and then if someone clicks on it, it open a separate window with a bigger photo.

I have this line of code:
<%
response.write("<td width='100' height='67'><a href=""javascript:new_window('http://www.enchantedmountains.info/images/culture-page/large-photos/" & rsmtext("Picture1") & ".jpg" & "')""><img src='"../images/culture-page/small-photos/" & rsmtext("Picture1_Small") & ".jpg" & "'></td>")
%>

However, I keep getting an error that states Expected Identifier at the point where the text is in bold.

Can someone show me what's wrong with this??
Gary

A1ien51
04-22-2004, 06:42 PM
You have an extra " after the img

should be

response.write("<td width='100' height='67'><a href=""javascript:new_window('http://www.enchantedmountains.info/images/culture-page/large-photos/" & rsmtext("Picture1") & ".jpg" & "')""><img src='../images/culture-page/small-photos/" & rsmtext("Picture1_Small") & ".jpg" & "'></td>")
%>


Eric