I''m working on a prototype/scriptaculous script which triggers a
drawer like effect, which goes off and on the page.
A couple of issues I am having. The first issue is when I use the
Event.observe method to trigger the element to slide in using the
mouseover event.
page in question:
http://alchemigroup.s415.sureserver.com/projects/past_projects/3_warwick_square.html
The code;
var slideDrawer = Class.create();
slideDrawer.prototype = {
initialize: function(drawerId) {
this.drawer = $(drawerId);
this.handle = $(''handle'');
//$(this.drawer).observe(''mouseout'',
this.slideOut.bindAsEventListener(this));
$(''boxes'').observe(''mouseover'',
this.slideOut.bindAsEventListener(this));
$(this.handle).observe(''mouseover'',
this.slideIn.bindAsEventListener(this));
this.slideOut();
},
slideIn: function() {
//alert("hello");
new Effect.Move (this.drawer,{ x: 0, y: 0, mode:
''absolute''});
},
slideOut: function() {
new Effect.Move (this.drawer,{ x: -200, y: 0, mode:
''absolute''});
}
}
When I mouseover the ''boxes'' element it moves in properly,
except it
keeps moving back in when I move the mouse.
Any ideas what is happening here?
The next issue is IE 6 & 7 not responding to my mouseover observe
method at all.
Thanks for any help on this.
Rich
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---