Click here to Skip to main content
15,910,661 members
Home / Discussions / Web Development
   

Web Development

 
QuestionGmail Notifier? Pin
stephen.vines26-Sep-04 12:51
stephen.vines26-Sep-04 12:51 
AnswerRe: Gmail Notifier? Pin
David Salter27-Sep-04 3:33
David Salter27-Sep-04 3:33 
GeneralRe: Gmail Notifier? Pin
stephen.vines27-Sep-04 14:07
stephen.vines27-Sep-04 14:07 
GeneralRe: Gmail Notifier? Pin
Brian Olej27-Sep-04 14:18
Brian Olej27-Sep-04 14:18 
QuestionAlpha transparent PNG rollovers?? Pin
zumichu25-Sep-04 18:20
zumichu25-Sep-04 18:20 
AnswerRe: Alpha transparent PNG rollovers?? Pin
Richard Deeming1-Oct-04 3:18
mveRichard Deeming1-Oct-04 3:18 
GeneralRe: Alpha transparent PNG rollovers?? Pin
Anonymous3-Oct-04 9:48
Anonymous3-Oct-04 9:48 
QuestionHow can we display the folder files in two columns? Pin
farooq as25-Sep-04 0:49
sussfarooq as25-Sep-04 0:49 
GeneralChange the Font Face in html Pin
Anonymous24-Sep-04 18:50
Anonymous24-Sep-04 18:50 
Generalweb to client exe communication and management Pin
will138324-Sep-04 18:01
will138324-Sep-04 18:01 
Generalsystem design Pin
Paul Swet24-Sep-04 8:35
Paul Swet24-Sep-04 8:35 
GeneralRe: system design Pin
Mike Hodnick25-Sep-04 6:44
Mike Hodnick25-Sep-04 6:44 
GeneralRe: system design Pin
Paul Swet25-Sep-04 7:15
Paul Swet25-Sep-04 7:15 
GeneralRe: system design Pin
Mike Hodnick27-Sep-04 7:21
Mike Hodnick27-Sep-04 7:21 
Generalhelp with this pls Pin
peterzorbas23-Sep-04 15:28
peterzorbas23-Sep-04 15:28 
could someone help me with this please.

How can i accept both a background and foreground color. Currently either 1 or the other is accepted and rendered. here is the code. from what i understand its an if statement that will do this. thanks in advance.



//----------------------------------------------------------------
// Variable Initialization
//----------------------------------------------------------------
var bgcolor=String(Request("bgcolor"));
bgcolor = bgcolor == "undefined" ? "white" : bgcolor;
var fgcolor=String(Request("fgcolor"));
fgcolor = fgcolor == "undefined" ? "black" : fgcolor;
var this_url,this_color,this_variable;


//----------------------------------------------------------------
// Page Assembly
//----------------------------------------------------------------
this_parameter = "fgcolor";
label("Foreground Color");
start_table();
this_color="red";
cell(this_color,url(this_parameter,this_color));
this_color="green";
cell(this_color,url(this_parameter,this_color));
this_color="blue";
cell(this_color,url(this_parameter,this_color));
end_table();

this_parameter = "bgcolor";
label("Background Color");
start_table();
this_color="yellow";
cell(this_color,url(this_parameter,this_color));
this_color="gray";
cell(this_color,url(this_parameter,this_color));
this_color="purple";
cell(this_color,url(this_parameter,this_color));
end_table();

label("Results");
show_results();


//----------------------------------------------------------------
// UI Helper Functions
//----------------------------------------------------------------

function url(param,color)
{ var baseURL = "default.asp";
baseURL += "?" + param;
baseURL += "=" + color;
return(baseURL);
}

function start_table()
{ Response.Write("");
}

function end_table()
{ Response.Write("


");
}

function cell(color,url)
{ Response.Write("");
Response.Write("");
Response.Write(color);
Response.Write("
");
Response.Write("");
}

function label(text)
{ Response.Write("
");
Response.Write("");
Response.Write(text + ":");
Response.Write("


");
}

function show_results()
{ Response.Write("
");
Response.Write("");
Response.Write("This is some sample text");
Response.Write("
");
Response.Write("
");
}
QuestionJavascript: how to avoid text selection when dragging a div with text inside it? Pin
andibandit22-Sep-04 22:09
andibandit22-Sep-04 22:09 
QuestionJavascript: how to avoid text selection when dragging a div with text inside it? Pin
andibandit22-Sep-04 22:04
andibandit22-Sep-04 22:04 
Generalcount Visitor without global.asa Pin
TrungHuynh22-Sep-04 17:17
TrungHuynh22-Sep-04 17:17 
General30 day anniversary of this problem (:-() Pin
Asif Rehman22-Sep-04 3:22
Asif Rehman22-Sep-04 3:22 
Generalinsert text at cursor location -- TextArea Pin
devvvy20-Sep-04 21:30
devvvy20-Sep-04 21:30 
GeneralWebBrowser Control -- display string Pin
main@i-c.com.ua20-Sep-04 13:02
main@i-c.com.ua20-Sep-04 13:02 
Generalloading a bitmap in ASP Pin
DMurray20-Sep-04 9:00
DMurray20-Sep-04 9:00 
GeneralCertificates and WebServices Pin
species_84_7220-Sep-04 1:11
species_84_7220-Sep-04 1:11 
Questionhow can i convert from local connection into server conn ? Pin
19-Sep-04 23:01
suss19-Sep-04 23:01 
GeneralFormat file Excel ! Pin
Nguyen Van Vinh17-Sep-04 23:00
Nguyen Van Vinh17-Sep-04 23:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.