Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 23, 2012, 04:31:26 PM

Pages: [1]   Go Down
  Print  
Author Topic: Some help with a script...  (Read 20327 times)
Radeon
Blueglue.us Webmaster
Galactic Royalty
*****
Offline Offline

Posts: 253



WWW
« on: February 25, 2011, 06:02:57 PM »

I'm horrible when it comes to javascript so i'm stuck, if anyone could help me out i would really appreciate it!

Here is the thing i have downloaded a scroll script i guess you could call it? Here is the page http://javascript.internet.com/text-effects/scrolling-text-on-mouseover.html

And the scroller script comes with an ID so, how do you separet that first script that makes scroller1 move and make more of the same. But without creating anymore Javascripts of course...
Logged

Excuses and woman are equaly tiring...
Radeon
Blueglue.us Webmaster
Galactic Royalty
*****
Offline Offline

Posts: 253



WWW
« Reply #1 on: February 27, 2011, 01:17:45 PM »

Here is the page i work on so you could see what i mean. http://blueglue.us/Testpage0987.html And here is the original script from the file that i need expanded from one to twelve scripts running...

Code:
// JavaScript Document

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: voidvector :: http://www.webdeveloper.com/forum/showthread.php?t=201460
*/

var UpdateInterval = 20;
var PixelPerInterval = 2;
var scorllerInterval;

function start_scroll_right() {
    scorllerInterval = setInterval(scroll_right, UpdateInterval);
}

function scroll_right() {
    document.getElementById('scroller1').scrollLeft -= PixelPerInterval;

}

function start_scroll_left() {
    scorllerInterval = setInterval(scroll_left, UpdateInterval);
}

function scroll_left() {
    document.getElementById('scroller1').scrollLeft += PixelPerInterval;

}

function stop_scrolling() {
    clearInterval(scorllerInterval);
}

If it's possible i would really appreciate any help, Thank you!  Help
Logged

Excuses and woman are equaly tiring...
Pages: [1]   Go Up
  Print  
 
Jump to: