Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Message or image
Message
 
 
To
23/12/2000 01:52:29
General information
Forum:
Internet
Category:
Active Server Page
Miscellaneous
Thread ID:
00456195
Message ID:
00456645
Views:
26
>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.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform