944,066 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
May 16th, 2005
0

How do I open a web page with several layers to a spacific layer?

Expand Post »
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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Ezju is offline Offline
10 posts
since May 2005
May 18th, 2005
0

Re: How do I open a web page with several layers to a spacific layer?

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
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Jun 12th, 2005
0

Re: How do I open a web page with several layers to a spacific layer?

Quote 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?
I found the answer. I posted it on my SharpLogic Software Blog if you want to know. http://www.sharplogic.com/blogs/ezju/ (May 25th, 2005)

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Ezju is offline Offline
10 posts
since May 2005
Jun 12th, 2005
0

Re: How do I open a web page with several layers to a spacific layer?

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Ezju is offline Offline
10 posts
since May 2005
Jun 12th, 2005
0

Re: How do I open a web page with several layers to a spacific layer?

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.
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 874
Code tags enforcer
peter_budo is offline Offline
6,659 posts
since Dec 2004
Jun 13th, 2005
0

Re: How do I open a web page with several layers to a spacific layer?

"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.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Jun 15th, 2005
0

Re: How do I open a web page with several layers to a spacific layer?

“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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Ezju is offline Offline
10 posts
since May 2005
Jun 15th, 2005
0

Re: How do I open a web page with several layers to a spacific layer?

Quote 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.
Peter,

Are you refering to something you are seeing in the site I built or just in general?

Ezju
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Ezju is offline Offline
10 posts
since May 2005
Jun 15th, 2005
0

Re: How do I open a web page with several layers to a spacific layer?

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;
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Jun 15th, 2005
0

Re: How do I open a web page with several layers to a spacific layer?

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.
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 874
Code tags enforcer
peter_budo is offline Offline
6,659 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: Need to Preload many Images (and show a wait screen)
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: Arguments of a function





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC