Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2013
    Thanked 0 Times in 0 Posts

    Scroll on click,help needed

    Hello,I made a navigation bar on which i got some buttons,when i click a button the screen automaticlay goes to a specific ID but it just teleports there,I want the screen to move to the ID not teleport there.
    Here is the coding:
    <a href="DOWNLOADURL" class="styled-button-2" onclick="javascript:window.location.href='#sportofolio'; return false;"> PORTFOLIO </a> (this one is the button)
    <img class="pseparator" id="sportofolio" src="C:\Senso2\portfolio-separator.png" alt="The image is missing or it could not be found"> (this is the image with the ID)

    Please help me,thanks in advance

  2. #2
    New Coder
    Join Date
    Jan 2011
    Thanked 9 Times in 9 Posts
    You just need a progressive scrolling script like for example http://www.scripterlative.com/files/softscroll.htm.
    Such scripts should require no code in the links themselves and yours should be removed.


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts