PHP beginner |
|
<script type="text/javascript">
function addtext(ubb)
{
var code = ubb;
document.getElementById('bericht').value += code;
}
</script>
<script type="text/javascript"> function addtext(ubb) { var code = ubb; document.getElementById('bericht').value += code; } </script>
<div class="hoofding">
Gastenboek
</div>
<form>
<div class="inhoud">
<img src="inc/gfx/streepje.png" height="10px" alt="streepje" class="img" /> Naam<br/>
<input name="naam" type="text" class="form" id="naam" /><br/>
<img src="inc/gfx/streepje.png" height="10px" alt="streepje" class="img" /> Email<br/>
<input name="email" type="text" class="form" id="email" /><br/>
<img src="inc/gfx/streepje.png" height="10px" alt="streepje" class="img" /> Bericht<br/>
<textarea name="bericht" cols="40" rows="6" class="form" id="bericht"></textarea><br/>
<img class="img" alt="lach" src="inc/gfx/smilies/lach.gif" onClick="javascript:addtext(':)')" width="15" height="15" />
<img class="img" alt="tandenbloot" src="inc/gfx/smilies/tandenbloot.gif" onClick="javascript:addtext(':D')" width="15" height="15" />
<img class="img" alt="knipoog" src="inc/gfx/smilies/knipoog.gif" onClick="javascript:addtext(';)')" width="15" height="15" />
<img class="img" alt="huilen" src="inc/gfx/smilies/huilen.gif" onClick="javascript:addtext(':\')')" width="15" height="15" />
<img class="img" alt="verlegen" src="inc/gfx/smilies/verlegen.gif" onClick="javascript:addtext(':$')" width="15" height="15" />
<img class="img" alt="uitgestokentong" src="inc/gfx/smilies/uitgestokentong.gif" onClick="javascript:addtext(':p')" width="15" height="15" />
<img class="img" alt="hart" src="inc/gfx/smilies/hart.gif" onClick="javascript:addtext('(l)')" width="15" height="15" />
<img class="img" alt="lippen" src="inc/gfx/smilies/lippen.gif" onClick="javascript:addtext('(k)')" width="15" height="15" />
<img class="img" alt="plu" src="inc/gfx/smilies/plu.gif" onClick="javascript:addtext('(plu)')" width="15" height="15" />
<img class="img" alt="email" src="inc/gfx/smilies/email.gif" onClick="javascript:addtext('(e)')" width="15" height="15" /><br/>
<input type="submit" name="Submit" value="Voeg bericht toe" class="form" />
</div>
</form>
<div class="hoofding"> Gastenboek </div> <form> <div class="inhoud"> <img src="inc/gfx/streepje.png" height="10px" alt="streepje" class="img" /> Naam<br/> <input name="naam" type="text" class="form" id="naam" /><br/> <img src="inc/gfx/streepje.png" height="10px" alt="streepje" class="img" /> Email<br/> <input name="email" type="text" class="form" id="email" /><br/> <img src="inc/gfx/streepje.png" height="10px" alt="streepje" class="img" /> Bericht<br/> <textarea name="bericht" cols="40" rows="6" class="form" id="bericht"></textarea><br/> <img class="img" alt="lach" src="inc/gfx/smilies/lach.gif" onClick="javascript:addtext(':)')" width="15" height="15" /> <img class="img" alt="tandenbloot" src="inc/gfx/smilies/tandenbloot.gif" onClick="javascript:addtext(':D')" width="15" height="15" /> <img class="img" alt="knipoog" src="inc/gfx/smilies/knipoog.gif" onClick="javascript:addtext(';)')" width="15" height="15" /> <img class="img" alt="huilen" src="inc/gfx/smilies/huilen.gif" onClick="javascript:addtext(':\')')" width="15" height="15" /> <img class="img" alt="verlegen" src="inc/gfx/smilies/verlegen.gif" onClick="javascript:addtext(':$')" width="15" height="15" /> <img class="img" alt="uitgestokentong" src="inc/gfx/smilies/uitgestokentong.gif" onClick="javascript:addtext(':p')" width="15" height="15" /> <img class="img" alt="hart" src="inc/gfx/smilies/hart.gif" onClick="javascript:addtext('(l)')" width="15" height="15" /> <img class="img" alt="lippen" src="inc/gfx/smilies/lippen.gif" onClick="javascript:addtext('(k)')" width="15" height="15" /> <img class="img" alt="plu" src="inc/gfx/smilies/plu.gif" onClick="javascript:addtext('(plu)')" width="15" height="15" /> <img class="img" alt="email" src="inc/gfx/smilies/email.gif" onClick="javascript:addtext('(e)')" width="15" height="15" /><br/> <input type="submit" name="Submit" value="Voeg bericht toe" class="form" /> </div> </form>
Het script is een klein beetje aangepast, maar het werkt wel. |