| | |
How do I open a web page with several layers to a spacific layer?
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Dec 2004
Posts: 1,655
Reputation:
Solved Threads: 35
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
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
•
•
Join Date: May 2005
Posts: 10
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by Ezju
I would like to open a web page with several layers on it to a specific layer depending on the link on the previous page. I know I can do this from within the same page but I would like to do this from an external page. Can I and how?
Tgreer - DHTML has enables you to use web layers via the <DIV> tag.
Thanks for any and all help. I hope this helps out others with the same need.
Ezju
•
•
Join Date: May 2005
Posts: 10
Reputation:
Solved Threads: 0
Tgreer - DHTML has enables you to use web layers via the <DIV> tag. I wanted to link from one page to another with the second page having several layers not visalbe. When you arrive to the page, I wanted the appropriate layer to become visable. see http://www.sharplogic.com
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.
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.
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
•
•
Join Date: Dec 2004
Posts: 1,655
Reputation:
Solved Threads: 35
"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.
Visibility of any particular element, including div elements, can be set with the appropriate CSS style applied: visibility: hidden, or visibility: visible.
•
•
Join Date: May 2005
Posts: 10
Reputation:
Solved Threads: 0
“layer� is a outmoded Netscape term. Silly me for using it. I’ll update my dictionary so purists who live in the “that’s so 5 minutes ago� can understand.
Yes, visibility can be sent with CSS and other ways. I posted my solution to my problem, which others have had. Can you post a solution to the same problem using “appropriate CSS style applied?� I’m not that fluent in CSS.
Yes, visibility can be sent with CSS and other ways. I posted my solution to my problem, which others have had. Can you post a solution to the same problem using “appropriate CSS style applied?� I’m not that fluent in CSS.
•
•
Join Date: May 2005
Posts: 10
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by peter_budo
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.
Are you refering to something you are seeing in the site I built or just in general?
Ezju
•
•
Join Date: Dec 2004
Posts: 1,655
Reputation:
Solved Threads: 35
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:
<a href="myDestination.html?activeDiv=myDiv2">link</a>
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;
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:
<a href="myDestination.html?activeDiv=myDiv2">link</a>
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;
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.
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.
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
![]() |
Similar Threads
- how to open web page using perl (Perl)
- How to open HTML page in a browser with specific options selected in drop-down boxes? (Perl)
- Searching my web page (PHP)
- Unable to open to the web page and very very low speed of internet. (C)
- Unable to open web page (Web Browsers)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Need to Preload many Images (and show a wait screen)
- Next Thread: Arguments of a function
| Thread Tools | Search this Thread |
acid2 ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate automatically beta box browser bug captchaformproblem checkbox close codes createrange() css cursor debugger dependent disablefirebug dom download dropdown editor element engine enter error events explorer ext file firefox form forms frameworks getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 ie8 iframe internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jsp jump listbox maps masterpage math media menu microsoft mp4 object onmouseoutdivproblem onreadystatechange paypal pdf php player position programming progressbar prototype redirect regex runtime safari scale scriptlets search security select size software sql text textarea unicode w3c window windowofwords windowsxp wysiwyg \n






