Advertisement
Guest User

Example of using Timthumb with the new srcset attribute

a guest
Aug 22nd, 2013
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.27 KB | None | 0 0
  1. <!-- Example of using Timthumb with the new srcset attribute -->
  2.  
  3. <img
  4.   src="path/to/timthumb.php?src=path/to/img.jpg&height=150&width=150"
  5.   srcset="path/to/timthumb.php?src=path/to/img.jpg&height=300&width=300 2x"
  6.   alt="My image"
  7.   height="150"
  8.   width="150">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement