mouseover - max cpu

Posted on 2006-05-25
Last Modified: 2010-08-05
I have a couple of web pages that have a fair amount of javascripting. When I mouseover text labels or checkboxes, the client-side cpu goes very high, almost to 100%, and stays there until you mouse-off the label or checkbox. The strange thing is, there are no onmouseover or onmouseout anywhere. I'm using IE7 B2, but the same symptom happens on IE6. What could be causing this?

One of my pages that exhibits this symptom:

      <TITLE>My Page</TITLE>
      <LINK REL="stylesheet" HREF="Custom/Style.css" type="text/css">
      <SCRIPT LANGUAGE="JavaScript" SRC="./Integration/TranslationWYSIWYG/common.js"></SCRIPT>
      <SCRIPT LANGUAGE="JavaScript" SRC="JavaScripts.js"></SCRIPT>

<BODY BGCOLOR="#FFFFFF" onLoad="expandTree(foldersTree)" onScroll="top.PermsRight.scrollTo(0,document.body.scrollTop)">

<!-- Infrastructure code for the treeview -->
<script src="TreeView_Permissions.js"></script>

      ROWCOLOR = ""
      PERSERVESTATE = 0 //don't preserve state of tree when coming from View Projects
      ICONPATH = 'images/'

      foldersTree = gFld("Experts Exchange Test Project", "","","","","","")
f = foldersTree
f.xID = 0
fSub = insFld(f,gFld("Drawings","","#EDEBF1","","","",""))
fSub.xID = 116
fSubSub = insFld(fSub,gFld("Plumbing","","#FFFFFF","","","",""))
fSubSub.xID = 119
fSubSub = insFld(fSub,gFld("Electrical","","#EDEBF1","","","",""))
fSubSub.xID = 120
fSubSub = insFld(fSub,gFld("Machinary","","#FFFFFF","","","",""))
fSubSub.xID = 121
fSubSub = insFld(fSub,gFld("Structual","","#EDEBF1","","","",""))
fSubSub.xID = 122
fSub = insFld(f,gFld("Documents","","#FFFFFF","","","",""))
fSub.xID = 117
fSubSub = insFld(fSub,gFld("Approval","","#EDEBF1","","","",""))
fSubSub.xID = 123
fSubSub = insFld(fSub,gFld("Reports","","#FFFFFF","","","",""))
fSubSub.xID = 124
fSub = insFld(f,gFld("Images","","#EDEBF1","","","",""))
fSub.xID = 118
fSubSub = insFld(fSub,gFld("Equipment","","#FFFFFF","","","",""))
fSubSub.xID = 125
fSubSub = insFld(fSub,gFld("Sites","","#EDEBF1","","","",""))
fSubSub.xID = 126
fSub = insFld(f,gFld("Incoming","","#FFFFFF","","","",""))
fSub.xID = 127
fSubSub = insFld(fSub,gFld("Email","","#EDEBF1","","","",""))
fSubSub.xID = 128
fSubSub = insFld(fSub,gFld("Fax","","#FFFFFF","","","",""))
fSubSub.xID = 129

      // Load a page as if a node on the tree was clicked (synchronize frames)
      // (Highlights selection if highlight is available.)
      function loadSynchPage(xID){
            var folderObj;
            docObj = parent.UserHomeLeft.findObj(xID);

          //Scroll the tree window to show the selected node
          //Other code in these functions needs to be changed to work with
          //frameless pages, but this code should, I think, simply be removed
            if (typeof parent.UserHomeLeft.document.body != "undefined"){ //scroll doesn work with NS4, for example

<!-- Build the browser's objects and display default view of the tree. -->
      function reviewCheckBoxes(){
            elems = document.forms[0].elements
            ok = false
            for(rcb=0;rcb<elems.length;rcb++){ //using rcb so it doesn't collide with any "i's" in the other js
                  if(elems[rcb].type == "checkbox" && elems[rcb].checked){
                        ok = true
                  alert("You must check at least one box.")
      function subscribe(projectID,folderID,fileID){
            launchWindow("Subscribe.asp?SessionID=07Og9oI%&ProjectID=" + projectID + "&FolderID=" + folderID + "&FileID=" + fileID,500,350)
      function launchWindow(url,width,height){
            var theLaunchedWindow =,"%23"),"","scrollbars,resizable,width=" + width + ",height=" + height)
Question by:SweatCoder
    LVL 75

    Expert Comment

    by:Michel Plungjan
    How about
      <SCRIPT LANGUAGE="JavaScript" SRC="./Integration/TranslationWYSIWYG/common.js"></SCRIPT>
      <SCRIPT LANGUAGE="JavaScript" SRC="JavaScripts.js"></SCRIPT>

    No attachEvent or document.onmouseover or something?
    LVL 11

    Author Comment

    I did find one attachEvent in common.js, but even when I removed the linkage to that file, the problem still occurred.
    LVL 75

    Expert Comment

    by:Michel Plungjan
    Impossible to help when we do not have the complete files.
    is also adding onmouseovers I am sure
    LVL 11

    Author Comment

    LVL 11

    Author Comment

    I found the problem. I had a css file that was doing dynamic stuff and got into an infinite loop in the JS.
    LVL 1

    Accepted Solution

    Closed, 500 points refunded.
    Special Ops Mod

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    This article shows how to read a single webpage's HTML into a string variable, and it also shows how to automate a sequence so you can read and process a list of webpages.  I was tasked with reading and parsing a series of webpages to collect some s…
    Article by: DanRollins
    This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (, we'll extend the program by adding a depth-…
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now