Click here to Skip to main content
15,889,096 members
Home / Discussions / Web Development
   

Web Development

 
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 
GeneralRe: Format file Excel ! Pin
Chris Quick24-Sep-04 11:08
Chris Quick24-Sep-04 11:08 
GeneralHide columns was maked by autoGenerateColums="true". Help me ! Pin
Nguyen Van Vinh17-Sep-04 17:59
Nguyen Van Vinh17-Sep-04 17:59 
GeneralRe: Hide columns was maked by autoGenerateColums="true". Help me ! Pin
yiyanxiyin19-Sep-04 15:42
yiyanxiyin19-Sep-04 15:42 
Generalto Yiyanxiyin ! Pin
20-Sep-04 23:31
suss20-Sep-04 23:31 
Generalintranet search Pin
khowlett17-Sep-04 14:41
khowlett17-Sep-04 14:41 
QuestionHow do I share an instance of class between multiple calls to a Webservice? Pin
Paul Evans17-Sep-04 7:10
Paul Evans17-Sep-04 7:10 
AnswerRe: How do I share an instance of class between multiple calls to a Webservice? Pin
Paul Evans17-Sep-04 7:12
Paul Evans17-Sep-04 7:12 

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.