Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Search box goes crazy after being used...


mreigle

Recommended Posts

Posted

I have a search box on my site at http://www.preciousbedding.com

 

It is just underneath of my logo on the top left. Before it is used, it looks fine. Once it's used, it looks like the box appears to jump down or shrink. It's really weird.

 

Does anyone know what may be causing this? I'll include my the code for my search box below

 

<script>
function clearDefault(el) {
 if (el.defaultValue==el.value) el.value = ""
}
</SCRIPT>
<form name="quick_find" action="advanced_search_result.php" method="get">

	  <table align="center" width="180" height="30" border="0" background="/images/search_bg.gif" style="vertical-align: bottom;">
		<tr>
			<td>
				<div align="right">
					<!-- This is the input box where visitors enter keywords etc -->
					<input type="text" name="keywords" value="Search for..." size="14" ONFOCUS="clearDefault(this)" style="background-color: #DBFFA2; height: 10px; font-size: 9px">
				</div>
			</td>
			<td style="padding-top: 3px">
				<div align="left">
					<!-- OSC Search Submit Button Below -->
					<?php echo tep_image_submit('find.gif', BOX_HEADING_SEARCH); ?>
					<!-- Default Gray Search Submit Button Below -->
					<!--<input type="submit" name="search" value="Search" class="formfield" border="0" width="79" height="25">-->
				</div>
			</td>
		</tr>
	  </table>

</form>

Posted

In advance_search_results.php

 

try removing the following

 

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

 

And just use

 

<body>

 

see if that makes a difference

My Contributions

 

Henry Smith

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...