![]() |
help with Javascript for style a external Iframe
Hello,
i need to add style="background:transparent" in the body of an external frame: <iframe name="frm" src="external link"> #document {<html> <head>...</head> <body class="modelo3" style="background: transparent;"> ..... </body> } </iframe> I tried with javascript, but no way. Thanks in advance. |
In the iframe definition add allowtransparency="true"
See if that helps. |
Thanks for the idea, but it doesn't work.
|
Maybe you should post the code your using and not a snip it.
|
Code:
<div class="custom" >AND I NEED TO PUT IN SOMEWAY <body class='modelo2' style="background:transparent"> |
May be you needs to write transparency css on class called "modelo3" I am not sure but may be you can do using CSS3
|
The body has no intrinsic background color, so there’s no point in setting it to “transparent”. I suppose you want the iframe to have a transparent background color?
It would help if you showed us a live example and mentioned the browser in which the issue occurs. |
css class "modelo3" has a background defined... and i need to overwrite it using "style='background...'
this is my iframe: http://booking.iberiatrip.com/public...321/2240371588 |
| All times are GMT +1. The time now is 07:20 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.