Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Message or image
Message
 
 
À
23/12/2000 01:52:29
Information générale
Forum:
Internet
Catégorie:
Active Server Page
Divers
Thread ID:
00456195
Message ID:
00456645
Vues:
32
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform