How to implement the following functions in javascript-js-php Tutorial

Source: Internet
Author: User
To describe your problem, I want to create a search box similar to the following. when users enter a value, clicking the options above will jump to different links, for example, I enter qq, click "news" above to jump to news.sogou.com? Kwqq or click "" above to jump...
  1. Describe your problem
    I want to create a search box similar to the following. when a user enters a value, clicking the options above will jump to different links,

For example

For example, I enter qq,
Click "news" above to jump to news.sogou.com /? Kw = qq
Or click "" above to jump to hweixin.sogou.com /? Kw = qq
Or click "ask" above. Will jump to wenwen.sogou.com /? Cid = qq
.........
When you enter a value, clicking the options above will jump to different links and how to write with javascript + html. Please refer to the complete code. Thank you. I am an artist,

Reply content:
  1. Describe your problem
    I want to create a search box similar to the following. when a user enters a value, clicking the options above will jump to different links,

For example

For example, I enter qq,
Click "news" above to jump to news.sogou.com /? Kw = qq
Or click "" above to jump to hweixin.sogou.com /? Kw = qq
Or click "ask" above. Will jump to wenwen.sogou.com /? Cid = qq
.........
When you enter a value, clicking the options above will jump to different links and how to write with javascript + html. Please refer to the complete code. Thank you. I am an artist,

Window. location. href = "your url"

Js can be dynamically adjustedformHtml can be as follows:

News webpage

The navigation menu can also be dynamically generated, that is, variable definitions can be used in js scripts, and then js outputs them. Assume that the script is usedjQueryWrite.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.