Question

Transparent web pages?

Asked by: klamerus

Okay, here's the deal.

I want to create some dynamic desktop content.  So far as I can see, the only way to do that simply is to create a dynamic web page and put that on the desktop.  Fine, I have a simple example doing that with javaScript doing a rollover.  Unfortunately, the web page (which seems to be what you have to use) has a white background, which looks pretty shappy and stands-out on my desktop which has wallpaper on it (a graphics image).

So, I want to make the background of this HTML transparent.  I can't find any way of doing this.  The only thing that comes to mind is specifying a gif for the background of the page and making it an entirely transparent gif - but that doesn't seem likely.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2003-11-02 at 19:19:54ID20785728
Tags

web

,

background

,

desktop

,

transparent

Topic

Hypertext Markup Language (HTML)

Participating Experts
3
Points
500
Comments
20

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Transparent Background GIF's
    Does anybody know if there is a freeware bit of software that allows one color to be made transparent on gifs for a webpage???
  2. Importing a Transparent GIF
    I need to import a transparent GIF into an existing Phtotshop5 file (with a transparent background layer already.) The manual references the file - import command to do this, but I have no options other than "Twain 32" from the import menu. Does anyone know how to i...
  3. 'onmouseover' with transparent GIF...
    I'm creating some rollovers and wish to keep the first image in the background, allowing the second (which is a transparent animated GIF) to display over the top. I'm using 'onmouseover' and 'onmouseout' with a javascript function to swap the images (i.e. {document.images[id...
  4. transparent gifs
    How to make transparent gifs in photoshop which is suitable for websites. explain in details. any suggestions please?
  5. Transparent gifs
    If you go to http://therift.org you will see a transparent blue gif. The edges of the logo are grainy and white. Is there a way to make the gif more "clear"?

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: seanpowellPosted on 2003-11-02 at 20:36:26ID: 9668725

I don't think you're going to be able to do this - but it's a nice idea. (Unless you want to buy a MAC)

 

by: dsynPosted on 2003-11-02 at 22:14:17ID: 9669017

Instead of making the html background transparent, make the backgound of the html point to the image you are currently using for your desktop...  Also consider using iframes inside your html for content because they're backgrounds can be transparent.

<html>
<head>
      <title>my desktop</title>
</head>

 <body bgcolor="#FFFFFF" leftmargin=0 topmargin=0 marginwidth="0" marginheight="0" background="location/of/my/desktop_wallpaper.jpg">

content


</body>
</html>

 

by: ahoffmannPosted on 2003-11-03 at 01:05:58ID: 9669580

<body style="background-color:transparent;">

 

by: klamerusPosted on 2003-11-03 at 16:37:29ID: 9675216

I don't think either of these will work.

First, if I set the image of the web content on my desktop to the same as an image.  Web content is places at user-defined locations on the desktop and the image behind it would use the upper-left of that web content as the origin for the image - so the image on the web page and the image on the desktop wouldn't correspond.

I tried setting the <body style...> tag, but it didn't work.  I still got the same white background.  It almost seems like I have to set the web content to the same color as the desktop and not use any images.

 

by: dsynPosted on 2003-11-03 at 17:44:16ID: 9675582

Inline Frames

Most people use inline frames in a table. It's easier to put it exactly where you want it that way.

This is the html you need:

<iframe src="initial page" height="height" width="width">

If you don't want a scrollbar in your frame, add this to the basic tag:

scrolling="no"

Or, if you always want the scrollbar to show up, put "yes" instead of "no."

If you don't want a border around it, add this:

frameborder=0  border="0"

If you want a small border, add this:

style="border: 1px solid black"

Obviously, change the size/color/type to whatever you want. The different border types are: solid, dotted, dashed, double, groove, ridge, inset, outset. It's important to leave frameborder="0" in the tag because otherwise the border will look ugly.

If you have an image as your main page background and want it to show through the inline frame, you have two options. First, you can add that image as the page background to every page, after adjusting it to the right size and making sure the edges are even with the larger image, or, you can add transparency to your frame.

To add transparency, add this to the frame tag:

allowtransparency="true"

That's all you need to do to the frame. You need to add this to <style> section of every page that will show in the frame:

body {background-color: transparent}

When you do that, the frame will have a completely transparent background. Sometimes it can be hard to read the text on your page because of this (which I found out while designing version 3). Sure, it looks great, but people will be more inclined to go to your website if they can actually read it. To have a semi-transparent background (which is what I have on version 3), you need to add opacity. Put this in your <style> section instead of the above:

body {background-color: white; filter: alpha(opacity=50)}

Change the background color to whatever color you want, and change the opacity to a number between 1 and 100.


 

by: dsynPosted on 2003-11-03 at 17:47:21ID: 9675593

the above is a quote from: http://innocentia.org/domain/tutorials/inlineframes.htm just for some super details

try this:


the iframe holder:

<html>
<head>
<title> Test Document </title>
</head>
<body>
<iframe src="iframesource.html" height="400" width="400" allowtransparency="true">
</iframe>
</body>
</html>

------------------------------
the iframe source (iframesource.html):

<html>
<head>
<title>iframe document</title>
</head>
<body style="background-color: transparent">

blaablaablaablaablaablaa
blaablaablaablaablaablaa
blaablaablaablaablaablaa
blaablaablaablaablaablaa
blaablaablaablaablaablaa

</body>
</html>

 

by: klamerusPosted on 2003-11-03 at 18:06:40ID: 9675666

I'll need to give this a try.  As I said, this is for an Active Desktop on Windows XP.

 

by: seanpowellPosted on 2003-11-03 at 18:54:40ID: 9675815

Don't kill yourself on this one - as I mentioned, I don't think you're going to be able to pull this off :-(

 

by: ahoffmannPosted on 2003-11-03 at 23:48:19ID: 9676860

<body style="background-color: transparent">

is the solution, as I said.

If it does not work for you, you either have a buggy browser (or whatever renders your HTML), or there is another CSS definition (probably in the HEAD section) which is more restrictive.

 

by: seanpowellPosted on 2003-11-04 at 05:45:48ID: 9678452

With all do respect - that will have no effect. (It has nothing to do with a buggy browser...)
There is no way to make the browser canvas transparent against the desktop.

 

by: dsynPosted on 2003-11-04 at 05:58:26ID: 9678528

georgemarian is right, there is no way to make the browser canvas transparent against the desktop. That is why you use <body background="location/of/my/desktop_wallpaper.jpg">  in combination with transparent <iframes>... make sure your using Internet explorer as your default browser sense it is a part of the windows OS

 

by: seanpowellPosted on 2003-11-04 at 06:03:06ID: 9678561

I appreciate how you're trying to solve this dsyn - but the problem here is one of placement. Have you tested your solution?

How will you get the background image in the active web page to line up exactly against the background image on the desktop?

 

by: dsynPosted on 2003-11-04 at 07:56:33ID: 9679378

Actualy, I have created active desktops for my self before... It's alot of fun and makes it a lot easier to get stuff done.  I wrote one desktop background that had a form in it, so secretaries can send phone messages to people.  I know we can get this going for you, It's fun.

Don't use an actual desktop background, leave it empty.  Replace the background image with your html page that uses the <body background="location/of/image"> tag. In that same html page, setup tables to place the transparent <iframes>.
The iframes will actually be where the content is.

Make sure your parent table is set to 100%

this html would be your desktop wallpaper/background
-----------------------------------------------------------------------------------------------------------------------------
<html>
<head>
<title> Test Document </title>
</head>
<body background="location/of/image.jpg" leftmargin=0 topmargin=0 marginwidth="0" marginheight="0">

<table width=100% height=100% cellpadding=0 cellspacing=0 border=0>
        <tr>
              <td>
                   <table align=center>
                          <tr>
                              <td>
                                    <iframe src="iframesource.html" height="400" width="400" allowtransparency="true" name=iframe1 border=0></iframe>
                              </td>
                               <td>
                                     <iframe src="iframesource2.html" height="400" width="400" allowtransparency="true" name=iframe2 border=0></iframe>
                               </td>
                         </tr>
                   </table>
              </td>
        </tr>
</table>



</body>
</html>

---------------------------------------------------------------------------------------------------------
the iframe source (   iframesource.html and iframesource2.html   ):
---------------------------------------------------------------------------------------------------------

<html>
<head>
<title>iframe document</title>
</head>
<body style="background-color: transparent">

content

</body>
</html>


I hope that makes sense.

 

by: ahoffmannPosted on 2003-11-04 at 08:08:34ID: 9679462

ok, if the desktop is too stupid, how about setting the transparent flag in the image itself, then use it as suggeset with
  background="location/of/my/desktop_wallpaper.jpg

 

by: dsynPosted on 2003-11-04 at 11:44:49ID: 9681360

I have a correction sorry about that and some directions for the desktop setup:

main html
---------------------------------------------
<html>
<head>
<title> Test Document </title>
</head>
<body background="bg.jpg"  bgcolor="#FFFFFF" leftmargin=0 topmargin=0 marginwidth="0" marginheight="0" style="background-color:transparent;">


<table width=100% height=100% cellpadding=0 cellspacing=0 border=0>
        <tr>
              <td>
                   <table align=center>
                          <tr>
                              <td>
                                    <iframe src="iframesource.html" height="400" width="400" allowtransparency="true" name=iframe1 border=0 style="filter: chroma(color=ffffff)"  border="0" frameborder="0"></iframe>
                              </td>
                               <td>
                                     <iframe src="iframesource2.html" height="400" width="400" allowtransparency="true" name=iframe2 border=0 style="filter: chroma(color=ffffff)"  border="0" frameborder="0"></iframe>
                               </td>
                         </tr>
                   </table>
              </td>
        </tr>
</table>



</body>
</html>

---------------------------------------------
iframe source
------------------------------------------------
<html>
<head>
<title>iframe document</title>
</head>
<body bgcolor="#FFFFFF" style="filter: chroma(color=ffffff)">

content2


</body>
</html>


----------------------------------------------------------
setup the wallpaper
----------------------------------------------------------

1. right click on the desktop
2. click "propertie"s
3. select the "desktop" tab
4. set the background to none
5. click "apply"
6. click "customize desktop"
7. select the "web" tab
8. click "new"
9. "browse" for your file
10. click "ok"
11. do not check "Lock desktop items"
12. click "ok" for the customization porperties
13. click "ok/apply" for the desktop properties

At this point your html document will appear in a small box on your desktop then you need to:
1. move your mouse over the top border of the html box
2. a menu bar will appear, click the down arrow on the left side
3. a drop down menu will appear, click "Cover desktop"


That's it...

Finally. Sorry it took so long.

 

by: dsynPosted on 2003-11-04 at 12:02:49ID: 9681515

and with some dhtml you could create draggable windows with transparent backgrounds instead of iframes.

 

by: klamerusPosted on 2003-11-04 at 18:03:49ID: 9683808

I didn't know the trick about "cover desktop".  With that, and an image in the background, I should be pretty much there.

What the point in the iframe?  Why not just put the image as the background image of the <body>?

 

by: seanpowellPosted on 2003-11-04 at 18:24:31ID: 9683870

This question is taking some bizarre turns!

If the question is can I have a web page cover my "entire" desktop? Absolutely.
If the question is can I have a transparent background within the browser canvas? Then no.

If you're happy with having the full desktop as a web page - then you don't need transparency, iframes, or any other scripting. As has been pointed out - just maximiaze the desktop browser.

 

by: dsynPosted on 2003-11-05 at 06:17:23ID: 9686761

The iframes are there to teach you about transparency. If you want to take your content deeper than just one page you'll want to use either transparent layers,divs, or iframes. By using them you wont have to create a whole bunch of pages with code already written in the original page..

 

by: dsynPosted on 2003-11-05 at 17:40:08ID: 9691412

Hey thanks for the good score! This was my first, so thanks for baring with me.Let me know if you need more help with this. It was fun

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...