Closed Thread Icon

Topic awaiting preservation: layers - today (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=8810" title="Pages that link to Topic awaiting preservation: layers - today (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: layers - today <span class="small">(Page 1 of 1)</span>\

 
lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 08-11-2003 15:06

hello,

it has been a long time since i didn't code javascript or cross-browser dhtml code.

can someone give me the cross-browser code that:

1)shows/hides a layer
2)gets the position of a relative (not absolute positioned element)
3)get/set coords of an absolute positioned element

thanks!
elias

rickindy
Nervous Wreck (II) Inmate

From: Indianapolis, In USA
Insane since: Jan 2002

posted posted 08-11-2003 15:26

Here's a very compact library that will do all of that in 1k
http://www.dithered.com/experiments/1kdhtml/



Few problems in life can't be solved by chocolate

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 08-12-2003 03:02

When it comes to modern web development, thinking in terms of "layers" is nearly suicide. Your document is a complex tree of elements which interact with each other and are displayed relative to how their siblings are displayed. Make use of this. Code your document so that its structure represents the data it contains - NOT what it looks like.

From there, you can use CSS to set the initial appearance of the page, and the DOM to dynamically change its appearance. For more information, I suggest you read http://www.slimeland.com/content/articles/jsenhance/ .

Anne Marie
Nervous Wreck (II) Inmate

From: United Kingdom
Insane since: Aug 2003

posted posted 08-12-2003 03:15

A Very Informative site you have there Slime ....I gained some valuable insite there myself. Thanks for the post.

You dont happen to be planning a guestbook section in the near future do you?


Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 08-12-2003 16:52

A guestbook? Blah, no way =)

« BackwardsOnwards »

Show Forum Drop Down Menu