Hello.
There is a code like this
<?php if ($_GET['id'] == "Bernstein") { ?> <a id="Bernstein"></a> <img src="img/stein.png"/> <?php } elseif ($_GET['id'] == "Waldstein") { ?> <img src="img/waldenstein.png"/> <?php } elseif ($_GET['id'] == "Brauberg") { ?> <img src="img/brauberg.png"/> <?php } else { ?> <strong>Безусловным</strong> "королем" строительных материалов, вобравшим в себя природную мощь и красоту, несомненно признаётся натуральный камень. <?php } ?>
The principle is this: on the main one there is a picture of the house. Right from her description. The map <map> is superimposed on the picture and when you click on a certain part of the house instead of a description, a picture appears with information about the material from which a certain part of the house is made! In general, every time the method changes, the page goes up and the wheel needs to be turned down! How to connect this with Ajax? Or how to make the page remain in the same position?
found this
$.get("test.php", { name: "John", time: "2pm" } );
but how to use it?