I want to have cursor in search sidebox on every page
I want to have cursor in search sidebox on every page
NO one willing to help....???????
Your question is cryptic. Maybe nobody else understands what you want, either. In what way would you have a "cursor" in the search sidebox? We need more info to help you.
I apologise for that....even its really hard for me to tel exactly
What i want is when i load a page the cursor should be in search box so its ready to type in without using mouse to click on search box first.
I believe that is known as "focus". You may need some javascript to get default focus in that location. This is fundamentally a generic HTML/javascript problem, and you should be able to get info by searching the web for it.
This is an "onload" event that goes in the body tag. Look in the tutorials or wiki for info on how to get this automatically added via javascript without editing any existing files.
http://www.zen-cart.com/wiki/index.p...verride_How-To
Thanks for your help...i have created on_load file..having some problems
how can i confirm wat is the element name in tpl_search.php
$content .= zen_draw_input_field('keyword', '', 'size="18" maxlength="100" style="width: ' . ($column_width-30) . 'px"') . '<br />' . zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);
i guess its keyword..but its not working
i added the id field in there
$content .= zen_draw_input_field('keyword', '', 'size="18" id="keyword" maxlength="100" style="width: ' . ($column_width-30) . 'px"') . '<br />' . zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);
but still no luck
Hey thanks heaps i cudnt do better without u.
thanks
The default search sidebox has this HTMLso I would say the on_load_.js file should beCode:<div id="searchContent" class="sideBoxContent centeredContent"> <form name="quick_find" action="http://localhost/fr-zc139gfresh/index.php?main_page=advanced_search_result" method="get"> <input type="hidden" name="main_page" value="advanced_search_result" /><input type="hidden" name="search_in_description" value="1" /> <input type="text" name="keyword" size="18" maxlength="100" style="width: 120px" value="Enter search keywords here" onfocus="if (this.value == 'Enter search keywords here') this.value = '';" onblur="if (this.value == '') this.value = 'Enter search keywords here';" /><br /> <input type="submit" value="Search" style="width: 50px" /><br /><a href="http://localhost/fr-zc139gfresh/index.php?main_page=advanced_search">Advanced Search</a></form></div></div>Code:quick_find.keyword.focus()