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.
<html>
<head>
<script type="text/javascript">
if (document.getElementById) {
document.write('<style type="text/css">.texter {display:none; border-left:white 20px solid; color:#404040; font: .9em verdana, arial, helvetica, sans-serif; margin-bottom: 12px;}</style>') }
var divNum = new Array("a1");
//Като искаш да слагаш ново падащо текстче в array-я добавяш така "а2","а3","а4" и т.н. и в <body> слагаш съответно <div onClick="openClose('a2')" ...
function openClose(theID) {
for(var i=0; i < divNum.length; i++) {
if (divNum == theID) {
if (document.getElementById(divNum).style.display == "block") { document.getElementById(divNum).style.display = "none" }
else {
document.getElementById(divNum).style.display = "block"
}
} else {
document.getElementById(divNum).style.display = "none"; }
}
}
</script>
</head>
<body>
<div onClick="openClose('a1')" class="mainExpand"><li> Нещо ...</div>
<div id="a1" class="texter">
Текста след клика ..
</div>
</body>
</html>