0

I have two jsp page(home.jsp, welcome.jsp). I want to show welcome.jsp on the top of home.jsp. I want to see the background as home.jsp and on the top of that welcome.jsp. But by default welcome.jsp page has white background. How to set transparent background color of whole jsp page (welcome.jsp).

JJJ
  • 32,902
  • 20
  • 89
  • 102
Sunil Kumar Sahoo
  • 53,011
  • 55
  • 178
  • 243
  • 1
    Dude, you have more than 10k rep and almost 200 questions. Stop adding a signature to your posts. – JJJ May 05 '12 at 05:33

1 Answers1

1

First get the element within the iframe or frame that has the background color set. "Javascript - Get element from within an iFrame" covers accessing an element within an iframe.

Once you get the element, set the background color to transparent. There are multiple ways to do this:

element.style.backgroundColor = 'transparent';
element.setStyle('background-color', 'transparent'); // MooTools
element.css('background-color', 'transparent');​​​​​​​​​​​​​​​​​ // jQuery

References:

Community
  • 1
  • 1
creemama
  • 6,559
  • 3
  • 21
  • 26