first of all .. use document "document.location.hash" instead of
"document.location.toString().split('#')[1]".

secondly, you might want to take a look to a plugin I made awhile ago
to handle anchors:

http://haineault.com/blog/37/

cheers

On Jul 8, 8:54 am, mitchel <[EMAIL PROTECTED]> wrote:
> Hello.
>
> Admittedly, I know very little about jQuery or javascript in general
> but it seems like it should be able to do what I need it to do fairly
> easily.
>
> I am trying to create a div on a page which would display different
> content based on the hash in the url. Is there a way to create several
> hidden divs on a page with the content I want and have a class that
> makes one visible based on the current hash in the URL? Any ideas on
> how would I do this?
>
> Thanks.

Reply via email to