-
Jan 24th, 2015, 02:55 PM
#1
Thread Starter
New Member
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)
-
Jan 24th, 2015, 02:56 PM
#2
Thread Starter
New Member
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>
-
Jan 25th, 2015, 05:52 PM
#3
Re: Gif Transparent
The image itself would need to be transparent.
-tg
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|