• Nevim presne jak to myslis, ale jestli chces dynamicky menit obsah divu pri kliknuti bez znovu nacteni celé stranky, tak bych asi pouzil JavaScript.
• Myslim ze by to slo i pomoci codu Typu :
[JavaScript]
<script language="JavaScript"> function zobraz_text(text) { document.getElementById("2").innerHTML = text; } </script>
[HTML]
<body> <div id="1"> <h3> Obsah DIV cislo 1 </h3> <img src="#" width="25" height="15" onclick="zobraz_text('muj text 1');"/> <img src="#" width="25" height="15" onclick="zobraz_text('muj text 2');"/> </div> <div id="2"> <h3> Obsah DIV cislo 2</h3> </div> </body>
[CSS]
<style type="text/css"> #1 { width: 500px; margin-right: auto; margin-left: auto; text-align: center; } #2 { width: 500px; margin-right: auto; margin-left: auto; text-align: center; height: 500px; } </style>