Transparent 'menu' images for backgrounds other than white

Everything related to GBook PHP guestbook
Post Reply
gildionne
Posts: 18
Joined: Thu Nov 16, 2006 4:21 pm

Transparent 'menu' images for backgrounds other than white

Post by gildionne »

/*************************************
Title:gbook
Version:1.6
Author:
Demo:www.gilsbus.ca/gbook/gbook.php
Download:
Website:www.gilsbus.ca/

Short description:
Get rid of unwanted white space around images when using colored backgrounds.
*************************************/

(Here below you can write additional info, longer description and comments)

Thanks for the excellent script, Klemen.
The menu images ('X'- delete.gif, 'arrow'- reply.gif and 'IP'-ip.gif) that are supplied with the gbook package, when used on colored pages, show a square white background around the symbol.
I have modified each of these images to have a transparent border so that they display better on the colored background of my website. If anyone wishes to copy these modified images from the guestbook on my site, and substitute them into into their own gbook file, feel free to do so. (Right click - copy image).

Perhaps Klemen could offer the images with transparent backgrounds in future releases.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Did you use GIFs or PNGs? To have a truly transparent image for any background I would need to include transparent PNGs, but I'm reluctant to do so as many browsers (including IE versions 6 and lower) don't support PNG alpha transparency...
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
gildionne
Posts: 18
Joined: Thu Nov 16, 2006 4:21 pm

Post by gildionne »

I am using GIF's
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

The problem with GIFs is if you create transparency for example for red background it won't look good on a white backrgound and similar.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Transparent GIF's can look good if you design them properly. They just will have hard edges instead of soft edges.

And the problem of PNG not being transparent in some older browsers is not really that big a problem if you set the background color right. The images are not transparent now either.

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Fudeba
Posts: 9
Joined: Sat May 09, 2009 8:01 am

Post by Fudeba »

Hello.

Used gbook on one of my sites and one use a black background. I added a transparent background to imagens.

See here:

http://www.msxpro.com/guestbook/gbook.php

Or imagens here:

Image, Image, Image
DC
Posts: 138
Joined: Sun Dec 09, 2007 9:28 am

Post by DC »

I agree with Klem as png's have an ugly gray bg in some browsers like IE6.

I use gifs for all, and if a script has png I make them gifs as gifs can look quite good if you closely anti-alias them to the bg your going to have them on.

what this does is it creats a smooth blend with the bg your going to place the gif on, so they do not need to be hard edged they can have a smooth blended appearence if they are made correctly for that bg.

http://en.wikipedia.org/wiki/Anti-aliasing

DC
To Code Or Not To Code That Is The Question?

Was my post of any help to you? if so please do [url=http://www.clickcraft.net/slice_donations.php][b]Buy Me A Slice[/b][/url] ...
Post Reply