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

CSS guru required!

Status
Not open for further replies.

LaPluma

Programmer
Feb 3, 2002
139
DE
Hello

I have some ASP code which tells the user how many times he has visited the Web page as in: "You have visited this page 5 times".

I would like this message to appear in yellow (must be: FFFF00) bold verdana, but I am not sure where to include it in VBScript.

Suggestions would be appreciated.

This is the code:

<%
response.cookies(&quot;NumVisits&quot;).Expires = date + 365
num=request.cookies(&quot;NumVisits&quot;)

If num = &quot;&quot; Then
response.cookies(&quot;NumVisits&quot;) = 1
Else
response.cookies(&quot;NumVisits&quot;) = num + 1
End If
%>

<html>
<body>
<%
if num=&quot;&quot; then
%>
<b><font size=1 color=FFFF00 face=tahoma>Welcome to CMC Investigations! This is the first time you have visited our Web site</font></b>
<%
else
%>

You have visited this Web page <%response.write(num)
if num=1 then
response.write &quot; time before!&quot;
else
response.write &quot; times before!&quot;

end if
end if
%>

</body>
</html>


Many thanks!
 
This would make the entire sentence #FFFF00 and verdana.

<font color=&quot;#FFFF00&quot; face=&quot;verdana&quot;>
You have visited this Web page <%response.write(num)
if num=1 then
response.write &quot; time before!&quot;
else
response.write &quot; times before!&quot;

end if
%>
</font>

 
Hello Edcrosbys (ISP)

Many thanks for your speedy reply!
It works just great! I really must read up on CSS.
Many thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top