After inspection, I found that using ASP to determine the size of the image is more complicated than counting, and it is judged once it is determined, and it also requires logical display...it is annoying. It is easy to use Javascript to determine the size. The final effect is just to prevent the large image from breaking the page."/> After inspection, I found that using ASP to determine the size of the image is more complicated than counting, and it is judged once it is determined, and it also requires logical display...it is annoying. It is easy to use Javascript to determine the size. The final effect is just to prevent the large image from breaking the page.">

Home  >  Article  >  Web Front-end  >  How to check image size using Javascript function

How to check image size using Javascript function

巴扎黑
巴扎黑Original
2017-08-10 14:15:071373browse

[Introduction] I found that using ASP to determine the size of the image is more complicated than counting. And once it is judged, it is judged, and it also needs to be displayed logically. It is troublesome to use Javascript to judge, and it is easy to do. The final effect is just to prevent the big picture from breaking the page < script LANGUAGE="JAVASCRIPT"> Check

I found that using ASP to determine the image size is more complicated than counting, and it is judged once it is judged, and it also requires logical display...it is annoying. Use Javascript to judge, and it is easy to do. The final effect is nothing more than to prevent the large image from breaking the page.





 1. The mouse passes through the automatically selected check box:


 2.ACCESS lists a certain The number of days of the week to which a day belongs

//This algorithm took me several hours

Query the data of all the days of the week to which a date belongs

SELECT *

FROM ctdate_by_query_date

WHERE dateandtime between ((#2006-5-15#+Weekday(2006-5-15))-6) and #2006-5-15#+Weekday(2006-5-15)



 3. Double-click the mouse to copy the text, now double-click to clear it