13 html vbscript base64 hta bmp
我在FireFox书签的备份中注意到,每个条目左侧显示的图标都作为A标签中的字符流保存.例如:
ICON ="data:image/png; base64,iVBOR [删除数据以缩短示例] rkJggg =="
我有3个BMP文件(2 are 4x20 (249 bytes) and 1 is 102x82 (24.7 KB)),我想在我的HTML应用程序中隐藏,这样他们就不会迷路.
较大的一个在样式标记中出现3次,如下所示(显示1次):
<style type="text/css">
#frmMainBody
{background:grey; background-image:url('Background.bmp'); margin:0;
padding:0; font:normal 10pt Microsoft Sans Serif;}
</style>
Run Code Online (Sandbox Code Playgroud)
另外两个出现在VBScript子例程中,如下所示:
Sub Button_Glow
' Highlights a button when the cursor hovers over it.
With Window.Event.srcElement.Style
If .BackgroundColor <> "Lavender" Then
.BackgroundColor = "Lavender"
.BackgroundImage = "url(Glow.bmp)"
.BackgroundPositionY = -2
.BackgroundRepeat = "Repeat-X"
End If
End With
End Sub 'Button_Glow
Run Code Online (Sandbox Code Playgroud)
这可能吗 ?
左侧的图像称为favicon,默认大小为16x16,应为.ICO格式(但也可以是其他格式)。
当您撰写有关隐藏 .BMP 图像的文章时,我猜您想存储而不是隐藏图标,因此即使书签/用户离线,它也始终会加载。正确的?