E ovako treba mi pomoc evo i code
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Webmajstori.Net</title>
<style type="text/css">
#poc {
position:relative;
width:500px;
height:auto;
z-index:1;
color: #fff;
background-color: #000;
opacity:0.9;
filter:alpha(opacity=40);
-moz-border-radius: 15px;
-khtml-border-radius: 15px;
-webkit-border-radius: 15px;
padding-top: 10px;
padding-right: 20px;
padding-bottom: 10px;
padding-left: 20px;
margin-top: auto;
margin-right: auto;
margin-bottom: 10px;
margin-left: auto;
}
#ona {
position:relative;
width:500px;
height:auto;
z-index:1;
color: #fff;
background-color: #000;
opacity:0.9;
filter:alpha(opacity=40);
-moz-border-radius: 15px;
-khtml-border-radius: 15px;
-webkit-border-radius: 15px;
padding-top: 10px;
padding-right: 20px;
padding-bottom: 10px;
padding-left: 20px;
margin-top: auto;
margin-right: auto;
margin-bottom: 10px;
margin-left: auto;
}
</style>
<script type="text/javascript">
<!--
function toggle_visibility(id) {
var e = document.getElementById(id);
if(e.style.display == 'none')
e.style.display = 'block';
else
e.style.display = 'none';
}
//-->
</script>
</head>
<body>
<a href="#" onclick="toggle_visibility('poc');"><div id="poc-1">Početna</div></a>
<a href="#" onclick="toggle_visibility('ona');"><div id="ona-1">O Nama</div></a>
<div id="poc" style="display: none;">
tekst o pocetnoj...
</div>
<div id="ona" style="display: none;">
tekst o nama...
</div>
</body>
</html>
Kad neko klikne na Pocetna ispadne
<div id="poc" style="display: none;">
tekst o pocetnoj...
</div>
Sad kad neko klikne O Nama dodaje se ispod Pocetne
<div id="ona" style="display: none;">
tekst o nama...
</div>
Meni treba kad neko klikne O nama da makne prethodno onaj tekst od Pocetne i bude samo tekst O Nama