banner_jpg
Username/Email: Password:
Forums

This is Awesome

Pages (5) [ 1 2 3 4 5 ] Next
You must be registered to post!
From User
Message Body
Post #491832 - Reply to (#491820) by Casey D. Geek
Nicotine addict
Member

8:24 am, Aug 25 2011
Posts: 183


Quote from Casey D. Geek
Is making the browser autoscroll using JavaScript really that hard :?


No, it isn't. Depends on how "complicated" you want it to be, but it shouldn't take more than a few lines of code (maybe a function or two).

Nice find OP, looks interesting.


________________
"But why?"
"Because I can."

"OMFG, DON'T STAND IN THE FIRE!!!"
Post #491837 - Reply to (#491832) by Nidjo
user avatar
Meh...
Member

8:32 am, Aug 25 2011
Posts: 937


Quote from Nidjo
Quote from Casey D. Geek
Is making the browser autoscroll using JavaScript really that hard :?


No, it isn't. Depends on how "complicated" you want it to be, but it shouldn't take more than a few lines of code (maybe a function or two).

Nice find OP, looks interesting.


Isn't that what happens on this page? The browser autoscrolls from one point in the image to a second point in the image at a set speed, something similar to how gifs work.

________________
There are times when you will miss what you never had. I wonder how you will find what you so desperately need.
Post #491843
Nicotine addict
Member

9:19 am, Aug 25 2011
Posts: 183


Yep, something like that. If the images have the same height (at least the "moving" ones) you can just call a function like window.ScrollBy(x,y) which will scroll x pixels horizontally and y pixels vertically. I'm no JS expert, just played around with the function a few times for fun but the effect is similar.

________________
"But why?"
"Because I can."

"OMFG, DON'T STAND IN THE FIRE!!!"
Post #491847
user avatar
Member

9:49 am, Aug 25 2011
Posts: 112


Damn near wet myself shit lol.

________________
<!--img--><img src='http://i.imgur.com/2YXyVoh.png' border='0' alt='User Posted Image'><!--img_end-->
user avatar
Member

9:50 am, Aug 25 2011
Posts: 138


Lol, I thought that my computer was being slow or something. Then I thought there was an advertisement in the middle of the page? (I'm stupid, I apologise.)

But yeah, it would be cool to see a translated webcomic that has animation xD

Post #491849 - Reply to (#491843) by Nidjo
user avatar
Meh...
Member

9:55 am, Aug 25 2011
Posts: 937


Quote from Nidjo
Yep, something like that. If the images have the same height (at least the "moving" ones) you can just call a function like window.ScrollBy(x,y) which will scroll x pixels horizontally and y pixels vertically. I'm no JS expert, just played around with the function a few times for fun but the effect is similar.


Thanks for explaining that one smile

________________
There are times when you will miss what you never had. I wonder how you will find what you so desperately need.
Post #491851
user avatar
Member

9:59 am, Aug 25 2011
Posts: 67


I didn't think JS would have a function to scroll (but then again it can make the window jump around the screen and all that malicious crap, so why am I surprised?) I'm not a web developer, so I don't know these things. But what does strike me as odd is after I actually make a little dig at how nerdy I am, there's actual discussion on how to do it. This place is awesome.

________________
User Posted Image
Post #491853
user avatar
Yaaawn
Member

10:19 am, Aug 25 2011
Posts: 746


Haha, usually I'm pretty immune to getting scared, but this made me jump a bit

________________
User Posted Image
Post #491857 - Reply to (#491851) by 166291
user avatar
Meh...
Member

10:45 am, Aug 25 2011
Posts: 937


Quote from 166291
I didn't think JS would have a function to scroll (but then again it can make the window jump around the screen and all that malicious crap, so why am I surprised?) I'm not a web developer, so I don't know these things. But what does strike me as odd is after I actually make a little dig at how nerdy I am, there's actual discussion on how to do it. This place is awesome.


Hey, nerds are everywhere. I'm one too, though I am pretty much a noob.

________________
There are times when you will miss what you never had. I wonder how you will find what you so desperately need.
Post #491861 - Reply to (#491857) by Casey D. Geek
user avatar
Member

10:58 am, Aug 25 2011
Posts: 67


Quote from Casey D. Geek
Hey, nerds are everywhere. I'm one too, though I am pretty much a noob.


Ah. I just hang around the Unix and C++ crowds.

________________
User Posted Image
Post #491862 - Reply to (#491843) by Nidjo
user avatar
his and her sonnet
Member

10:58 am, Aug 25 2011
Posts: 1127


Quote from Nidjo
Yep, something like that. If the images have the same height (at least the "moving" ones) you can just call a function like window.ScrollBy(x,y) which will scroll x pixels horizontally and y pixels vertically. I'm no JS expert, just played around with the function a few times for fun but the effect is similar.

as far as i know...there is a javascript autoscroll code but it would only allow you to scroll to the end or beginning of the page
and if you try to go back up it would keep scrolling down..i think...
i used to play around with html and js to make webpages and i tried getting the autoscroll thing but it was a drag

Post #491863 - Reply to (#491857) by Casey D. Geek
Nicotine addict
Member

10:58 am, Aug 25 2011
Posts: 183


Quote from Casey D. Geek
Quote from 166291
I didn't think JS would have a function to scroll (but then again it can make the window jump around the screen and all that malicious crap, so why am I surprised?) I'm not a web developer, so I don't know these things. But what does strike me as odd is after I actually make a little dig at how nerdy I am, there's actual discussion on how to do it. This place is awesome.


Hey, nerds are everywhere. I'm one too, though I am pretty much a noob.


I'll stick with professional deformation (although nerd is also OK) bigrazz You're welcome for the explanation, if you have some other questions you can ask, but through PMs cause I went way OT with it. wink

EDIT: @sarah You'd be amazed what you can actually do with JS, my example was the most basic just so I could explain how it works. I'm sure they use a much more complicated script for that because it's never as easy as it seems when we're talking about programming. wink

Last edited by Nidjo at 12:24 am, Aug 26 2011

________________
"But why?"
"Because I can."

"OMFG, DON'T STAND IN THE FIRE!!!"
Post #491871 - Reply to (#491863) by Nidjo
user avatar
Member

11:14 am, Aug 25 2011
Posts: 67


Quote from Nidjo
I'll stick with professional deformation (although nerd is also OK) bigrazz


010001111?

Quote from Nidjo
@sarah You'd be amazed what you can actually do with JS, my example was the most basic just so I could explain how it works. I'm sure they use a much more complicated script for that because it's never as easy as it seems when we're talking about programming. wink


Yeah, JavaScript does a lot of things it shouldn't be able to (in my humblest of opinions).

________________
User Posted Image
Post #491880
user avatar
Viva la anarchy
Member

12:05 pm, Aug 25 2011
Posts: 111


oooosexi sexi
oooo
sexi....
..................oooo........................................................................................................I cummed

roll eyes

________________
User Posted Image
User Posted ImageR[̲̅ə̲̅٨̲̅٥ ̲̅٦̲̅]ution
Post #491881
user avatar
Member

12:13 pm, Aug 25 2011
Posts: 43


The creaking noise make it worse! Damn almost got a heart attack lol.

________________
User Posted Image
Nuff said.
Pages (5) [ 1 2 3 4 5 ] Next
You must be registered to post!