hwg-techniques archives | Jun 2000 | new search | results | previous | next |
Re: Overlapping Layersby Steve Deemer <jasminpuppy(at)yahoo.com> |
|
Here is a copy of a test I just put together you can play with.. it deals with positioning and hidden values.. Shows you examples of mouse over as well... Have fun... E-mail any questions you may have.... <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <STYLE TYPE="text/css"> <!-- BODY { margin-top:0; margin-left:0; margin-right:0; } .one { position: relative; top: -5; color: #000000; font-size: 8pt; font-family: verdana; font-weight: bold; letter-spacing: -1pt; text-decoration: none; } --> </STYLE> <Script language=Javasrcipt> Function doit(){ layers.imagething.visibility=inherit; } Function stopit(){ layers.imagething.visibility=hide } </script> </head> <body bgcolor="#FFFFFF"> <layer name=layer1 left=200 top=50><h3>test this layer 1</h3> </layer> <layer name=layer2 left=200 top=50 visibility='hide'><h3>Test this layer named 2</h3></layer> <layer Name=imagething Top=250 left=400 visibility='hide'><h3>This should only <BR>be seen if you mouse over??</h3></layer> Here are a few examples... Clicking the buttons turns on the layers or hides them...<BR> There are three types of hidden values: <LI>Hidden <LI>Show <LI>Inherit <BR> the first two are self explained but the inherit one means opposite <form name=layerform"> <b>Layer 1:</B><br> <input type="button" value="Hide" Onclick="layers.layer1.visibility='hide'"> <input type="button" Value="show" Onclick="layers.layer1.visibility='show'"><p> <B> Layer 2:</b><br> <input type="button" value="Hide" Onclick="layers.layer2.visibility='hide'"> <input type="button" Value="Inherit(Show)" Onclick="layers.layer2.visibility='inherit'"><BR> </form> <p> </p> <BR> <p><a href=# onmouseover="layers.imagething.visibility='inherit'" onmouseout="layers.imagething.visibility='hide'"><font class=one>Mouse over ME<BR>this is a test</font></a></p> </body> </html> --- "Franklin, Douglass" <Douglass.Franklin(at)ssa.gov> wrote: > Would someone help me with overlapping layers using > CSS? If I have to use > DHTML, that's fine too. > > - Doug > > Doug Franklin > Social Security Administration > Office of International Operations > Module 1 > Benefit Authorizer > Site LAN Coordinator > Site Training Coordinator > (410) 966-3735 > > __________________________________________________ Do You Yahoo!? Yahoo! Photos -- now, 100 FREE prints! http://photos.yahoo.com
HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA