|
|
Forum moderator: bigblog |
uCoz Community For Webmasters Design Customization How to replace all occurrences of a string in JavaScript? |
How to replace all occurrences of a string in JavaScript? |
How to replace Request returned no results with another text in JavaScript?
|
How to replace Request returned no results with another text in JavaScript? look on demo http://indoxxi.info/search/?q=cinta+laki+laki+biasa Request returned no results i want change with Sorry.. you search cinta laki laki biasa not found Post edited by fadly - Saturday, 2017-03-25, 2:09 AM
|
not working... i want change Request returned no results with Sorry.. you search cinta laki laki biasa not found
how to hange this Code <div style="text-align:center;padding:20px">Request returned no results</div> Post edited by fadly - Saturday, 2017-03-25, 5:58 AM
|
Im put on search page above $BODY$ here the screens shots its working now... im fixed the script Code <div class='rey'>$BODY$</div> <script> x = document.getElementsByTagName('div') for(i=0;i<=x.length;i++){ if(x[i].className=='rey') x[i].innerHTML=x[i].innerHTML.replace("Request returned no results","Sorry.. $SEARCH_QUERY$ Not Founds") } </script> Attachments:
4547149.png
(42.1 Kb)
Post edited by fadly - Saturday, 2017-03-25, 6:20 PM
|
| |||
| |||