Frameset & amp; image switching and tag frameset for Html tags

Source: Internet
Author: User

Frameset for Html tags & image switching, and frameset for tags

Today, we will share with you the html experience we have just summarized to meet your needs.

First, we will introduce the frameset label. This label is used to switch webpages on the same page. It can be seen in most webpages. Because of the project requirements, we will study the two labels.

The frameset label cannot be placed in the body label. Its implementation is as follows:

Project Structure:

  

Homepage code (index. jsp ):

<% @ Page language = "java" import = "java. util. *" pageEncoding = "UTF-8" %> <! -- Switch cols on the same page: left/right split frame frameborder: Set the width of the split line noresize: Set the split line to be undragged --> <frameset cols = "10%, * "frameborder =" no "> <frame src =" title01.jsp "noresize/> <frame src =" content01.jsp "name =" content "/> <! -- The value of name uniquely identifies the framework --> </frameset>

Link page on the left (title01.jsp ):

<% @ Page language = "java" import = "java. util. * "pageEncoding =" UTF-8 "%> <% String path = request. getContextPath (); String basePath = request. getScheme () + ": //" + request. getServerName () + ":" + request. getServerPort () + path + "/"; %> <! Doctype html public "-// W3C // dtd html 4.01 Transitional // EN"> 

:

The specific project source code. If you need it, please leave an email. If any one has better results, please advise. Thank you.

 

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.