<ole>
Du kan også prøve denne approach:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>TITLE</title>
<style type="text/css">
body, html {
height: 100%;
margin: 0px;
padding: 0px;
}
.popLink {
position: relative;
cursor: pointer;
}
.popLink span {
position: absolute;
top: 18px;
left: 0px;
background-color: #ededed;
border: 1px dashed #999999;
padding: 3px 5px;
display: none;
}
.popLink, .popLink input, .popLink button {
font: 11px verdana, arial, sans-serif;
}
.popLink form {
display: inline;
}
</style>
<script type="text/JavaScript">
function mOver(elm) {
elm.style.color = "red";
elm.style.textDecoration = "underline";
}
function mOut(elm) {
elm.style.color = "black";
elm.style.textDecoration = "none";
}
function openSearch(elm) {
elm.getElementsByTagName("span")[0].style.display = "block";
elm.getElementsByTagName("input")[0].focus();
}
</script>
</head>
<body>
En eller anden tekst <span class="popLink" onmouseover="mOver(this)" onmouseout="mOut(this)" onclick="openSearch(this)"><b>Søg</b>
<span>
<form>
<input type="text" name="q"><button type="submit">Søg</button>
</form>
</span></span> - og noget mere tekst ...
</body>
</html>
/mvh
</bole>