Skip to content

Instantly share code, notes, and snippets.

@justinhillsjohnson
Created September 7, 2012 04:19
Show Gist options
  • Save justinhillsjohnson/3663095 to your computer and use it in GitHub Desktop.
Save justinhillsjohnson/3663095 to your computer and use it in GitHub Desktop.
vml image scale
<HTML xmlns:v="urn:schemas-microsoft-com:vml">
<HEAD>
<STYLE>
v\:* { behavior: url(#default#VML); display:inline-block}
</STYLE>
<TITLE>VML Sample</TITLE>
</HEAD>
<BODY>
<DIV id="MyDiv"></DIV>
<SCRIPT LANGUAGE="VBScript">
<!--
Set MyRect = Document.CreateElement("v:image")
Set R = MyDiv.AppendChild(MyRect)
R.Style.Width = "100%"
R.Src = "http://jenkov.com/images/layout/top-bar-logo.png"
</SCRIPT>
</BODY>
</HTML>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment