Web Hosting Talk







View Full Version : Neat Javascript scrolling here...


progex
12-12-2002, 09:21 PM
Thought this was neat. ;)

http://web.0sil8.com/episodes/98/07/02/index.html

RDX1
12-12-2002, 09:37 PM
Show me the souce code!

progex
12-12-2002, 09:45 PM
Show me the souce code!

lol... C'mon now.... View > Source.

I'm guessing you tried to 'right click'... Yep... I probably right-clicked about 20 times all around the page. :o

ATST
12-12-2002, 10:16 PM
// speed affects the rate of scroll bar oscillations, higher = faster
// this variable will not affect execution speed.
var speed=100;

// refresh affects the time between loop interations, higher = slower
// making this higher will lessen the demand on the client cpu.
var refresh = 1;

// make sure the browser doesn't suck proverbial ass
function testbrowser() {
if (document.images){
oscillate();
}
}

// make things happen; do stuff.
var dir=y=0;
function oscillate() {
you didn't think I would post the entire code did you?
}

Khaless
12-12-2002, 10:18 PM
lol thats the stupidest thing iv seen all day :P.. i like it :) :P lol

theqase
12-12-2002, 10:20 PM
wow... someone must have been bored... it is pretty n33t