Current location: Hot Scripts Forums » Programming Languages » ASP » font colour


font colour

Reply
  #1 (permalink)  
Old 09-22-03, 02:28 PM
myo myo is offline
Newbie Coder
 
Join Date: Sep 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
font colour

hi there,

i have a dark background ASP page. when i response write anything the text come out black....how can i change the output text to white.

help help
Reply With Quote
  #2 (permalink)  
Old 09-22-03, 02:36 PM
geneane's Avatar
geneane geneane is offline
Newbie Coder
 
Join Date: Sep 2003
Location: The Carolinas
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
ASP Font Color

If you are using Frontpage, click on Format > Background
Click on the background tab and select the Text color drop down.

Basically this is the basic way to do it, by changing the pages text color. You could also insert font tags before and after your ASP script.
(i.e. <font color = #FFFFFF> ****ASP SCRIPT**** </font>

Hope this helps!
Reply With Quote
  #3 (permalink)  
Old 09-22-03, 02:50 PM
myo myo is offline
Newbie Coder
 
Join Date: Sep 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
that didnt work ...mmm....im not using frontpage...im using dreamweaver mx2004.

anyother suggestions
Reply With Quote
  #4 (permalink)  
Old 09-22-03, 02:56 PM
myo myo is offline
Newbie Coder
 
Join Date: Sep 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
this is the code im using...if its any help. i what the text "please enter username and password" in white.....how do i do that!!

thanks


<%

email = trim(Request.form("username"))
password = trim(Request.form("password"))

if email = "" or password = "" then
Response.Write "please enter username and password"

else
ConnString = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("member.mdb")

set my_conn= Server.CreateObject("ADODB.Connection")
set rs = server.CreateObject("ADODB.RecordSet")
my_Conn.Open ConnString

set rscheck = my_conn.Execute ("Select * from member where email='" & email & "' and password='" & password & "'")

if rscheck.eof then
Response.redirect invalid_page

else
session("login") = "yes"
session("name") = rscheck("name")
'session("...") = rscheck("...")



Response.redirect valid_login

end if

RScheck.close
rs.Close
my_conn.close
set my_conn = nothing
end if
%>
Reply With Quote
  #5 (permalink)  
Old 09-22-03, 03:05 PM
myo myo is offline
Newbie Coder
 
Join Date: Sep 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
oh actaully thanks.... i have figured it out.....i was just being really dump...
Reply With Quote
  #6 (permalink)  
Old 09-22-03, 03:07 PM
geneane's Avatar
geneane geneane is offline
Newbie Coder
 
Join Date: Sep 2003
Location: The Carolinas
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Oh!
Try this:

if email = "" or password = "" then
Response.Write "<font color=#FFFFFF>please enter username and password</font>"
Reply With Quote
  #7 (permalink)  
Old 09-22-03, 03:14 PM
geneane's Avatar
geneane geneane is offline
Newbie Coder
 
Join Date: Sep 2003
Location: The Carolinas
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Talking Cool

Oh. OK. I understand. I think we programmers get "dumb blocks" every 10,000 lines of code. :-)
Reply With Quote
  #8 (permalink)  
Old 09-24-03, 04:37 AM
Stealth Stealth is offline
1337 pr0gr4mm3r
 
Join Date: Jun 2003
Location: Glasgow, Scotland
Posts: 188
Thanks: 0
Thanked 0 Times in 0 Posts
yeh one of my favourites was DoormatDateTime()
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
font script seans9 Script Requests 7 09-10-03 12:15 PM


All times are GMT -5. The time now is 03:35 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.