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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Cell Color, Blink based on If then condition 1

Status
Not open for further replies.

puterdude

Technical User
Apr 13, 2001
51
0
0
US
Hi,

Working with
if afield = "1" then
response.write(&quot;<FONT = 'RED'>Hello</Font>&quot;)
end if

This works to change the font to red if afield = &quot;1&quot;

Is there a way to change the cell background color as easily?
I tried bold <b> </b> and that worked too, but I couldn't get <blink> </blink> to work. Is there a trick to blink?
 
<blink> does not work in IE -- dunno if you knew that --

Should work just fine in nutscrape:

if afield = &quot;1&quot; then
response.write(&quot;<FONT = 'RED'><blink>Hello</blink></Font>&quot;)
end if

to change the bgcolor of a cell, just do this when you write your <td>:

<td
<%
if afield = &quot;1&quot; then
response.write(&quot; bgcolor=blue&quot;)
end if
%>
>

:)
Paul Prewett
penny.gif
penny.gif
 
Paul,

Thanks. I can get the font to change colors. I can't get it to blink (in IE).
I also cant get the background to change color.
It comes out in text code on my form, rather than asp.
I did put it in brackets <% %> but still, it's weird.

I'll keep messing with it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top