View Full Version : <a href="#... doesn't work anymore

09-07-2011, 06:39 PM
I've made some little changes to my coding, and since then my anchor links ain't working any more.

Basicly my coding looks like this:

<div id="scrollpanel"><div id="text-block"><div id="text-block-content" class="textcolumn">
<div id="bio" class="roundpic">
some text here


<div id="slide"><div id="slider" onmousedown="tvl_sb_grab(this);"></div><div id="slidebar"></div></div>

<script type="text/javascript" language="javascript">
tvl_sb_init("text-block", "text-block-content", "slider", "slidebar");


And I call this anchor with:

<li><a href="#bio">Bio</a></li>

For the full coding, you can take a look at: http://gpf.net84.net/dj/bio.html

I really hope someone can explain what I am doing wrong here, I need those anchors working again.

09-07-2011, 08:31 PM
When your page loads, all of your divs are set to display: none.

So when you call the link to the anchor, it "goes" there, but it doesn't change the display to block. You'd need to do that with jquery (or javascript).