kendokendokendo
06-09-2005, 10:58 AM
Hello,
I'm a complete newb with ASP.NET. What I am trying to do is create the ability to have the current link someone is on highlighted in some way so that they know they are on that page. From what I understand, I would have to create a user control to tell the page to do this.
I think my situation is a little different than normal because of how the page is set up. The links in the navbar don't lead to new pages - they are jump refs leading to different locations in one page. There is also an external javascript file being called that hides all of the sections except for the one that has been chosen from the link list.
Here's my HTML setup:
<div id="hidelinks">
<a id="hlone" href="#one">One</a>
<a id="hltwo" href="#two">Two</a>
<a id="hlthree" href="#three">Three</a>
</div>
<div id="one">
<p>a;ldjfalskdjfla;jsdfl;ajsdf</p>
</div>
<div id="two">
<p>a;sdjf;laksdjfl;aksdjff</p>
</div>
<div id="three">
<p>;alksdjf;lkadjfajr</p>
The javascript file is taken from an A List Apart article called "Let Them Eat Cake." http://www.alistapart.com/articles/eatcake/
If anybody could just point me in a few right directions for where I can learn how to make the correct kind of user control, I would really appreciate it.
Thanks!
I'm a complete newb with ASP.NET. What I am trying to do is create the ability to have the current link someone is on highlighted in some way so that they know they are on that page. From what I understand, I would have to create a user control to tell the page to do this.
I think my situation is a little different than normal because of how the page is set up. The links in the navbar don't lead to new pages - they are jump refs leading to different locations in one page. There is also an external javascript file being called that hides all of the sections except for the one that has been chosen from the link list.
Here's my HTML setup:
<div id="hidelinks">
<a id="hlone" href="#one">One</a>
<a id="hltwo" href="#two">Two</a>
<a id="hlthree" href="#three">Three</a>
</div>
<div id="one">
<p>a;ldjfalskdjfla;jsdfl;ajsdf</p>
</div>
<div id="two">
<p>a;sdjf;laksdjfl;aksdjff</p>
</div>
<div id="three">
<p>;alksdjf;lkadjfajr</p>
The javascript file is taken from an A List Apart article called "Let Them Eat Cake." http://www.alistapart.com/articles/eatcake/
If anybody could just point me in a few right directions for where I can learn how to make the correct kind of user control, I would really appreciate it.
Thanks!