Jump to content
Sign in to follow this  
meranda2100

.htc Files

Recommended Posts

I currently use HTML-Kit as my text editor. I want to use Internet Explorer Behaviors, but myeditor doesn't save .htc files. I tried using .xml file extension but the script I want to use won't work. This is what I want to save so that I can get a mouse over effect (text changes color on mouse over) This is the script:<attach for="element" event="onmouseover" handler="hig_lite" /><attach for="element" event="onmouseout" handler="low_lite" /><script type="text/javascript">function hig_lite(){element.style.color='red';}function low_lite(){element.style.color='blue';}I want to save it as "behave.htc" in my editor. Any help would be appreciated.Meranda2100

Share this post


Link to post
Share on other sites

Hopefully you know that these don't work in any other browser than IE and are not a web standard.Which editor are you using? If you use notepad, you can use any extension you like.

Share this post


Link to post
Share on other sites
Hopefully you know that these don't work in any other browser than IE and are not a web standard.Which editor are you using? If you use notepad, you can use any extension you like.
Thank you. I was able to save the document in notepad with .htc extension. I still wasn't able to get the code to work but I looked at the web standard, it requires Java and HTML DOM. I have just finished learning CSS, and am just starting Java. I will keep learning, and try that code instead.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...