Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

BBS: Re: Jason Nugent please help. Whoops! - September 09, 1998 at 20:33:33

You are here: irt.org | BBS | Re: Jason Nugent please help. Whoops! [This BBS is closed]

Posted by Darren Perara on September 09, 1998 at 20:33:33:

In Reply to: Re: Jason Nugent please help. One last thing re:my rollovers posted by Darren Perara on September 09, 1998 at 20:29:46:

Sorry, my code didn't come through. It looks like this:

if (document.images != null) {
left0 = new Image ();left0.src = "images/left0.gif";
left1 = new Image ();left1.src = "images/left1.gif";
left2 = new Image ();left2.src = "images/left2.gif";
left3 = new Image ();left3.src = "images/left3.gif";
left4 = new Image ();left4.src = "images/left4.gif";
right0 = new Image ();right0.src = "images/right0.gif";
right1 = new Image ();right1.src = "images/right1.gif";
right2 = new Image ();right2.src = "images/right2.gif";
right3 = new Image ();right3.src = "images/right3.gif";
right4 = new Image ();right4.src = "images/right4.gif";
forw0 = new Image ();forw0.src = "images/forw0.gif";
forw1 = new Image ();forw1.src = "images/forw1.gif";
forw2 = new Image ();forw2.src = "images/forw2.gif";
forw3 = new Image ();forw3.src = "images/forw3.gif";
forw4 = new Image ();forw4.src = "images/forw4.gif";
back0 = new Image ();back0.src = "images/back0.gif";
back1 = new Image ();back1.src = "images/back1.gif";
back2 = new Image ();back2.src = "images/back2.gif";
back3 = new Image ();back3.src = "images/back3.gif";
back4 = new Image ();back4.src = "images/back4.gif";

var leftI = 0, leftInTimeout = leftOutTimeout = null, leftOutTimer = leftInTimer = false;
var rightI = 0, rightInTimeout = rightOutTimeout = null, rightOutTimer = rightInTimer = false;
var forwI = 0, forwInTimeout = forwOutTimeout = null, forwOutTimer = forwInTimer = false;
var backI = 0, backInTimeout = backOutTimeout = null, backOutTimer = backInTimer = false;
}

function fadeIn (imgName) {
if (document.images != null) {
var i = eval (imgName + 'I') + 1;
eval (imgName + 'I' + '= i');
if (eval (imgName + 'OutTimer')) clearTimeout (eval (imgName + 'OutTimeout'));
document.images[imgName].src = eval (imgName + i + '.src');
eval (imgName + 'InTimer = true');
if (i<4) eval (imgName + 'InTimeout = setTimeout (\'fadeIn ("\'+imgName+\'")\',50)');
else eval (imgName + 'InTimer = false');
}
}

function fadeOut (imgName) {
if (document.images != null) {
var i = eval (imgName + 'I') - 1;
eval (imgName + 'I' + '= i');
if (eval (imgName + 'InTimer')) clearTimeout (eval (imgName + 'InTimeout'));
document.images[imgName].src = eval (imgName + i + '.src');
eval (imgName + 'OutTimer = true');
if (i>0) eval (imgName + 'OutTimeout = setTimeout (\'fadeOut ("\'+imgName+\'")\',100)');
else eval (imgName + 'OutTimer = false');
}
}

Hope you can help,
Darren.
Follow-ups:

You are here: irt.org | BBS | Re: Jason Nugent please help. Whoops! [This BBS is closed]

©2018 Martin Webb