Change images in js

Hi, this is relate to switch images, let say that i have two php files, and each files has one images called (red-images.png and yellow-images.png).

I’m trying to create switch program in php using two buttons of (red and yellow) buttons, and any time i click on that of those two buttons it will change images.

I’m using included statments

(<?php include(); ?>)

to put

<?php include('yellow.php'); ?>or <?php include('red.php'); ?>.

My question is that how do i can write that in javascripts and php code to allow to develop switch images buttonsbetween red.php or yellow.php in index.php page using two of those buttons using

<?php include(); ?>!

please help thanks.


Please don’t make multiple posts on the same topic.