Windows 7 Forums Search
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7 - Help with Javascript?


 
11-22-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
11-22-2010   #2


Windows 7 Enterprise x64 Service Pack 1
 
 


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
11-28-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 Threads for: Help with Javascript?
Thread Forum
JavaScript help... Chillout Room
Javascript error Browsers & Mail
javascript Chillout Room
JavaScript Chillout Room
javascript problems Browsers & Mail


All times are GMT -5. The time now is 03:49 AM.



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
  

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