I'm using this snippet to start js file: <script type="text/java_script">random_img("image1.jpg", "image2.jpg", "image3.jpg","image4.jpg");</script> how can I rotate images and follow SEO rules?
Do it server-side so that the image rotation is done before the page is sent to the browser. Another option would be to put all 4 images into the HTML, but then use JavaScript to "hide" all but the one currently in view (this would be seen as site functionality in this case and not hidden content).