Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Help with Javascript?

22 Nov 2010   #1

Windows 7 Ultimate x64
 
 
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 System SpecsSystem Spec
22 Nov 2010   #2

Windows 8.1 Professional x64
 
 

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 System SpecsSystem Spec
28 Nov 2010   #3

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by Everlong View Post
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 System SpecsSystem Spec
Reply

Thread Tools



Similar help and support threads for2: Help with Javascript?
Thread Forum
Javascript virus? System Security
IE9 - Problem with javascript Browsers & Mail
JavaScript help... Chillout Room
Javascript error Browsers & Mail
javascript Chillout Room
JavaScript Chillout Room
Javascript error? BSOD Help and Support

Our Sites

Site Links

About Us

Find 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 07:44 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33