ich würde gerne folgendes script so erweitern,dass beim drücken der entertaste die funktion SubmitLeoSearch gestartet wird
<script language="JavaScript">
function SubmitLeoSearch()
{
var qw = document.getElementById("qw");
if(qw && qw.value.length > 0)
{
var newLeoPage = document.getElementById("newLeoPage");
if(newLeoPage)
{
var url = "http://dict.leo.org/ende?lp=ende&lang=de&searchLoc=0&cmpType=relaxed§Hdr=on&spellToler=on&search=" + qw.value + "&relink=on";
if(newLeoPage.checked)
window.open(url);
else
document.location.href(url);
}
}
else
{
alert("Ein Suchwort eingeben");
}
}
</script>
<DIV onkeydown="java script:if(event.keyCode==13) SubmitGoogleSearch();" noWrap><a href="http://dict.leo.org" target="_blank"><IMG SRC="/images/leo.jpg" border="0" align="top" alt="Leo Suche"></a>
<INPUT id="qw" maxlength="254" style="WIDTH: 157px; HEIGHT: 22px" ><IMG onmouseup="this.src ='/images/go2.jpg'" onmousedown="this.src ='/images/go3.jpg'" onmouseover ="this.src ='/images/go2.jpg'" style="CURSOR: hand"
accessKey=s onclick=java script:SubmitLeoSearch();
onmouseout="this.src='/images/go1.jpg'" height=23 alt ="Execute search" src="/images/go1.jpg" width=25 align=absMiddle border=0 ></DIV>
<DIV onkeydown="java script:if(event.keyCode==13) SubmitLeoSearch();" noWrap><input id="newLeoPage" type="checkbox" CHECKED style="WIDTH: 21px; HEIGHT: 20px" size=21>Neues Fenster</DIV>
Dieser Beitrag wurde von bLaCkRaBbIt bearbeitet: 17. Juli 2006 - 08:17