Tips for web page Slimming-"big segmentation"

Source: Internet
Author: User

Does your homepage contain many contents? Is the page file generated large? Is the loading time long? Have you ever thought about splitting a page into several parts? I have summarized a good method in my work to help you solve the problem.

Method 1:

<Webbot bot = "HTMLMarkup" startspan> <iframe name = wwg align = center target = "main" frameborder = "no" border = "0" scrolling = no src = "bring up the page. Htm "width = 180 height = 180> </iframe> <webbot =" HTMLMarkup "endspan>

Method 2:

<SCRIPT language = JavaScript> var IE4 = (document. all )? 1: 1; if (IE4) {var theSource = ''<iframe name =" wwg "frameborder =" no "border =" 0 "scrolling =" no "src =" call up the page. Htm "width = 180 height = 180> </iframe> ''document. write (theSource)} </SCRIPT>

Analyze this code: you can change the value of "scrolling =" to "yes" or "no" to determine whether to display the scroll bar; you can change the value of "frameborder =" to "yes" or "no" to determine whether to display the border; change the values of "width =" and "height =" to change the width and height of the calling page. Change the path and file name of "src =" to determine the calling WEB page.

Note: try to put this code in one line! If you directly use the code on this page, copy it to notepad (when copying it, convert the code "<" to "<", ">" to "> "), paste it to your page code. You can use a table to define the display location of the page!

With it, you don't have to worry about the huge size of your page file. It can "lose weight" on your page without affecting the "shape" of the page ", let you use the least code to design the most complex Web page! If you have any questions, please send a wangwg@china.com or come to my home http://www.dscj.org to view the effect!

<

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.