homepage Welcome to WebmasterWorld Guest from 54.225.1.70
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderator: open

CSS Forum

    
DD BelatedPNG, has anyone used this?
vikasvrao




msg:3995290
 10:24 pm on Sep 24, 2009 (gmt 0)

Hi guys,
In trying to workaround the lack of png transparency in IE 6, I am trying to use: <snip>

I have the code they recommend:
<div id="socialdiv" style="margin: 6px 0 0; text-align: center;">
<div>
<a
href="http://twitter.com/home?status=http://beta.example.com/"
onclick="window.open(this.href); return false;" style="text-decoration:none;">
<img src="images/socialicons/Icon/twitter.png"
alt="Tweet This"
style="vertical-align: middle;" title="Tweet This" /> Tweet This</a>
</div>
</div>

Code for IE 6 png transparency(below the div above):

<!--[if IE 6]>
<script type="text/javascript" src="css/DD_belatedPNG_0.0.8a.js"></script>
<script type="text/javascript">
/* EXAMPLE */
DD_belatedPNG.fix('#socialdiv');

/* string argument can be any CSS selector */
/* .png_bg example is unnecessary */
/* change it to what suits you! */
</script>
<![endif]-->

I keep getting a belatedPNG undefined error. Has anyone else tried this? Please let me know what I'm doing wrong.
Or if there is a better way to fix IE 6 transparency issue.

[edited by: swa66 at 8:52 am (utc) on Sep. 25, 2009]
[edit reason] No URLs, use exmaple.com, please see ToS and Forum Charter [/edit]

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved