Web-js Organization

Source: Internet
Author: User

In the past few days, I sorted out my previous websites developed with Asp.net and made some JS special effects.CodeTo record and share it with you. The sample code will be shared later.

1. Album (showimages)

Many people will encounter the need to build a user's album when building a website, and I used to write a JS Code from someone else on the Internet when I was practicing the website (JS will not be written, but it will only be changed ).

Below is:

 

Explain the relationship between pages:

Showimages. aspx: User album page

Images. aspx: the user loads the image page.

The implementation idea of the entire example is as follows: showimages. aspx is the page where JS Code is located and used to build a user album. In JS, the SRC of each IMG is actually the content loaded on the images. ASPX page. The images. ASPX page binds images based on the photo ID.

Modify the start ID and end ID of the photo in the background code of showimages. aspx.

View code

 Public   Partial   Class  Showimages: system. Web. UI. Page { Protected   Void Page_load ( Object  Sender, eventargs e ){  Int I = 1  ;  Int J = 4  ; First. Value = "  1  " ; //  Start ID of the photo in the user album Ipicnum. value = convert. tostring (I> J )? I + J- 1 : J ); //  ID of the end of a photo album  }} 

For the convenience of the image, the ID is assigned directly.

2. scoring JS

:

This is also very simple JS... But I also changed it from the Internet. You can use a form and a sumbit button to submit scores and comments.

Download code example: http://dl.vmall.com/c0blknwk6g

 

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.