<td width="5%"><a href="../images/catalog/<%=(Recordset1.Fields.Item("SPC").Value)%>.jpg" onclick="newWindow(this.href, 'popup', 325, 300, 1, 1, 0, 0, 0, 1, 0); return false;" target="_blank">Image</a></td>
<td width="5%"><div align="center"><a target="_blank" href="../../pages/PDF/<%=(Recordset1.Fields.Item("CatPage").Value)%>_806.pdf"> <%=(Recordset1.Fields.Item("CatPage").Value)%></a></div></td>
<script type="text/javascript">
var Image = <%=(Recordset1.Fields.Item("SPC").Value)%>
if <%=(Recordset1.Fields.Item("SPC").Value)%> = "803867" {
<td width="5%"><a href= "javascript:Image">Image</a></td>;
}
Else {
<td width="5%"></td>;
}
</script>
</tr>
The first line is the page of the catalog that the item is on, then I tried to create a script before the SPC. Here I was just doing some testing with a definite value, which didn't work.
Do you have a little more insight on what you were thinking?
Thanks.
This topic is archived.