Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can anyone help

Status
Not open for further replies.

Hendy

Programmer
Oct 3, 2000
20
GB
I want to have a border around the images, differient depending on the yes/no back from the field. Can you help?

Thanks

<%if objStaff(&quot;LoggedIn&quot;)then
<font color=&quot;#FF0000&quot;><img border=&quot;3&quot; src=&quot;file://epsom/depts/global/databases/staff/photos/objStaff(&quot;Login_ID&quot;).jpg&quot; width=&quot;161&quot; height=&quot;200&quot; align=&quot;right&quot;>
else
<font color=&quot;#00FF00&quot;><img border=&quot;3&quot; src=&quot;file://epsom/depts/global/databases/staff/photos/objStaff(&quot;Login_ID&quot;).jpg&quot; width=&quot;161&quot; height=&quot;200&quot; align=&quot;right&quot;>
end if%>
 
You need to close and open the script tags depending on whether you are using VBScript or not. Try this...

<%if objStaff(&quot;LoggedIn&quot;)then %>
<font color=&quot;#FF0000&quot;><img border=&quot;3&quot; src=&quot;file://epsom/depts/global/databases/staff/photos/objStaff<%=(&quot;Login_ID&quot;)%>.jpg&quot; width=&quot;161&quot; height=&quot;200&quot; align=&quot;right&quot;>
<%else%>
<font color=&quot;#00FF00&quot;><img border=&quot;3&quot; src=&quot;file://epsom/depts/global/databases/staff/photos/objStaff<%=(&quot;Login_ID&quot;)%>.jpg&quot; width=&quot;161&quot; height=&quot;200&quot; align=&quot;right&quot;>
<% end if%>

Hope this helps you

G
-GTM Solutions, Home of USITE-
-=
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top