<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
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 =)
<!DOCTYPE html> <html> <head> <!-- JQuery CDN --> <script src= "https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"> </script> <style> center { font-size: 30px; color: green; } .popup { display: none; width: 500px; border: solid red 3px } </style> </head> <body> <center> <p> to see the changes. </p> <div class="popup"> GeeksforGeeks </div> </center> <script> $flag = -1; $("a.gfg").hover( function () { $("div.popup").attr("style", "display:block"); }, function () { if ($flag == -1) { $("div.popup").attr("style", "display:none"); } } ); $("a.gfg").click(function () { $flag = 1; }); </script> </body> </html>