sandeep_akhare Posted September 17, 2007 Share Posted September 17, 2007 Hi All I have created a menu that should float as user scroll the browser and its position should be left top How to get the position fir this ? Link to comment Share on other sites More sharing options...
george Posted September 17, 2007 Share Posted September 17, 2007 I have found that methods like this, intended to keep the header and/or horizontal menu on top, tend render poorly, because as you scroll down the page, the header and/or menu have to keep readjusting themselves for the new 'top', so it looks jittery to the end user. PS, I don't work here. george Link to comment Share on other sites More sharing options...
PrateekSaxena Posted September 17, 2007 Share Posted September 17, 2007 You can either read about the screenX and screenY properties of the window on the event of click on http://www.quirksmode.org/js/events_properties.htmlOr if you are using prototype.js, then you can also use - Event.pointerX(event) -> NumberEvent.pointerY(event) -> Number Returns the absolute vertical and horizontal position for a mouse event.stop Source : http://www.prototypejs.org/api/event Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.