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.
<style type="text/css" media="screen">
div.klappmenushow {}
div.klappmenuhidden {display:none;}
</style>
<script type="text/javascript">
<!--
function switchKlappMenu() {
if (document.getElementById('klappmenu').className == 'klappmenuhidden') {
document.getElementById('klappmenu').className = 'klappmenushow';
} else {
document.getElementById('klappmenu').className = 'klappmenuhidden';
}
}
-->
</script>
<a href='javascript:switchKlappMenu()'>Klappen</a><br>
halli
<div class='klappmenuhidden' id='klappmenu'>
hallo
</div>
<?php
$mysql["host"] = "localhost";
$mysql["user"] = "";
$mysql["password"] = "";
$mysql["database"] = "";
mysql_connect($mysql["host"],$mysql["user"],$mysql["password"]);
mysql_select_db($mysql["database"]);
$sql = "SELECT title,autor,date,inhalt,inhalt_voll FROM news";
$ergebnis = mysql_query($sql);
if($ergebnis) {
$number = mysql_num_rows($ergebnis);
echo "<TABLE border=1 width=800 bordercolor=black>";
echo "";
while ($row = mysql_fetch_array($ergebnis, MYSQL_ASSOC)) {
echo "<Tr width=700>";
echo "<td><b>Titel >".$row['title']."</b>";
echo "<hr>";
echo "".$row['inhalt']."";
echo "</td>";
echo "<td width=100 valign=top><b><div align=right><u>Autor</u><br>".$row['autor']."<br>".$row['date']."</div></b></td>";
echo "</tr>";
echo "<tr><td colspan=2></td></tr>";
}
echo "</Table>";
}
?>
echo "<Tr width=700>";
echo "<td><b>Titel >".$row['title']."</b>";
echo "<hr>";
echo "".$row['inhalt']."";
echo "</td>";
echo "<td width=100 valign=top><b><div align=right><u>Autor</u><br>".$row['autor']."<br>".$row['date']."</div></b></td>";
echo "</tr>";
echo "<tr><td colspan=2></td></tr>";
echo "
<Tr width=700>
<td><b>Titel >".$row['title']."</b>
<hr>
".$row['inhalt']."
</td>
<td width=100 valign=top><b><div align=right><u>Autor</u><br>".$row['autor']."<br>".$row['date']."</div></b></td>
</tr>
<tr><td colspan=2></td></tr>
";
<?php
$klappmenu = "0";
$klappshow = "0";
mysql_connect($mysql["host"],$mysql["user"],$mysql["password"]);
mysql_select_db($mysql["database"]);
$sql = "SELECT title,autor,date,inhalt,inhalt_voll FROM news";
$ergebnis = mysql_query($sql);
if($ergebnis) {
$number = mysql_num_rows($ergebnis);
echo "<TABLE border=1 width=800 bordercolor=black>";
echo "";
while ($row = mysql_fetch_array($ergebnis)) {
$klappmenu = $klappmenu + "1";
$klappshow = $klappshow + "1";
echo " <style type=text/css media=screen>
div.klappmenushow {}
div.klappmenuhidden {display:none;}
</style>
<script type=text/javascript>
<!--
function switchKlappMenu() {
if (document.getElementById('klappmenu').className == '".$klappmenu."') {
document.getElementById('klappmenu').className = '".$klappshow."';
} else {
document.getElementById('klappmenu').className = '".$klappmenu."';
}
}
-->
</script>";
echo "<Tr width=700>";
echo "<td><b>Titel >".$row['title']."</b>";
echo "<hr>";
echo "<a href='javascript:switchKlappMenu()'>- Klappen</a><div class='".$klappmenu."' id='klappmenu'><br>".$row['inhalt']."</div>";
echo "</td>";
echo "<td width=100 valign=top><b><div align=right><u>Autor</u><br>".$row['autor']."<br>".$row['date']."</div></b></td>";
echo "</tr>";
echo "<tr><td colspan=2>leere zeile ".$klappmenu."</td></tr>";
}
echo "</Table>";
}
?>
<style type="text/css" media="screen">
div.klappmenushow {}
div.klappmenuhidden {display:none;}
</style>
<?
//MYSQL datenbank
$server = "localhost";
$username = "root";
$password = "mammut";
$datebnak = "upload";
$db = mysql_connect( "$surver", "$username", "$password"); mysql_select_db("$datenbank");
$anfrage = mysql_query("SELECT * FROM news");
while($row = mysql_fetch_array ($anfrage)){
//Ausgabevariabeln
$id = $row['id'];
$autor = $row['autor'];
$text = $row['text'];
echo"
<script type=text/javascript>
<!--
function switchKlappMenu$id() {
if (document.getElementById('klappmenu$id').className == '".$klappmenu."') {
document.getElementById('klappmenu$id').className = '".$klappshow."';
} else {
document.getElementById('klappmenu$id').className = '".$klappmenu."';
}
}
-->
</script>
";
echo $text;
}
?>