MSFN Forum: Transparent PNG on mouse over - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Transparent PNG on mouse over It shows gray color Rate Topic: -----

#1 User is offline   LaptoniC 

  • Member
  • PipPip
  • Group: Members
  • Posts: 125
  • Joined: 23-September 04

Posted 24 December 2005 - 08:52 AM

I am using WPI v4.3.5 with the theme of salac.I tried to use some transparent PNG for program descriptions.However it doesnt work.It shows gray color.
Posted Image
I am using below file for example
Posted Image
Thanks.

Edit:I am firefox user.So I see no grey color when I browse that PNG files.However, with IE it shows gray color.I think there is a problem of IE with transparent color in PNG.I dont know what will ne the workaround for this.

This post has been edited by LaptoniC: 24 December 2005 - 09:27 AM



#2 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,652
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 24 December 2005 - 09:36 AM

WPI Depends on IE so I think that is the cause of the transperancies not showing.

This post has been edited by kelsenellenelvian: 24 December 2005 - 09:37 AM


#3 User is offline   LaptoniC 

  • Member
  • PipPip
  • Group: Members
  • Posts: 125
  • Joined: 23-September 04

Posted 24 December 2005 - 09:42 AM

I know it depends on IE.I have found this MS KB describing the issue.What should I change to add that codes to WPI?.Thanks

#4 User is offline   LaptoniC 

  • Member
  • PipPip
  • Group: Members
  • Posts: 125
  • Joined: 23-September 04

Posted 24 December 2005 - 06:12 PM

After searching with google I have found it.It also adds my tweak only if it is png.I think it is very elagnt way.
Open your current theme's wpi.css.Add below lines

wpi.css said:

img {
behavior: url("common/pngbehavior.htc");
}


http://rapidshare.de...Common.zip.html
Add zip contents to your WPI\common folder.It works :thumbup

#5 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,652
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 24 December 2005 - 06:58 PM

Where in the css file are you adding in those lines?

#6 User is offline   LaptoniC 

  • Member
  • PipPip
  • Group: Members
  • Posts: 125
  • Joined: 23-September 04

Posted 24 December 2005 - 08:13 PM

I dont think it is that important where you put.However I put after body style like

Quote

body
{
background-color: #5A7EDC;
font-family: tahoma, arial, helvetica, sans-serif;
font-weight: normal;
font-color: #ffffff;
margin: 0px;
}


img {
behavior: url("common/pngbehavior.htc");
}


#7 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,652
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 24 December 2005 - 10:10 PM

Thanks added it into the next version.

#8 User is offline   glent 

  • Tpyo Spceialist
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,041
  • Joined: 16-August 04

Posted 29 December 2005 - 04:38 AM

Nice addition this has bugged me for a while ;)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy