Results 1 to 3 of 3

Thread: Gif Transparent

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2015
    Posts
    2

    Exclamation Gif Transparent

    Hi everybody !
    I've a little problem with an hta application : i'd like to have a gif in the center of the screen, without borders and TRANSPARENT ! I've made the script, but the gif has now a blank square in background. Does anyone can make it without this ugly background ?

    The Script -->

    <html>
    <hta:application id="oHTA"
    border="none"
    caption="no"
    contextmenu="no"
    innerborder="no"
    scroll="no"
    showintaskbar="no"
    background-color=""
    />
    <script language="VBScript">
    Sub Window_OnLoad
    ' Resize and position the window
    width = 500 : height = 400
    window.resizeTo width, height
    window.moveTo screen.availWidth\2 - width\2, screen.availHeight\2 - height\2
    End Sub
    </script>
    <body>
    <table border=0 width="100%" height="100%">
    <tr>
    <td align="center" valign="middle">
    <img src="C:\Users\ZeFun\Desktop\Extension\troll.gif"/>
    </td>
    </tr>
    </table>
    </body>
    </html>

    (sorry for mistakes, i'm french)

  2. #2

    Thread Starter
    New Member
    Join Date
    Jan 2015
    Posts
    2

    Re: Gif Transparent

    Code:
    <html>    <hta:application id="oHTA"
            border="none"
            caption="no"
            contextmenu="no"
            innerborder="no"
            scroll="no"
            showintaskbar="no"
            background-color=""
        />
        <script language="VBScript">
            Sub Window_OnLoad
                ' Resize and position the window
                width = 500 : height = 400
                window.resizeTo width, height
                window.moveTo screen.availWidth\2 - width\2, screen.availHeight\2 - height\2
            End Sub
        </script>
    <body>
        <table border=0 width="100%" height="100%">
            <tr>
                <td align="center" valign="middle">
                    <img src="C:\Users\ZeFun\Desktop\Extension\troll.gif"/>
                </td>
            </tr>
        </table>
    </body>
    </html>

  3. #3
    Smooth Moperator techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,531

    Re: Gif Transparent

    The image itself would need to be transparent.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width