-1
I created a Function to generate display effect for a certain time, the images are loaded only in the page load, then Uncaught ReferenceError: lightning_one is not defined
as shown below:
the functions are those:
function lightning_one(t) {
$('#container #lightning1').fadeIn(250).fadeOut(250);
setTimeout('lightning_one()', t);
}
function lightning_two(t) {
$('#container #lightning2').fadeIn('fast').fadeOut('fast');
setTimeout('lightning_two()', t);
}
function lightning_three(t) {
$('#container #lightning3').fadeIn('fast').fadeOut('fast');
setTimeout('lightning_three()', t);
}
lightning_one(4000);
lightning_two(5000);
lightning_three(7000);
Remember that the images only load after the page is displayed after the console error and displayed and the images are no longer displayed. The idea they keep repeating according to the given time. Where am I going wrong?
Worked out here thanks for the tip. However now the repeat images is only the first Function is called because only the first image is being loaded. Will it be necessary to create a conditional for the other two images?
– Wemerson Nino
Here’s an idea in my EDIT !
– SachaDee
Got it, bro, now yes. Thank you for real God bless you man.
– Wemerson Nino
You’re welcome :)
– SachaDee