Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Cross Browser marquee II - causes unusually high CPU usage in firefox

  1. #11
    Join Date
    Jul 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Okay the above code breaks out of the iFrame on every browser except IE. Anyone know how to break out of an iFrame in IE?

  2. #12
    Join Date
    Jul 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Revised with the additional hacks needed for IE:
    Code:
    function initializemarquee(){
    	var ah = document.getElementsByTagName("a");
    	for (var b=0;b<ah.length;b++) {
    		ah[b].setAttribute("onclick","top.location = this.href")
    		if (ah[b].attachEvent) { ah[b].attachEvent("onclick", breakout) }
    	}
    	cross_marquee=document.getElementById("vmarquee");
    	cross_marquee.style.top=0;
    	setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll)
    }
    function breakout() {
    	top.location = window.event.srcElement.href
    }
    This is just altering part of the code that is in https://bug500410.bugzilla.mozilla.o....cgi?id=385507

    Let me know if you need further help.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •