Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Example of using Timthumb with the new srcset attribute

By: a guest on Aug 22nd, 2013  |  syntax: HTML 5  |  size: 0.27 KB  |  views: 104  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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">