Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
<html>
<head>
<script type="text/JavaScript">
<!--
function openWin(titel,img,alt) {
popup = open("", "", "width=600,height=600,status=no,toolbar=no,menubar=no");
popup.document.open();
popup.document.write("<html><head><title>"+titel+"</title></head><body>");
popup.document.write("<img src=\""+img+"\" alt=\""+alt+"\">");
popup.document.write("</body></html>");
popup.document.close();
}
// -->
</script>
</head>
<body>
<a href="#" onClick="openWin('Photo 01','1.jpg','Alternativ Beschreibung für das Bild')">Link_Bild1</a>
</body>
</html>
<a href="#" onClick="openWin('Photo 01','1.jpg','Alternativ Beschreibung für das Bild')">Link_Bild1</a>
<html>
<head>
<script type="text/JavaScript">
<!--
function openWin(titel,img,alt,size) {
popup = open("", "", size, "status=no,toolbar=no,menubar=no");
popup.document.open();
popup.document.write("<html><head><title>"+titel+"</title></head><body>");
popup.document.write("<img src=\""+img+"\" alt=\""+alt+"\">");
popup.document.write("</body></html>");
popup.document.close();
}
// -->
</script>
</head>
<body>
<a href="#" onClick="openWin('Photo 01','1.jpg','Alternativ Beschreibung für das Bild','width=500, height=600')">Link_Bild1</a>
</body>
</html>
var image = new Image();
image.src = 'deine url zum Bild';
image.onload = function () {
var h = image.height;
var w = image.width;
//popup code nun
}
<script language="JavaScript" type="text/javascript">
var image = new Image();
image.src = '<?php echo"$img"; ?>';
image.onload = function () {
var h = image.height;
var w = image.width;
function openWin(titel,img,alt,size) {
popup = open("", "", size, "status=no,toolbar=no,menubar=no");
popup.document.open();
popup.document.write("<html><head><title>"+titel+"</title></head><body>");
popup.document.write("<img src=\""+img+"\" alt=\""+alt+"\">");
popup.document.write("</body></html>");
popup.document.close();
}
}
//-->
</script>
<?php
echo"<a href=\"javascript:openWin('Photo 01','$img')\">LINK</a>";
?>