From: Robert R. <rra...@ya...> - 2000-11-07 22:07:04
|
> I'm trying to get a layer to automatically center on the page > irrespective of the resolution. Anyone have some suggestions on the best > lines of code to achieve that? Try something like this: DynAPI.onLoad = function() { somelyr = new DynLayer() somelyr.setSize(100,100) somelyr.moveTo(this.document.getWidth()-somelyr.w/2,this.document.getHeight()-somelyr.h/2) } \\Robert -- rra...@ya... |