StatCounter User Forum  
StatCounter Free web tracker and counter

Go Back   StatCounter User Forum > Webmaster > Lounge (non-StatCounter related topics here!)

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 12-05-2006, 06:45 AM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,172
Default Need a bit of help please

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.
  #2  
Old 12-05-2006, 01:57 PM
Sharron's Avatar
Sharron Sharron is offline
Moderator
 
Join Date: Feb 2005
Posts: 7,184
Default

I posted your question on the new forum at WSG. Lets see what kind of answers you get!
__________________
Don't argue with an idiot; people watching may not be able to tell the difference.
  #3  
Old 12-05-2006, 10:34 PM
Sharron's Avatar
Sharron Sharron is offline
Moderator
 
Join Date: Feb 2005
Posts: 7,184
Default

getting some responses to your question on the other forum,
__________________
Don't argue with an idiot; people watching may not be able to tell the difference.
  #4  
Old 12-05-2006, 11:33 PM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,172
Default

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  
Old 12-05-2006, 11:42 PM
jukcoder jukcoder is offline
Member
 
Join Date: Oct 2006
Location: Birmingham,UK
Posts: 246
Default

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  
Old 12-06-2006, 12:24 AM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,172
Default

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  
Old 12-06-2006, 12:36 AM
Sharron's Avatar
Sharron Sharron is offline
Moderator
 
Join Date: Feb 2005
Posts: 7,184
Default

Quote:
Originally Posted by chrisooc
Well it worked with a javascript - 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
well then well worth the asking! really there are some really smart folks over there!
__________________
Don't argue with an idiot; people watching may not be able to tell the difference.
  #8  
Old 12-06-2006, 12:39 AM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,172
Default

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.
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:17 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.