Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > Other Programming Languages
Other Programming Languages If you have a coding issue to discuss about another language that really isn't provided for in any other forum here (not ASP.NET C#, C++, VB, PHP, JavaScript, Python, Java, Perl, Applescript, XML or any of the other forum topics we have), post it here. Enough discussion on a language we don't have covered could prompt a new forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Other Programming Languages section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old December 14th, 2005, 03:49 PM
Join Date: Jul 2005
Posts: 317
Thanks: 0
Thanked 0 Times in 0 Posts
Default CSS Rollovers Using JScript in IE 6.0 Problem

I have a site that uses CSS rollovers, and requires a .htc document to make them work in IE. But unfortunately, this document is slowing down the page's load time substantially. To test this, I removed the link to the .htc doc from the CSS stylesheet, and it loaded pretty well in IE 6.0. But if the reference is there, it takes forever to load. If anyone can view the code below (JScript) and let me know where I'm going wrong, it would be greatly appreciated. Thanks.

.htc doc in JScript:
<PUBLIC:ATTACH EVENT="onmouseover" ONEVENT="DoHover()" />
<PUBLIC:ATTACH EVENT="onmouseout" ONEVENT="RestoreHover()" />
<PUBLIC:ATTACH EVENT="onmousedown" ONEVENT="DoActive()" />
<PUBLIC:ATTACH EVENT="onmouseup" ONEVENT="RestoreActive()" />
<script language="JScript">
function DoHover()
  { element.className += ' hover';

function DoActive()
  { element.className += ' active';

function RestoreHover()
  { element.className = element.className.replace(/\bhover\b/,'');

function RestoreActive()
  { element.className = element.className.replace(/\bactive\b/,'');

Reply With Quote
  #2 (permalink)  
Old March 1st, 2006, 01:20 PM
Authorized User
Join Date: Mar 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts

you've not gotten a reply in this forum.
have you tried posting in the JAVA- forum ?

Reply With Quote

Similar Threads
Thread Thread Starter Forum Replies Last Post
rollovers in xslt mbic XSLT 5 May 5th, 2006 10:00 AM
rollovers in css john txforthehelp CSS Cascading Style Sheets 2 May 2nd, 2006 05:33 PM
Rollovers not working Adam H-W Javascript 9 April 24th, 2004 09:30 AM
interesting problem - re: database & rollovers highbeef Classic ASP Databases 4 March 2nd, 2004 09:41 AM
Problem with JScript inside XSLT chrisybhoy XSLT 6 September 17th, 2003 07:13 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.