>Larry
>Tom
>
>the image is a thumbnail linking to a big pic. If there isn't a big pic I want to display the message instead of the thumbnail and not generate a hyperlink.
>
>Thanks
>
>Nick Mason
Nick,
If you have control of your environment, then I would recommend using the FileSystemObject of the Windows Scripting Host to determine if the file exists. If it doesn't then use the Response.Write() method to sen the appropriate text to the user and not create the hyperlink.
< % Dim fso, msg
Set fso = CreateObject("Scripting.FileSystemObject")
If (fso.FileExists("Path\MyBigPicture.gif")) Then
Response.Write(My HTML to create anchor and img tags)
Else
Response.Write(Write appropriate text messge here)
End If % >
As with an HTML tags here, leave out the spaces.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao