Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > HTML / DHTML

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 09-06-2012, 04:00 AM   #1
davikerkrish
Registered User
 
Join Date: Jul 2012
Posts: 111
PNG transparency issue

Every designer would have faced this issue, obviously! Though there are a number of javascript based solutions, I couldn’t find anything that supports background position. As far as I know all JS based solutions end up with the same result. This is something that worked flawlessly for me. All other solutions are based on this filter.

.class_name
{
background:none;
filter: progidXImageTransform.Microsoft.AlphaImageLoader (src='image_name.png', sizingMethod='scale');
}
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
davikerkrish is offline   Reply With Quote

Old 12-05-2012, 05:31 AM   #2
abhirampathak3
Registered User
 
Join Date: Nov 2012
Location: India
Posts: 103
PNG transparency issue

<?php
$Image = ImageCreateTrueColor(80, 40);

$back = ImageColorAllocate($Image, 255, 255, 0);
$red = ImageColorAllocate($Image, 255, 0, 0);
$green = ImageColorAllocate($Image, 0, 255, 0);
$black = ImageColorAllocate($Image, 0, 0, 0);

ImageColorTransparent($Image, $back);
ImageFilledRectangle($Image, 0, 0, 80, 40, $back);
ImageArc($Image, 20, 20, 32, 32, 120, 0, $red);
ImageString($Image, 5, 20, 20, "hello", $black);

ImagePNG($Image, "c:/bad.png");
?>
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- Shopping Cart - PrestaShop, Zencart; CMS - WordPress, Joomla; Custom Development


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- SEO, Pay Per Click (PPC), SEM, Link Popularity Building, SEO Copywriting, SMO, SMM
abhirampathak3 is offline   Reply With Quote
Old 04-26-2013, 10:26 PM   #3
andrewneil85
Registered User
 
Join Date: Apr 2013
Posts: 2
Its good way, but can't we make the images with transparent images?
Or these codes' result will appear more attractive, please clear.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
andrewneil85 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
meta tag issue paldo Search Engine Optimization 0 08-15-2012 08:51 AM
Explain About Canonical Issue bobo.cx Search Engine Optimization 1 04-12-2012 11:34 PM
Help with duplicate issue ArtphotoasiA Google 2 04-11-2012 10:23 AM
Extend the power of +1 issue ncjbhd Google 0 11-17-2011 02:05 AM


All times are GMT -7. The time now is 03:15 PM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.