Witam, nie mam szerokiego doświadczenia w PHP, więc nie wiem dokładnie czego szukać. Proszę o pomoc w nakierowaniu lub pokazania rozwiązania.

<button onclick=java script:window.open('info.php','name','height=350,width=350,toolbar=0,resizable=0,scrollbars=0,location=0,menubar=0
,status=0,');><img src="info.png" alt="zawartość_dane.php" /></button>



chodzi mi dokładnie żeby zrobić guzik z img, a po najechaniu pokazywała zawartość jak w alt= tylko że alt=<?php include 'dane.php';?>


Pozdro.




szukam po necie chodzi mi o cos takiego tylko po najechaniu na link wyswietla sie popup

  1. https://jqueryui.com/dialog/#animated





<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery UI Dialog - Animation</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.13.0/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<script src="https://code.jquery.com/jquery-3.6.0.js"></script>
<script src="https://code.jquery.com/ui/1.13.0/jquery-ui.js"></script>
<script>
$( function() {
$( "#dialog" ).dialog({
autoOpen: false,
show: {
effect: "blind",
duration: 1000
},
hide: {
effect: "explode",
duration: 1000
}
});

$( "#opener" ).on( "click", function() {
$( "#dialog" ).dialog( "open" );
});
} );
</script>
</head>
<body>

<div id="dialog" title="dane">
<?php include './dane/dane.php';?>
</div>

<button id="opener">Open Dialog<img src="dane.png" /></button>


</body>
</html>



no i znalazlem jakies rozwiazanie =)

  1.  
  2. <!DOCTYPE html>
  3.  
  4.  
  5. <!-- JQuery CDN -->
  6. <script src=
  7. "https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js">
  8. </script>
  9.  
  10. center {
  11. font-size: 30px;
  12. color: green;
  13. }
  14.  
  15. .popup {
  16. display: none;
  17. width: 500px;
  18. border: solid red 3px
  19. }
  20. </style>
  21. </head>
  22.  
  23. <p>
  24. Hover <a href="#" class="gfg">here</a>
  25. to see the changes.
  26. </p>
  27.  
  28. <div class="popup">
  29. GeeksforGeeks
  30. </div>
  31. </center>
  32.  
  33. $flag = -1;
  34.  
  35. $("a.gfg").hover(
  36. function () {
  37. $("div.popup").attr("style", "display:block");
  38. },
  39. function () {
  40. if ($flag == -1) {
  41. $("div.popup").attr("style", "display:none");
  42. }
  43. }
  44. );
  45.  
  46. $("a.gfg").click(function () {
  47. $flag = 1;
  48. });
  49. </script>
  50. </body>
  51.  
  52. </html>
  53.