-
Behaviors with HTC files
I was all excited to move a great leap forward in coding behaviors for html
tags in .htc files (following the good advice on msdn), but I have not got
any response from my first attempts.
Can anyone help? I am using Visual Interdev, and created the files given
below:
m.htm
***********
<HTML>
<HEAD>
<style> LI (behavior : url("m.htc")) </style>
</HEAD>
<BODY>
<li>List one</li>
<li>List two</li>
</BODY>
</HTML>
m.htc
*********************
<PUBLIC:COMPONENT>
<PUBLIC:ATTACH EVENT="onmouseover" ONEVENT="Hilite()" />
<SCRIPT LANGUAGE="JScript">
function Hilite()
{ runtimeStyle.backgroundcolor = "red"; }
</SCRIPT>
Am I missing anything obvious?
Mike Atkins
Durban
South Africa
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks