Jump to content

[SOLVED] Transperent PHP chat window


allan8904

Recommended Posts

hi, i'm currently working on a php game with some friends, and i'm curently trying to implement a chat system. We would like it to be placed on the bottom of the window (which we did quite easily using some php chat source code), but we would like to be able to make the chat window transperent, so the user can still see the map. Is there an easy way to make an existing chat transperent, or is there source code taht i could download for a transperent chat in PHP

Thanks,

-Allan

Link to comment
Share on other sites

As the guy says, that's done with CSS. Create a 1x1 pixel transparent image (in whatever program you're using), and fill it with, say, a white dot with 80% opacity. Save it as a PNG file with alpha transparency, and use it as the background of the element containing the chat window.

 

CSS (assuming the container element has id="chatcontainer"):

#chatcontainer {
background: transparent url("filepath/filename.png") repeat top left;
}

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.