Search

Hello all, can anyone please tell me is it possible to insert a custom search button on the search tool in wpx2? I hate the boring grey default one! If so how do I do it? Thankyou.

Yep!

 

Step 1 - put the search tool on your page.

 

Step 2 - add CSS code to the boring grey default search button so that it is not displayed.  Right-click the search object, “Attach HTML”.  Scroll to the right and find the white area saying “/* ButtonStyle */”.  Replace this by the text “visibility:hidden;” (without the quotes).  Don’t click OK just yet!

 

Step 3 - Scroll back to the left and highlight all the code that looks like this (including that last single quote): window.location.href='page2.html?site_search_results_1='+documen t.getElementById('site_search_1_input').value+'&depth=0'

Copy this lot to the clipboard.  Now click OK!

 

Step 4 - put your custom search button on the page, and make it a hyperlink to an internet page.  Replace http:// in the URL address with the word javascript: and then paste the code you put on the clipboard from above.