Skip to main content

Tạo Thanh trình đơn thả xuống (Drop-down)

 Có bao giờ bạn thấy Thanh trình đơn thả xuống của Blog Archive mà tự hỏi: "Nó được tạo ra như thế nào nhỉ?".
Trong bài viết này, Karl sẽ chỉ cho các bạn thấy cách tạo một trình đơn như thế này.
 Bạn click vào để thấy Menu hoạt động như thế nào.




 Sau đây là các bước tiến hành.
  •  Đăng nhập vào Blogger
  • Vào Bố cục >> Thêm tiện ích ở nơi bạn muốn chèn Menu vào.
  • Chọn Tiện ích HTML/JavaScript
  • Thêm vào đoạn mã sau: 


<form>
<select name="menu" onchange="window.open(this.options[this.selectedIndex].value,'_blank')" size="1">
<option>- Menu mẹ - </option>
<!-- change the links with your own -->
<option value="http://ceewave.blogspot.com/">Home</option>
<option value="http://ceewave.blogspot.com/2013/01/so-luoc-lich-su-phat-trien-cua-firefox.html">New post</option>
<option value="http://ceewave.blogspot.com/feeds/posts/default">RSS template</option>
</select></form> 

 Vậy là xong.
Bạn có thể tạo thêm phần tử trong menu bằng cách thêm vào:

<option value="Link liên kết đến">Tên phần tử</option>



Note:
Không chỉ có tác dụng  để tạo Trình đơn ở trong Widget mà Thanh menu này có thể tích hợp vào bài viết của Blog bằng cách:
Chuyển sang sạn thảo HTML và dán code trên vào. Lúc này trình đơn có thể sử dụng để chuyển từ bài viết này sang bài viết khác một cách nhanh chóng (Phù hợp với Blog viết truyện).

Comments

  1. Yes, Chad has provided the basic info. Thanks!

    Here is my web blog; xerox phaser 8560 ink

    ReplyDelete

Post a Comment

Popular posts from this blog

Leveraging the Fast TikTok API on Apify for Efficient Data Scraping

Introduction: In the world of social media data analysis, TikTok has emerged as a popular platform with a vast amount of user-generated content. To extract valuable insights from TikTok, developers and researchers often resort to web scraping. One efficient way to accomplish this task is by utilizing the Fast TikTok API on the Apify platform. In this article, we will explore the benefits and capabilities of leveraging the Fast TikTok API for data scraping on TikTok. Check the API here:  https://apify.com/novi/fast-tiktok-api

Giải trí với video hài

Hy vọng video này sẽ giúp mọi người thư giãn và xả xì trét :D

Tutorial: Scraping Data from TikTok using Fast TikTok API with Python

In this tutorial, I will guide you through the process of scraping data from TikTok using the Fast TikTok API with Python. We will be using the requests library to make HTTP requests and retrieve data from the API. Let's get started! Step 1: Obtain API Credentials Go to https://apify.com and create an account if you haven't already. Once logged in, navigate to the Fast TikTok API page ( https://apify.com/novi/fast-tiktok-api ). Follow the instructions on the page to obtain your API credentials, such as an API key or access token. Make sure to note down these credentials for future use. Step 2: Set up your Python Environment Ensure that you have Python installed on your system. You can download the latest version of Python from the official website ( https://www.python.org ). Install the requests library by running the following command in your terminal: pip install requests Step 3: Import Required Libraries Open your preferred Python IDE or text editor and create a new Python