473,500 Members | 1,664 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

based on background color

2 New Member
hi every body,. i want to change my background color based on differend user while login for my web site. if u have any idea, pls reply me asap.
regards,
-syed.
Jul 4 '07 #1
3 871
radcaesar
759 Recognized Expert Contributor
Use random numbers to change the value of the color code.

To generate those

http://weblogs.asp.net/erobillard/archive/2004/05/06/Random-Numbers-in-C_2300_.aspx
:)
Jul 4 '07 #2
shweta123
692 Recognized Expert Contributor
Hi,

You can get the Login name using Request.Form() in javascript function and set document.bgcolor = value depending upon Loginname
Jul 4 '07 #3
Frinavale
9,735 Recognized Expert Moderator Expert
You could make couple of different CSS themes that set the background colour and then depending on the user's login set the style to that CSS class.

Or you could store the background colours into a database and when the user logs in grab that value and use the method Shweta123 has suggested...

There are many ways to solve this....

What have you tried so far?

-Frinny
Jul 4 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1719
by: Ryan | last post by:
I want to create a web browser based MIS suite to use our data held on SQL 7. We have Dreamweaver and Crystal Reports available but I want to know if these are suitable or if there are any...
6
2687
by: B McDonald | last post by:
Hi. I am trying to straighten out some DIV issues in the rendering of my no-tables CSS website. Right now the biggest issue is trying to render 2 columns several DIVs deep in the box model for my...
0
1574
by: gogram | last post by:
Hi, I am looking to change a frames based webite (3 rows no columns)(top - Nav, middle - Content, bottom - information) to be a tables based site possibly using css. I hav got the frame setting...
5
2567
by: EviL KerneL | last post by:
Hi - I am trying to figure out a way to enforce the validation included for this form based on whether the user chooses "email" or "phone" as the contact choice. Right now it is set to enforce...
3
10171
by: veganeater | last post by:
Hi, I'm wondering if there's a way that I can select which <div> to show based on the user's selection from a dropdown/listbox form. <form name="form1" method="post" action=""> <select...
31
3076
by: Chris Stanley | last post by:
I am using dreamweaver to make an ASP page. I have a table of data from a MSSQL database that is currently showing on the ASP page. I want the ability to change the color based on a priority...
2
1089
by: vincemoon | last post by:
What would be the best software, and also what would be the best programming language based solution, to solve the following problem: I have an XML data set I reference with the usual HTML table....
5
3428
by: DavidB | last post by:
Greetings I don't know if this is possible, but this group should be able to tell me. I have a webpage with a changing message board (I understand the problems with having changing text, but...
11
2336
by: free4trample | last post by:
First of all let me say that I know very little about javascript. what i need to do is to write a javascript functin which will change the background color of the table rows based on entrees in...
3
5342
by: kenny bones | last post by:
Hi! I'm currently working on a menu which is based on CSS and is listed with <li> tags. The CSS code looks like this: #nav { position: absolute; top: 101px; left: 390px; list-style: none;...
0
7136
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7018
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7182
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7232
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6906
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5490
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3110
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3106
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
316
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.