Results 1 to 3 of 3

Thread: PNG image transparency not working....

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Contributing Member
    Join Date
    Sep 2006
    Answers
    962

    PNG image transparency not working....

    PNG image transparency not working in IE 6.0 or less than 6.0

    If you want to use the transperancy then use the following script in your html. Call this function in the image onLoad function....

    SCRIPT:
    --------

    var arVersion = navigator.appVersion.split("MSIE")
    var version = parseFloat(arVersion[1])
    function fixPNG(myImage)
    {
    if ((version >= 5.5) && (version < 7) && (document.body.filters))
    {
    var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
    var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
    var imgTitle = (myImage.title) ?
    "title='" + myImage.title + "' " : "title='" + myImage.alt + "' "
    var imgStyle = "display:inline-block;" + myImage.style.cssText
    var strNewHTML = " + " style=\"" + "width:" + myImage.width
    + "px; height:" + myImage.height
    + "px;" + imgStyle + ";"
    + "filterrogidXImageTransform.Microsoft.AlphaImageLoader"
    + "(src=\'" + myImage.src + "\', sizingMethod='scale');\">
    "
    myImage.outerHTML = strNewHTML
    }
    }

    ------------------------

    For example, if you use the test.png file then the code like this...

    PNG image transparency not working....

    i solve the problem just now. That's why i post here...
    -------------------
    suresh


  2. #2
    Contributing Member
    Join Date
    Sep 2006
    Answers
    962

    Re: PNG image transparency not working....

    i don't know why the icon was coming there...

    You just copy and paste your system.....it is working...

    ----------------
    suresh


  3. #3
    Expert Member
    Join Date
    Sep 2006
    Answers
    477

    Re: PNG image transparency not working....

    The Icons were coming because (: D means ) and (: p means )

    [COLOR="Blue"][SIZE="2"]"If you are not living on the edge of your life, you are wasting space"[/SIZE][/COLOR]

    Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact