based on background color

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • syedmuktha
    New Member
    • Jul 2007
    • 2

    based on background color

    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.
  • radcaesar
    Recognized Expert Contributor
    • Sep 2006
    • 759

    #2
    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
    :)

    Comment

    • shweta123
      Recognized Expert Contributor
      • Nov 2006
      • 692

      #3
      Hi,

      You can get the Login name using Request.Form() in javascript function and set document.bgcolo r = value depending upon Loginname

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        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

        Comment

        Working...