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:
> H
You're going to have to read up more on javascript. Mozilla has great
online documentation at http://developer.mozilla.org/en/docs/JavaScript
, particularly the core guide for you. Also there are some great
books out there, O'Reilly's definitive guide can be a little dry at
times but does more t
Thank you again. That certainly helped. But I still don't quite
understand what to do with the event handler. I gave the links ids of
"cross-link1", "cross-link2", etc. and tried this:
$('#cross-link1').click(function() {
location.reload(true)
});
but it doesn't really do anything.
Thanks again
> I the if/else statement doesn't seem to be working.
You're if statement is using the equals sign as an assignment operator
(=) instead of comparison which is double equals (==).
> Also, it only
> reads the current hash on a manual refresh of the page. Here is the
> link if helps any:http://www.
Thanks! I think that gets me started in the right direction. However,
I am still having some issues. Here is what I have so far:
var current =
(document.location.toString().split('#')[1])
if (current = "1") {document.write( "Title
1Body text." ); }
alert(document.location.toString().split('#')[1]) will get you the
hash. From there an if statement or a switch/case would serve you.
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 shou
6 matches
Mail list logo