Skip to content

Instantly share code, notes, and snippets.

@jfirebaugh
Created September 23, 2010 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfirebaugh/593915 to your computer and use it in GitHub Desktop.
Save jfirebaugh/593915 to your computer and use it in GitHub Desktop.
<html>
<head>
<style>v\:oval { behavior:url(#default#VML); display:inline-block }</style>
<xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('oval').click(function () { alert("type" in this); alert(this.type); } );
})
</script>
</head>
<body>
<form><v:oval id="oval" style="width:100pt;height:75pt;" fillcolor="red"> </v:oval></form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment