Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Layers - advice 2

Status
Not open for further replies.

JennyW

Technical User
Mar 1, 2001
323
0
0
CA
Hiee,

I use Layers to create my webpages.
What are the advantages and disadvantages to using layers?
Does one outweigh the other?

Thanks,
Jenny
 
Hi there,

The reason if you use layers or not, depends on the use of your website. If you want to make a drop-down-menu with layers, it is a good reason. But if you want to use layers for making a kind of slideshow with 50 pages, you'd be better of with a database.

So my answer is, it depends of the use. I hope I could answer you're question correctly.

<Mr. Developer/>
 
Do you mean the evil <layer> tag? Or just an absolutely positioned element. You should remove <layer> from your vocabulary, as well as document.layers.layername... jared@eae.net -
 
Hi boys,

Yeah, I mean the layer tag (at least that's what they're called in Dreamweaver 2.0).
I have a website with about 50 pages or so. I use they following layer format...

<div id=&quot;Layer18&quot; style=&quot;position:absolute; left:517px; top:52px; width:7px; height:8px; z-index:148&quot;><a href=&quot;imore.htm&quot;><img src=&quot;menu%20-%20drop%20ce_opt.gif&quot; width=&quot;70&quot; height=&quot;12&quot; border=&quot;0&quot;></a></div>

jaredn,
Can you explain what you wrote? I'm not too clear on it.

Thanks,
Jenny
 
Hi Jenny,

That is not a layer tag, that's just setting the id to DIV tag. layer tag is associate with document.layers which is only supported by Netscape and document.all is IE's version of Layers.

Here is the article that about layers and all

Here is a workaround to use both ways so layers will work for netscape and all work on ie.

u can use document.all.style

Thanks,
Hui Emagine Solutions, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top