when i try and modify the header template with some javascript i get errors when i try and save the template. how do i get the vb to accept the template with the javascript in it?
this is what i want to add to the template:
it adds a search box to search another part of my site that is separate from vb.
this is what i want to add to the template:
Code:
<script language="javascript" type="text/javascript"> function doSearch() { if (frm.keyword.value == "") { alert("Please enter Search keyword."); frm.keyword.focus(); return (false); } document.frm.submit(); return (true); } </script> <style type="text/css"> <!-- .style1 { font-size: 12px; font-weight: bold; } --> </style> <CENTER> <table width="257" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td colspan="2"><form name=frm method=get action="http://www.xxxxxxxx.com/search/results.php"><input name="keyword" type="text" class="Text" size="50" value="<?=$_GET["keyword"];?>"></td> </tr> <tr> <td width="235" class="GreyText"><nobr><input name="option" type="radio" class="BlueText" value="1" <?if ($_GET["option"]==1) echo "checked";?>> MENUS <input name="option" type="radio" class="BlueText" value="2" <?if ($_GET["option"]==2) echo "checked";?>> REVIEWS <input name="option" type="radio" class="BlueText" value="3" <?if ($_GET["option"]==3 || $_GET["option"]=='') echo "checked";?>> BOTH <input type=submit name=submit value="Find It"></nobr></td></form> </tr> </table> </CENTER>
Comment