Help with Javascript?


  1. Posts : 21
    Windows 7 Ultimate x64
       #1

    Help with Javascript?


    Hi guys,

    I'm working on a site for a school project, and I got a scrolling sidebar using some Javascript I borrowed from somewhere. The thing is, it scrolls horizontally as well as vertically. I have no idea how to code Javascript and was wondering if any of the whizzes on here could help?

    Javascript File
    CSS File

    Thanks in advance,
    TheGoogler
      My Computer


  2. Posts : 3,322
    Windows 8.1 Pro x64
       #2

    I had a quick look at the JS file. You just need to delete everything with a reference to X which would be for side scrolling, so like you won't need calculateCornerX function, for example, or in the computeShifts function, you don't need the block of code about shiftX. You can comment out, which would be better than deleting in case you make a mistake, by using // before a line, or wrap /* */ around blocks of code for it to be ignored.
      My Computer


  3. Posts : 21
    Windows 7 Ultimate x64
    Thread Starter
       #3

    Everlong said:
    I had a quick look at the JS file. You just need to delete everything with a reference to X which would be for side scrolling, so like you won't need calculateCornerX function, for example, or in the computeShifts function, you don't need the block of code about shiftX. You can comment out, which would be better than deleting in case you make a mistake, by using // before a line, or wrap /* */ around blocks of code for it to be ignored.
    Ok, thanks. I guess it's better for me to do it myself anyway, always learning

    TheGoogler
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 04:35.
Find Us