Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 663 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     Javascript :

How will i give the color effect in JAVA?

Thread title: How will i give the color effect in JAVA?
Closed Thread    
    Thread tools Search this thread Display Modes  
06-16-2008, 12:39 PM
#1
alisha is offline alisha
Status: Junior Member
Join date: Jun 2008
Location: India
Expertise:
Software:
 
Posts: 43
iTrader: 0 / 0%
 

alisha is on a distinguished road

  Old  How will i give the color effect in JAVA?

please tell me the coding to change the background and foreground colors of the page.

06-16-2008, 10:59 PM
#2
Jme is offline Jme
Status: I'm new around here
Join date: Apr 2008
Location:
Expertise:
Software:
 
Posts: 12
iTrader: 0 / 0%
 

Jme is on a distinguished road

  Old

Well, you'd simply do.
Code:
document.bgColor = "red";
document.fgColor = "black";
Or you could ahve a function..
Code:
function bgcolour(what)
{
document.bgColor = what;
}

<input type="button" onclick="bgcolour("red");" />
Hope this helped..

Closed Thread    


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

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed