Fr, 17/12/15, 11:23
   
[ New messages · Members · Forum rules · Search · RSS ]
Page 1 of 11
Forum moderator: Fliros 
uDev Club Forum » uCoz System management and tuning » Additional Features » Search Box for uCoz Modules (By Gigabyte)
Search Box for uCoz Modules
GigabyteDate: Tu, 10/08/17, 13:11 | Message # 1
Sergeant
Group: Administrators
Messages: 19
Awards: 2
Reputation: 3
Status: :-(

Here's the code to paste into a place for you (with info):

Quote
<center>
<form onsubmit="search();return false;" method="post" style="margin:0px" action="/load/" id="searchform"> <input type = "text" name = "query" maxlength = "30" style = "width: 400px;" id = "querys"> <input type="submit" name="sfSbm" value="Find"> <input type = "hidden" name = "a" value = "2"> </form> <script type="text/javascript"> function search () (if ($('# querys'). val (). match (/ ^ \ s *$/)){ _uWnd.alert ('Enter a keyword to search','',{ w: 200, h: 70, tm: 2300)); return;) document.getElementById (' searchform '). submit ();}</script>
</center>

action: change the /load/ to whatever uCoz module (/stuff/, /photo/, /dir/ etc) where you want requested results to convey.

input type text maxlength: the amount of characters that someone can insert into the input (search box).

input type value: The name displayed on the "submit" button.

All the other stuff is not compulsory to acknowledge.

If you have any further questions about this script, don't hesitate to post here. And remember, you need to be registered to post!

My notes:

- runs flawlessly
- easy to use
- took around 1 hour to make this
- happy to of completed it smile

Have fun!

 
uDev Club Forum » uCoz System management and tuning » Additional Features » Search Box for uCoz Modules (By Gigabyte)
Page 1 of 11
Search:

Forum Statistics
Latest updated threads Most popular threads Top users New users
Hello (0)
Fliros (31 Posts)
Gigabyte (19 Posts)
Scubs (5 Posts)
Wild_Eragon (2 Posts)
mad_A (2 Posts)
junglist905 (2 Posts)
Dark__Gamer (1 Posts)
stephanie (1 Posts)
akonens (0 Posts)
Elexy (0 Posts)
istván (17/04/16)
jaaydk (16/12/06)
DjWiicked (16/12/02)
junglist905 (15/04/23)
AdminDan (14/12/16)
Pro (14/12/16)
Paradiso (14/08/31)
adminstr (14/06/18)
akonens (14/06/13)
T-sin (13/10/01)