What is a "layer"?
If you have a long page, with content divided up by use of anchor tags, you can navigate the page to a specific anchor with the URL syntax:
www.domain.com/page.html#anchorName
tgreer
Made Her Cry
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
Nice work, I like it.
However there is one thing you may consider and that is colour of your fonts because if any image layer displayed the text in front of it is usually unreadable.
(Just suggestion, nothing serious) Once more well done.
peter_budo
Code tags enforcer
15,433 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 901
"Layer" is an outmoded Netscape term. I'm very fluent in DHTML. A "div" element is just that - a div element. Referring to it as a "layer" is bound to cause confusion. That's why I had to ask you want YOU meant by "layer".
Visibility of any particular element, including div elements, can be set with the appropriate CSS style applied: visibility: hidden, or visibility: visible.
tgreer
Made Her Cry
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
My point was simply, if you're posting a technical question in a web development forum, you have to use terminology that web developers use. The term "layer" means lots of things in lots of contexts. In the context of HTML development, "layer" was a proprietary element Netscape introduced, which was deprecated several years ago (considerably more than 5 minutes).
If you want to programmaticaly set the visibility of div elements, then it would make the most sense to ask "how do I set the visibility of a div element". People wanting to ask a similar question would be more likely to find this thread in the future, a key benefit to using a forum site.
Your originating link would contain a querystring:
link
The myDestination page would have an onload script which parsed the querystring, using location.search, to set the myDiv2 style visibility to "visible".
document.getElementById("myDiv2").style.visibility = visible;
tgreer
Made Her Cry
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
I'm referingthe to www.sharplogic.com , don't know if is your.
But yeah on that site, welcome page, when you roll over main menu, images are displayed and text in front of it (of image) is not readable.
peter_budo
Code tags enforcer
15,433 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 901
tgreer
Made Her Cry
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37