Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<a class="active-button">Линк</a>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>web-tourist: demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style>
a.menu-button
{
color: #3399FF;
font-weight: bold;
}
a.menu-button:hover
{
color: #3399FF;
font-weight: bold;
text-decoration: none;
}
a.menu-active-button
{
color: #3399FF;
font-weight: bold;
text-decoration: none;
}
a.menu-active-button:hover
{
color: #3399FF;
font-weight: bold;
text-decoration: none;
}
</style>
</head>
<body>
<?php
$page = htmlspecialchars($_GET['page']);
if ($page == "home")
{
$home = 'menu-active-button';
$page2 = 'menu-button';
$page3 = 'menu-button';
}
elseif ($page == "page2")
{
$home = 'menu-button';
$page2 = 'menu-active-button';
$page3 = 'menu-button';
}
elseif ($page == "page3")
{
$home = 'menu-button';
$page2 = 'menu-button';
$page3 = 'menu-active-button';
}
else
{
$home = 'menu-active-button';
$page2 = 'menu-button';
$page3 = 'menu-button';
}
?>
<a href="?page=home" class="<?php echo $home; ?>">Home</a><br />
<a href="?page=page2" class="<?php echo $page2; ?>">Page 2</a><br />
<a href="?page=page3" class="<?php echo $page3; ?>">Page 3</a><br />
</body>
</html>
<li <?php if ($_SERVER["PHP_SELF"] == '/index.php') {
echo "class='open'";
} ?>><a href="<?php dirs('index.php'); ?>">НАЧАЛО</a></li>
<li <?php if (strstr($_SERVER["PHP_SELF"], "tutorials")) {
echo "class='open'";
} ?>><a href="<?php dirs('tutorials.php'); ?>">УРОЦИ</a></li>
<li <?php if (strstr($_SERVER["PHP_SELF"], "forum")) {
echo "class='open'";
} ?>><a href="<?php dirs('forum'); ?>">ФОРУМ</a></li>
<li <?php if (strstr($_SERVER["PHP_SELF"], "books")) {
echo "class='open'";
} ?>><a href="<?php dirs('books.php'); ?>">КНИГИ</a></li>
<li <?php if (strstr($_SERVER["PHP_SELF"], "team")) {
echo "class='open'";
} ?>><a href="<?php dirs('team.php'); ?>">ЕКИП</a></li>
<li <?php if (strstr($_SERVER["PHP_SELF"], "contacts")) {
echo "class='open'";
} ?>><a href="<?php dirs('contacts.php'); ?>">КОНТАКТИ</a></li>