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.
Ми ако не те мързи направи едно уроче :roll:I_V_O каза:
2SHAE каза:Ами братлета ако не ва затруднявам моля ви направете по едно уроче мн искам да разбера как се прави това плс
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>...::: Menu :::...</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css">
#glaven{
width: 600px; border: solid 2px #ddd;
position: relative;
}
#buttons{
width: 200px; float: left;
}
#buttons span{
display: block; text-align: center;
border-right: 3px solid black;
}
#content{
float: left;
width: 400px; height: 100%;
overflow: auto;
}
</style>
<script type="text/javascript">
function changeContent(obj, cont){
for(i=0;i<but.length;i++){
but[i].style.borderRight = '3px solid black';
}
obj.style.borderRight = 'none';
content.style.background = obj.style.background;
content.innerHTML = cont.innerHTML;
}
</script>
</head>
<body>
<div id="glaven">
<div id="buttons">
<span onmouseover="changeContent(this, sydyrjaniq[0])">A</span>
<span onmouseover="changeContent(this, sydyrjaniq[1])">B</span>
<span onmouseover="changeContent(this, sydyrjaniq[2])">C</span>
<span onmouseover="changeContent(this, sydyrjaniq[3])">D</span>
<span onmouseover="changeContent(this, sydyrjaniq[4])">E</span>
</div>
<div id="content">
<div style="padding: 5px;">
sddsgsdgsg<br />
sddsgsdgsg<br />
sddsgsdgsg<br />
sddsgsdgsg<br />
</div>
</div>
</div>
<ul id="contManager" style="display: none">
<li>
<div style="padding: 5px;" >
1<br />
1<br />
1<br />
</div>
</li>
<li>
<div style="padding: 5px;" >
2<br />
2<br />
2<br />
</div>
</li>
<li>
<div style="padding: 5px;" >
3<br />
3<br />
3<br />
</div>
</li>
<li>
<div style="padding: 5px;" >
4<br />
4<br />
4<br />
</div>
</li>
<li>
<div style="padding: 5px;" >
5<br />
5<br />
5<br />
</div>
</li>
</ul>
<script type="text/javascript">
var glaven = document.getElementById('glaven');
var buttons = document.getElementById('buttons');
var content = document.getElementById('content');
var colors = new Array("red", "blue", "yellow", "green", "orange");
glaven.style.height = buttons.offsetHeight + 'px';
content.style.height = buttons.offsetHeight + 'px';
var but = new Array();
for(var i=0;i<buttons.childNodes.length;i++){
if(buttons.childNodes[i].nodeName.toLowerCase() == "span"){
but[but.length] = buttons.childNodes[i];
}
}
for(i=0;i<but.length;i++){
but[i].style.background = colors[i];
}
var sydyrjaniq = new Array();
var myUl = document.getElementById('contManager');
for(var i=0;i<myUl.childNodes.length;i++){
if(myUl.childNodes[i].nodeName.toLowerCase() == "li"){
sydyrjaniq[sydyrjaniq.length] = myUl.childNodes[i];
}
}
</script>
</body>
</html>