1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How can I get this to work in a template?

Discussion in 'XenForo Development Discussions' started by Wuebit, Apr 11, 2011.

  1. Wuebit

    Wuebit Well-Known Member

            <a href="#" onclick="moveToNextPage(); return false;"><img id="display" src="js/VKmanga/spinner.gif"></a>
    Everytime it just takes me back to the xenforo root page :mad:
    Am trying to get it to "work and stay" on the page its coded for


    Many Thanks
  2. Wuebit

    Wuebit Well-Known Member

    Done it anyone else wanting to know this is what I used

  3. ragtek

    ragtek Guest

    You don't need the link;)

    Add the onclick event to the img and remove the a tag.
    Vodkaholic likes this.
  4. Wuebit

    Wuebit Well-Known Member

    Thanks man will this way stop the page jumping to the top everytime it's clicked? or is that something else lol

    You can see here what I mean (something ive been working on)
  5. ragtek

    ragtek Guest

    yes, that's because of the #
  6. Wuebit

    Wuebit Well-Known Member

    I didn't use # because that just send me to the home page everytime it was clicked :C

Share This Page