Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    May 2009
    Posts
    48
    Thanks
    0
    Thanked 0 Times in 0 Posts

    X axis working, Y axis not...

    This is the code:
    Code:
    function observerover(i){
    	Orb[i].Img.observe('mouseover', function(event){
    		Orb[i].Static=1;
    		this.style.zIndex=5000;
    		this.style.left=event.pointerX(this)-150+"px";
    		this.style.width=300+'px';
    		this.style.top=event.pointerY(this)-150+"px";
    		this.style.height=300+'px';
    		while($('panelMain').down()){
    			$('panelMain').down().remove();
    		}
    		$('panelMain').insert(Orb[i].Panel);
    	});
    }
    This is the site: http://orbzorbz.com

    The goal is to center the image on the cusor on mouseover.
    X is working Y is not... Why not? (pardon the pun, had to do it)
    Last edited by Sleeping_Troll; 07-22-2009 at 01:57 PM.

  • #2
    Senior Coder Spudhead's Avatar
    Join Date
    Jun 2002
    Location
    London, UK
    Posts
    1,856
    Thanks
    8
    Thanked 110 Times in 109 Posts
    Is this those floating images that are zooming about? It seems to be working in my FF 3.5.1

  • #3
    Regular Coder ohgod's Avatar
    Join Date
    Jun 2008
    Location
    Ohio
    Posts
    579
    Thanks
    6
    Thanked 69 Times in 69 Posts
    works in IE 7 too.


  •  

    Posting Permissions

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