<html><head>
<style type="text/css">
#tekst {
display: none;
width: 700px;
border: 1px solid black;
background-color: #cccccc;
padding: 5px;
font-size: 12px;
}
</style>
<script type="text/javascript">
function kadabra(zap) {
if (document.getElementById) {
var abra = document.getElementById(zap).style;
if (abra.display == "block") {
abra.display = "none";
} else {
abra.display= "block";
}
return false;
} else {
return true;
}
}
</script>
</head>
<body>
This is text
<a href="#" onclick="return kadabra('tekst');"> Link to the text</a>
<p id="tekst">
this comes in the box.
</p>
<p>stuff below !</p>
</body></html>
when u click the link the box with text comes below the link. What i would like is that the box opens op next to the link (so to the right side). Can anyone assist me in how to accomplish this, ive looked around but cat really find it. Thx in advance.


Sign In
Create Account


Back to top









