"Original": Record "Stealing" others' CSS and JS

Source: Internet
Author: User

This afternoon, the company's website requires a new version. We need to make a job selection similar to 51job and select JS special effects for the industry category. However, this task has come to the hands of the person who does not know js the most! Heaven, Earth ......

I wrote it myself. I first searched the internet. Well, there are many examples, and the source code, HIA ...... Finally, I decided to use the example provided by the following website: http://app.soche8.com/show/51job/

Of course, the Home PageCodeJS and CSS, and detailed instructions for use. Thanks to this brother!

Let's talk about how to "take" people's Js and CSS.

First, right-click the page, view the source file, and open in notepad.Source codeThen, we can see the following section:

<LINK rel = "stylesheet" type = "text/CSS" href = "css.css"/> <SCRIPT type = "text/JavaScript" src = "jquery. JS "> </SCRIPT> <SCRIPT type =" text/JavaScript "src =" drag. JS "> </SCRIPT> <SCRIPT type =" text/JavaScript "src =" city_arr.js "> </SCRIPT> <SCRIPT type =" text/JavaScript "src =" nationality_arr.js"> </SCRIPT> <SCRIPT type = "text/JavaScript" src = "funtype_arr.js"> </SCRIPT> <SCRIPT type = "text/JavaScript" src = "industry_arr.js"> </SCRIPT> <SCRIPT type = "text/JavaScript" src = "major_arr.js"> </SCRIPT>

Then, after determining the path address of the JS file and CSS file through the URL and SRC attributes, enter the complete path of the file in the browser (the younger brother uses 360, for example, the path of the last JS file should be: http://app.soche8.com/show/51job/marjor_arr.js

In this way, the browser automatically opens the download window.

Aha ~ So download these files ..................

With these JS files, you can create a page on your own. You can also create a 123 page on the screen, and so on. Why is the style incorrect? The button has no background image, and the pop-up Div layer has no style ...... But I have downloaded my CSS ?!

Don't worry. I don't know what technology is used, and some CSS won't be displayed in the page code. So, aren't we at all? No. Please be patient with my analysis. Experience tells me that as long as a Web page is opened, there should be traces left. We choose tools --> ie options --> and then click the Settings button for viewing history records.

Then, "view the file"

Open a resource manager. What do you see ?!

There is another fish that has missed the internet !!!

OK. Here, it's almost the same as "take". Use the previous method to take this file down and check out there are some button background images in it, and then click the pictures to search for them! OK. The job is finished!

Here, I don't understand why some CSS and JS files won't be displayed in the source code? Hope to find the answer! Later, I took the code and saved it as a notepad one by one because it was not UTF-8 encoded and garbled. However, I found it useful for Batch encoding conversion.ProgramAnd I will share it with you here. It is very useful anyway! Highly recommended!

Click to download

I hope you can share some experiences on "take" and "anti-take!

Related Article

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.