So i am still having issues with this. but now at least have an online version that i can show you..
http://dev.morrisonsports.com.au/products/zipvit-sport#tabs-3
as you can see.. when you use the # tag to link to any but the first tab (because its so long) the user ends up at the bottom of the page.. rather than at where the tab titles are..
i have given up on what i was trying to do before (getting it to link into the tab to content there) and decided if i can at least get it to link to the tab and stay at the top of the tabs (where the tab titles are) ill be happy..
I am really hoping the solution doesnt lie in $_POST or $_GET data as using forms to开发者_开发百科 do this will probably not work so nicely with the JS degradation..
Thank you in advance
ok so upon posting my comment to themerlinproject above.. it occurred to me that the javascript was looking at the #tab-3 anchor as an indicator to show tab-3 (which is a
<div>
not an
<a>
)
but the browser looks for
<a name="tab-3">
independent of the javascript.. and failing an a seems to be looking for the div.. so i just put the following code.. ABOVE the tab menu section
<a name="tabs-1"></a>
<a name="tabs-2"></a>
<a name="tabs-3"></a>
<a name="tabs-4"></a>
<a name="tabs-5"></a>
and now the browser links to the < a>'s and the javascript links to the divs :D
Thanks for the flash though themerlinproject
精彩评论