Page 1 of 1

a href="#" loads index page - how turn it off?

Posted: Thu May 03, 2007 2:53 pm
by lone
I´m using the new version 1.0.6.

Hi - I am working on a javascript image gallery, with the javascript code placed directly into the content area, and would like to use the '#' in
c
as an easy way to get the pointer turned into a hand....

The javascript function is hide/show layers on click, and what I would like to happen is:
I want the curser turned into a hand, and to load a certain layer on click.
For some reason this loads the index page of the site and I´m whisked away to the index page... :)

Is there some way to turn this off?

regards, Lone

Re: a href="#" loads index page - how turn it off?

Posted: Mon May 07, 2007 10:59 am
by rtkd
Link


var doSomeThing = function () { alert('Hello World'); }

Re: a href="#" loads index page - how turn it off?

Posted: Mon May 07, 2007 6:27 pm
by KO
You can do the hand with css by {cursor:pointer;} for the element style.

Re: a href="#" loads index page - how turn it off?

Posted: Mon May 07, 2007 7:09 pm
by lone
Hi - thank you for your replies. I got the result I wanted with: <a style="cursor:pointer" ...................etc.
regards, Lone