"Morten" <useless@useless.useless> skrev i en meddelelse
news:4380df22$0$38734$edfadb0f@dread12.news.tele.dk...
> Preben Virkus wrote:
>> Hej
>>
>> På min side har jeg en standard søgebox / Formmail hvor man kan intaste
>> et
>> søgeord = Keyword
>>
>> Ønsker nu 3 stk. Form popup der tilsammen udgør en søgestreng/tekst -
>> lad
>> os kalde dem Keyword1, Keyword2 og Keyword3.
>> Hvordan samles value fra Keyword1, Keyword2 og Keyword3 til en
>> tekststreng=Keyword?
>>
>> Da jeg ikke er skrap til javascrip beder jeg om hjælp til en komplet
>> kode!
>>
>
> Du kan lege videre med nedenstående:
>
> <html>
> <head>
> <script>
> function go() {
> var a = document.getElementById("a").value;
> var b = document.getElementById("b").value;
> var c = document.getElementById("c").value;
>
> alert("A+B+C: "+a+" "+b+" "+c);
> }
> </script>
> </head>
> <body>
> <form>
> A <input type="text" id="a"><br/>
> B <input type="text" id="b"><br/>
> C <input type="text" id="c"><br/>
> <input type="button" value="Send" onclick="javascript:go();return
> false;"/>
> </form>
> </body>
> </html>
Hej Morten
Tak for dit svar - desværre hjalp det mig ikke - sikket fordi jeg er
nybegynder og ikke forstår at arbejde videre på dit forslag.
I følgende kode findes Tekstboksen Keyword hvor man kan indtaste søgeord.
Jeg ønsker at ændre denne således at man vælger søgeord fra 3 Form popdown /
rullegardiner.
<html><head><link href="/images/ddcss/SK117_Master.css" rel="stylesheet"
type="text/css"><link href="/images/ddcss/SK117_SpaceTop.css"
rel="stylesheet" type="text/css"></head>
<body bgcolor="#ffffff" leftmargin="0" marginheight="0" marginwidth="0"
topmargin="0">
<table width="240" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10"></td>
<td width="220">
<table width="220" border="0" cellspacing="0" cellpadding="0"
background="bg_righttop504.gif" height="66">
<tr height="22">
<td height="22"><span class="dnormalblack"><span class="class"><a
href="stikordsregister.asp" target="spaceright"><img
src="../images/design/bottom1.gif" alt="" height="22" width="230"
border="0"></a></span></span></td>
</tr>
<tr height="22">
<td height="22"><span class="dnormalblack"><span class="class"><a
href="page-r.asp" target="spaceright"><img
src="../images/design/bottom1.gif" alt="" height="22" width="230"
border="0"></a></span></span></td>
</tr>
<tr height="18">
<td height="18"><span class="dnormalblack"><span class="class"><a
href="advsearchbanner.asp" target="spaceright"><img
src="../images/design/bottom1.gif" alt="" height="22" width="230"
border="0"></a></span></span></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<meta http-equiv="refresh"
content="600;URL=
http://www.dalegro.dk/banner-r/page-r.asp">
<body class="AdvancedSearchPage">
<table width="240" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10"></td>
<td>
<FORM METHOD="POST" ACTION="/shop/ProductList.asp" target="main">
<INPUT TYPE="HIDDEN" NAME="Search" VALUE="1">
<INPUT TYPE="HIDDEN" NAME="AdvSearch" VALUE="1">
<b><br>
</b><br>
<TABLE class="BackgroundColor1_AdvancedSearchPage" width="184"
border="0" cellspacing="0" cellpadding="0">
<TR>
<TD><span class="Text1_AdvancedSearchPage"><b>Udvidet
søgning:</b></span><BR>
<NOBR><INPUT TYPE="TEXT" SIZE="21" NAME="Keyword"
class="TextInputField_AdvancedSearchPage" VALUE=""> </NOBR>
</TR>
<TR>
<TD><INPUT TYPE="RADIO" NAME="AdvSearchType" VALUE="AND" CHECKED>
<span class="Text1_AdvancedSearchPage">og</span>
<INPUT TYPE="RADIO" NAME="AdvSearchType" VALUE="OR" > <span
class="Text1_AdvancedSearchPage">eller <INPUT
class="SubmitButton_AdvancedSearchPage" TYPE="SUBMIT"
VALUE="Søg"></span></TD>
</TR>
<TR>
<TD><BR>
</TD>
</TR>
<TR>
<TD><span class="Text1_AdvancedSearchPage"><b>Priser:</b></span><BR>
</TD>
</TR>
<TR>
<TD>
<table width="122" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="70"><span
class="Text1_AdvancedSearchPage">fra</span></td>
<td><INPUT class="TextInputField_AdvancedSearchPage" TYPE="TEXT"
SIZE="10" NAME="AdvSearchPriceFrom" value=""></td>
</tr>
<tr>
<td width="70"><span class="Text1_AdvancedSearchPage">til</span>
</td>
<td><INPUT class="TextInputField_AdvancedSearchPage" TYPE="TEXT"
SIZE="10" NAME="AdvSearchPriceTo" value=""></td>
</tr>
</table>
</TD>
</TR>
<TR>
<TD> </TD>
</TR>
<TR>
<TD></TD>
</TR>
<TR>
<TD> </TD>
</TR>
<TR>
<TD><span class="Text1_AdvancedSearchPage"><b>Søg
i:</b></span><BR>
<INPUT TYPE="CHECKBOX" CHECKED
NAME="AdvSearchInProductNumber"><span
class="Text1_AdvancedSearchPage">Produktnummer</span><BR>
<INPUT TYPE="CHECKBOX" CHECKED NAME="AdvSearchInProductName"><span
class="Text1_AdvancedSearchPage">Produktnavn</span><BR>
<INPUT TYPE="CHECKBOX" CHECKED
NAME="AdvSearchInProductShortDesc"><span
class="Text1_AdvancedSearchPage">Kortbeskrivelse</span><BR>
<INPUT TYPE="CHECKBOX" CHECKED
NAME="AdvSearchInProductLongDesc"><span
class="Text1_AdvancedSearchPage">Lang beskrivelse</span><BR>
</TD>
</TR>
<TR>
<TD><BR>
</TD>
</TR>
<TR>
<TD><span class="Text1_AdvancedSearchPage"><b>Vis
resultat:</b></span><BR>
<span class="Text1_AdvancedSearchPage">Sorteret efter</span><BR>
<SELECT NAME="AdvSearchSortBy"
class="OptionSelect_AdvancedSearchPage">
<OPTION VALUE="productname" >Produktnavn</OPTION>
<OPTION VALUE="newest" >Nyeste produkter</OPTION>
</SELECT></TD>
</TR>
<TR>
<TD><span class="Text1_AdvancedSearchPage">Resultater pr.
</span><span class="Text1_AdvancedSearchPage">side</span><BR>
<SELECT NAME="AdvSearchRecPrPage"
class="OptionSelect_AdvancedSearchPage">
<OPTION VALUE="5" >5</OPTION>
<OPTION VALUE="10" >10</OPTION>
<OPTION VALUE="20" >20</OPTION>
<OPTION VALUE="30" >30</OPTION>
<OPTION VALUE="50" >50</OPTION>
<OPTION VALUE="75" >75</OPTION>
<OPTION VALUE="100" >100</OPTION>
</SELECT></TD>
</TR>
</TABLE>
</FORM>
</td>
</tr>
</table>
</BODY>
</HTML>
mvh. Preben