RBX
In the zone
I want to change the source of an image constantly using javascript.
I know the algorithm but am not familiar with javascript.
What I want is to set a timer of about 2000ms which calls the function of changing the state. Each state has a definite image source associated with it and when the end of states occurs, it resets to initial value.
-----
If there is a way which allows overlapping two images and a function which reduces the opacity of top image constantly, then I would like to know it too.
What is to be done is -
There are two images A and B, A is on the top.
Initially both have an image.
Image A loses opacity. (Image B appears)
Image A's source changes and regains opacity (image A appears / Image B's source changes).
Repeat.
I know the algorithm but am not familiar with javascript.
What I want is to set a timer of about 2000ms which calls the function of changing the state. Each state has a definite image source associated with it and when the end of states occurs, it resets to initial value.
-----
If there is a way which allows overlapping two images and a function which reduces the opacity of top image constantly, then I would like to know it too.
What is to be done is -
There are two images A and B, A is on the top.
Initially both have an image.
Image A loses opacity. (Image B appears)
Image A's source changes and regains opacity (image A appears / Image B's source changes).
Repeat.