You are here: oscommerce search box remain on focus help « All PHP « IT news, forums, messages
oscommerce search box remain on focus help

Posted by Steven Kalcevich on 10/02/69 11:34

I am using oscommerce.com for a shopping cart program.

I tried many contribs on oscommerce's site and googled. I got focus to
the search box via this script below but when i go to a product it does
not remain on focus. or when i search for a product that does not exist
it does not go on focus. How can this be done? I am out of ideas thanks
my site is www.philcos.com

<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Tom Khoury (t...@yahoo.com) -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function placeFocus() {
if (document.forms.length > 0) {
var field = document.forms[0];
for (i = 0; i < field.length; i++) {
if ((field.elements[i].type == "text") || (field.elements[i].type ==
"textarea") || (field.elements[i].type.toString().charAt(0) == "s")) {
document.forms[0].elements[i].focus();
break;
}
}
}
}

// End -->

</script>

email me off list if you can at skalcev...@NOSPAMgmail.com remove
nospam thanks

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация