748 - 0

SFBPC – Resources

2011-02-18 at 01:46 am BlogBlog  RSSRSS  Subscribe



Semi-Transparent Code

Now it is possible to use a “Dynamic URL” as a semi-transparent background!

This is the URL: http://www.friendburst.com/images/tpng.php?size=10&color=000000&percentage=50

It is known as a “tpng” URL (Dynamic URL that creates a transparent png). It eliminates the use of external png files for semi-transparency.

Instructions: The URL has two parts to change, if you want to change the color and opacity. Note: It is not necessary to change the “size” part, as the dynamically created image will be repeated (tiled) in the background code in which you would use the URL.

color=000000 …This part is for the background color. Change the hex code to the desired color. Color chart here

percentage=50 …This part is for the opacity. Lower the number for more transparency, or raise the number for less transparency.

To see the URL in action, click the URL above (you will see the dynamically created 10 pixel image). Go to the address bar in your browser. Change the color and percentage, then hit “Enter” on your keyboard to see the changes.

Opacity example:

Example of background color set to FriendBurst Red “bb0000″ at 50 percent opacity:

So, the URL would look like this:


*Note: Normally, you would use a number symbol (#) with hex color, as in layout CSS code. This dynamic URL does not use the number symbol, so you only need the color numbers to change the color.

Basic background code to apply semi-transparency, using the tpng URL, to whichever element(s) you want to style:

css selector here {
background-image: url(http://www.friendburst.com/images/tpng.php?size=10&color=000000&percentage=50);
background-position: top left;
background-repeat: repeat;
background-attachment: fixed;

This “tpng URL” will be used in the “Semi-Transparent Profile code, coming soon.


Semi-Transparent PNG (Old Semi-Transparent Method)


*Right click and save.

30% Black:

30% Red:

30% Orange:

30% Yellow:

30% Green:

30% Blue:

30% Indigo:

30% Violet:

Profile Class And ID Reference:


Last 5 posts by shan1

View Counter: 1,166 views

Leave a Reply

You must be logged in to post a comment.