Question

Using html create a program that acts as a search engine, it lets you search for...

Using html create a program that acts as a search engine, it lets you search for any book.

Homework Answers

Answer #1

Answer ->

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script tpye="text/javascript">
$(document).ready(function()
{
var url = document.location.href;
var search_val_raw = url.split("?q=")[1];
var search_val_count = search_val_raw.split("+");
var search_val;

for(var i = 0; i < search_val_count.length; i++)
{
search_val = search_val_count[i];

$("#search-results p:contains(" + search_val + ")").show();
}
});
</script>
<style type="text/css">
#search-results p
{
display: none;
}
</style>
</head>
<body>
<div id="search-results">
<p><a href="#">Lorem Ipsum</a></p>
<p><a href="#">Test</a></p>
<p><a href="#">Brofist</a></p>
</div>
<form action="search.html" method="GET">
<input type="text" name="q" placeholder="Search"/>
<input type="submit" value="Search"/>
</form>
</body>
</html>

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Write a Java program using the OOP paradigm to do the following: 1. Main Function: create...
Write a Java program using the OOP paradigm to do the following: 1. Main Function: create a list with a million items, and you can use the generate function to add a million random values to the list. 2. Create a method to sort the list created in the main function using bubble sort, then use the sorted list to search for the (k) value using binary search. 3. Create a method to create a new list of 1000 items...
Write a program to allow user to create a binary search tree. Your program should display...
Write a program to allow user to create a binary search tree. Your program should display in BFT and DFT(in order) format.
Write the below code to use HTML and JavaScript. 1)Write a JavaScript program to create a...
Write the below code to use HTML and JavaScript. 1)Write a JavaScript program to create a new string from a given string changing the position of first and last characters. The string length must be greater than or equal to 1. 2)Write a JavaScript program to check whether a string starts with 'Java' and false otherwise
To create your own while loop using PHP and HTML via Notepad++. Your while loop does...
To create your own while loop using PHP and HTML via Notepad++. Your while loop does not have to completely function, meaning it doesn't have to process a lot, just create the loop along with some other mini things in HTML like a few outputs when run
1. Search the Internet using a search engine (such as Google) for a recent article that...
1. Search the Internet using a search engine (such as Google) for a recent article that discusses a change in the price of something. For example, search "price increase," "price rise," "price drop," or "price decrease." (I recommend you avoid articles about the stock market.) Copy the URL address of the web site. You will need to post it. 2. Determine the cause of the price change by reading the article. Then try to identify which of the theoretical demand...
Create an HTML page with JavaScript that you can upload the image from PC and display...
Create an HTML page with JavaScript that you can upload the image from PC and display on the page. Also, display the Path of the image on the PC. Thank you,
using HTML for create a website registration form to obtain users First name, last name, date...
using HTML for create a website registration form to obtain users First name, last name, date of birth, phone number, and email address*([email protected]) *With a background for the web page
5- What is the software agent and give an example rather than(ant-spam, search engine)? 6- Using...
5- What is the software agent and give an example rather than(ant-spam, search engine)? 6- Using Breadth First Search, assume b= 9, 100byte/ node, 1000 nodes/seconds. Please Calculate the nodes required by BFS and depth level is 6? 7- Using Depth First Search, assume b= 11, 100byte/ node, 1000 nodes/seconds. Please Calculate the nodes required by DFS and depth level is 21?
using HTML JAVA AND CSS all embeded on one page. create a page with some black...
using HTML JAVA AND CSS all embeded on one page. create a page with some black paragraph text against a white background, on the page pu a button labeled night mode. when the button is clicked the backgrournd should turn black all text should be white. when the button is initially clicked, the text should change to say "day mode"
JAVA: Design and implement a recursive version of a binary search.  Instead of using a loop to...
JAVA: Design and implement a recursive version of a binary search.  Instead of using a loop to repeatedly check for the target value, use calls to a recursive method to check one value at a time.  If the value is not the target, refine the search space and call the method again.  The name to search for is entered by the user, as is the indexes that define the range of viable candidates can be entered by the user (that are passed to...