Demo The code below highlight the words in the paragraph if it matches on the inputted keywords or text from the user. Gets the value from the text box Split if the words are separated by space Store the values in an array Pass those values in the function and use RegExp to evaluate If found, replaces the text with added span tag for the highlight. $.fn.wrapInTag = function (opts) { var words = opts.words || [], regex = RegExp(words.join('|'), 'gi'), replacement = '<span class="highlight">$&</span>'; return this.html(function () { return $(this).text().replace(regex, replacement); }); }; $('#terms').keyup(function () { var keywords = []; keywords = $(this).val().split(" "); $('p#text-body').wrapInTag({ words: keywords }); }); Demo
This line is so cute so I decided to make it my ringtone. hahaha Again, I want to share it. Here is the link for download: Nomo nomo nomo Chuaa *Note: The password for download is: gumiho What I did is converted this video to .mp3 file. That's why you can literally hear the background music. tsk
Blogger has featured "404" page customization. Just a fact: The 404 or Not Found error message is a HTTP standard response code indicating that the client was able to communicate with the server, but the server could not find what was requested. The web site hosting server will typically generate "404 - Not Found" web page, when users attempts to follow a broken or dead link, hence the 404 error is one of the most recognizable errors users can find on the web To start this, you need to upgrade your Blogger to a new look . Then, follow the instruction below: Inside the black border is where you can add your custom 404-Not Found Page You can use this conditional tag to hide the widgets for your 404 page. <b:if cond='data:blog.pageType == "error_page"'> <style type="text/css"> PUT YOUR CSS CODE HERE </style> </b:if> or this code <b:if cond='data:blog.url != "YOUR BLOG URL...
Comments
Post a Comment
Feel free to ask, suggest and comment regarding this post/blog. You can also contact me through e-mail, just always use the contact page. Thank you for visiting this blog.