![]() |
| Home | Demo | Services | Features | Help | User Forum | Blog | About | |
|
#1
|
||||
|
||||
|
I have a page with many named anchors like:
<a name="item1" id="item1">Item1</a><br /> <a name="item2" id="item2">Item2</a><br /> .. .. <a name="item10" id="item10">Item10</a><br /> When I click on links to those named achors I would like something to tell the user which one it is, because if they are at the bottom of the page you can't actually see which one it is, only when there is still more that screenfull after the named anchor will it be at the top of the screen. Any way to have it get highlighted or change color, maybe with css or javascript? No php is possible for this site. Thanks for any tips.
__________________
Christina >>Forum Moderator<< Please do not PM me for support. The forum is here for that. Last edited by webado; 12-05-2006 at 06:47 AM. |
|
#4
|
||||
|
||||
|
Thanks Sharron. I was trying the script mentioned but it does nothing for me as far as I can tell.
Or maybe I'm having a senior moment and I'm using my named anchors all wrong......
__________________
Christina >>Forum Moderator<< Please do not PM me for support. The forum is here for that. |
|
#5
|
|||
|
|||
|
The best option I know is to use a list inside a div:
such as: .listpad { margin-left:0; width:200px; border-bottom:1px solid #FFF; padding:0; } .listpad UL { list-style-type:none; text-align:left; width:270px; float:left; border-width:0; margin:0; padding:0; } .listpad UL LI { width:280px; } .listpad UL LI A { line-height:1em; font-weight:400; border-right-style:none; letter-spacing:1px; text-decoration:none; voice-family:inherit; margin:0; padding:0; } .listpad UL LI A:active { color:#0c0; } and then use the div <div class="listpad"> <ul> <LI><a href="#">link1</a> <LI><a href="#">link2</a> <LI><a href="#">link3</a> </ul> </div> Last edited by jukcoder; 12-06-2006 at 09:34 AM. |
|
#6
|
||||
|
||||
|
Well it worked with a javascript from http://loadaveragezero.com/hnav/sitemap.php (Yellowfade.js) - not tinkering with it any more - but thanks.
Incidentally I am using a list anyway. But getting the item highlighted was another kettle of fish. And thanks Sharron for taking up the quest on my behalf. See, you got me to sign up there too
__________________
Christina >>Forum Moderator<< Please do not PM me for support. The forum is here for that. Last edited by webado; 12-06-2006 at 12:37 AM. |
|
#7
|
||||
|
||||
|
Quote:
__________________
Don't argue with an idiot; people watching may not be able to tell the difference. |
|
#8
|
||||
|
||||
|
Yes indeed.
Now if I could just get the thing to stay highlighted too
__________________
Christina >>Forum Moderator<< Please do not PM me for support. The forum is here for that. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|