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.