Entry
Simple sample of VML coding for IE5+
Aug 22nd, 2001 15:56
Hiroto Sekine, http://www.all.co.nz/support/withlove/indexd.htm
(IE5+): Try the code below for the VML(Vector Markup Language) coding
test to draw letters (can be drawn shape as well). By changing
the "string" property value, you can change the drawing letters.
Also see http://msdn.microsoft.com/library/default.asp?
url=/workshop/author/vml/SHAPE/vmldemos.asp
<?xml version='1.1' encoding='windows-1252'?>
<!DOCTYPE HTML PUBLIC '-//W3C//DTD XHTML 1.1 Transitional//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml11-transitional.dtd'>
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns="http://www.w3.org/TR/REC-html40">
:
:
<!--[if !mso]>
<style>
v\:* { behavior:url(#default#VML); }
o\:* { behavior:url(#default#VML); }
.shape { behavior:url(#default#VML); }
</style>
<![endif]-->
</head>
<body>
:
<v:shape style='position:relative;margin-left:15%;margin-
right:15%;margin-top:0pt;width:96%;height:0.5in;text-align:center'
coordsize="21600,21600" path="m0,0l21600,0m0,21600l21600,21600e"
title="DblClick to view Browser Capabilities" OnDblClick="showCaps
();event.cancelBubble=true;">
<v:path textpathok="t" />
<v:textpath on="t" fitpath="t" fitshape="t" style='font-family:"Times
New Roman"; font-weight:Bolder;' string="VML Sample/>
<v:fill Type="Gradient" Angle="-90" Colors="0 #a603ab;34079f yellow;1
#a603ab" Focus="30%" />
<v:shadow on="t" Type="Single" On="TRUE" Offset="3pt, 4pt" />
</v:shape>
:
</body>