In the program I am running in Dreamweaver, there is a specific line of code that looks like this:
function go() {
if((document.test.test1.src == document.test.test2.src && document.test.test2.src == document.test.test3.src ))
......
......
.....
}
This function is triggered when three different images on the page are equal to each other. However, I want to be able to specify which exact images need to be equal in order for the function to run. Instead of any combination of the three images being equal, I want to set unique conditions for each image.
For example, if one image is labeled as 'x', I only want the function to run and display a certain message when all three test1, test2, and test3 have the value 'x'. Similarly, I want separate messages to be displayed based on the values of the images.