DIGITAL SIGNAGE SUPPORT

Digital Information Displays (Digital Signage) => MagicInfo => Topic started by: helenw on March 28, 2011, 04:37:30 PM

Title: does anyone know html as to why my clock doesnt have transparent background
Post by: helenw on March 28, 2011, 04:37:30 PM
i went to the website i saw recommended on this help site.  www.timeanddate.com. i found a digital clock with date i wanted to use. while going thru my options (color, font) i said transparent for clock background and page background. and then the site built html code. but when i bring the clock up on the screen , the background is white and not transparent. here is the code:
<html>
<head>
</head>
<iframe src="http://free.timeanddate.com/clock/i2ijk3kk/n179/fs48/tct/pct/tt0/tw1/tm1/td2/th2/tb4" frameborder="0" width="420" height="112" allowTransparency="true"></iframe>

</body>
</html>
 
Title: Re: does anyone know html as to why my clock doesnt have transparent background
Post by: dssc on March 28, 2011, 05:02:23 PM
the iframe is transparent, the default background color for the html page is white.
there is no body starting tag in your page.
Below is the code with red background:
<html>
<head>
</head>
<body bgcolor=red>
<iframe src="http://free.timeanddate.com/clock/i2ijk3kk/n179/fs48/tct/pct/tt0/tw1/tm1/td2/th2/tb4" frameborder="0" width="420" height="112" allowTransparency="true"></iframe>

</body>
</html>
 
You can try CSS style for transparent body background. <body style="background-color: transparent;">  this can work.