File "button_onclick.php"
Full Path: /home/analogde/www/MassageProd/button_onclick.php
File size: 2.02 KB
MIME-type: text/html
Charset: utf-8
https://www.geeksforgeeks.org/how-to-change-the-background-color-after-clicking-the-button-in-javascript/
https://stackoverflow.com/questions/6764961/change-an-image-with-onclick
<!DOCTYPE html>
<html>
<body>
<h2>What Can JavaScript Do?</h2>
<p>JavaScript can change HTML attribute values.</p>
<p>In this case JavaScript changes the value of the src (source) attribute of an image.</p>
<button onclick="document.getElementById('myImage').src='pic_bulbon.gif'">Turn on the light</button>
<img id="myImage" src="pic_bulboff.gif" style="width:100px">
<button onclick="document.getElementById('myImage').src='pic_bulboff.gif'">Turn off the light</button>
</body>
</html>
https://openclassrooms.com/forum/sujet/phplist-installer-un-cron-job-chez-ovh
https://www.funix.org/fr/linux/index.php?ref=mail
https://mail.ovh.net/roundcube/
https://dirask.com/posts/JavaScript-change-image-on-click-1wAYZp +++++
<!DOCTYPE html>
<html>
<head>
<title>Demo</title>
</head>
<body>
<h1>Changing the Image</h1>
<img src="http://techfunda.com/HTPictures/Generics/5-635898849972807270.JPG" id="myImage" width="100" height="150">
<input type="button" onclick="changeImage()" value="Change" />
<script>
function changeImage() {
var image = document.getElementById('myImage');
if (image.src.match("635898850094838508.JPG")) {
image.src = "/HTPictures/Generics/5-635898849972807270.JPG";
}
else {
image.src = "/HTPictures/Generics/5-635898850094838508.JPG";
}
}
</script>
<p><strong>Note:</strong> Click on the "Change" button to Change the water bottle in to the soft drink bottle</p>
</body>
</html>
https://wlearnsmart.com/javascript-change-image-onclick-event/
https://linuxhint.com/change-image-source-javascript/
https://stackoverflow.com/questions/40737713/javascript-changing-img-src-onclick-only-works-once
only once
https://www.w3docs.com/tools/code-editor/10753