Bonjour,
Je travaille sur une zone de recherche. Les utilisateurs doivent pouvoir choisir entre trois parties du site a chercher. Je dois donc changer le lien de mon form (contenant la zone de recherche et le bouton valider) pour qu'il reflete bien le choix de l'utilisateur. Je connais ces liens, c'est le Javascript qui me manque
Au cours de mes recherches j'ai trouve comment changer des liens mais pour des images ou des "<a href>" , rien pour les form
Voici le code HTML :
Merci d'avance
Modifié par Aemilia (28 Jul 2009 - 11:32)
Je travaille sur une zone de recherche. Les utilisateurs doivent pouvoir choisir entre trois parties du site a chercher. Je dois donc changer le lien de mon form (contenant la zone de recherche et le bouton valider) pour qu'il reflete bien le choix de l'utilisateur. Je connais ces liens, c'est le Javascript qui me manque

Au cours de mes recherches j'ai trouve comment changer des liens mais pour des images ou des "<a href>" , rien pour les form

Voici le code HTML :
<div id="round">
<span id="1" style="font-size: 14px; color: red; margin-left: 35px; color: black;" onClick="choose1()"><b>Soek die webwerf</b></span>
<span id="2" style="font-size: 14px; color: red; margin-left: 20px; color: #ca5242; text-decoration: underline;" onClick="choose2()"><b>Soek die wiki</form></b></span>
<span id="3" style="font-size: 14px; color: red; margin-left: 20px; color: #ca5242; text-decoration: underline;" onClick="choose3()"><b>Soek alle geskiedenis webwerwe</form></b></span><br /><br />
<form action="/Special:Search" name="form1">
<table style="margin-bottom: 10px;"><tr>
<td>
<span class="Apple-style-span" style="margin-left: 5px; border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; vertical-align: center;">
<span class="Apple-style-span" style="color: #e4e4e4; font-family: Verdana; font-size: 12px; line-height: 18px; text-align: left;">
<span style="background-image: url(http://z.about.com/h/hp/srch_bg.gif); margin-left: 10px; padding: 0px 13px 5px 8px; font-size: 12px; font-style: inherit; font-weight: inherit; text-decoration: inherit; background-repeat: no-repeat; display: block; float: left; background-position: 0% 100%;">
<div id="pointe" style="margin-left: 17%; margin-bottom: -6px;" ><img src="http://dekien.wikiunit.co.za/@api/deki/files/35/=pointe.gif?size=webview" alt="pointe"></div>
<input name="search" type="text" style="border: transparent; margin: 0px; padding: 0px 0px 0px 0px; vertical-align: middle; width: 320px; font-family: Verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 13px; line-height: 1.2; font-size-adjust: none; font-stretch: normal; height: 25px;" >
<input type="submit" value="FIND" style="background: none; color: #ffffff; text-transform: uppercase; margin-left: 5px; padding: 0px; cursor: pointer; vertical-align: middle; background-color: #c31b01; height: 25px; text-align: center; width: 60px; margin-bottom: 3px; background-position: 50%;" /></td>
</span>
</span>
<td>
<span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<span style="color: rgb(51, 51, 51); font-family: Verdana; font-size: 12px; line-height: 18px; text-align: center;"></span>
<label name="searchtext" type="text" style="font-size: 10px; font-family: 'Verdana'; margin-left: 5px; color: #999999;">> Soek die geskiedenis webwerf deur 'n soekterm in te voer</label>
</span>
</span>
</td></tr></table>
</span>
</form>
</div>
Merci d'avance

Modifié par Aemilia (28 Jul 2009 - 11:32)