Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css" media="screen"> .random_image {border: 0; width: 824px; height: 245px;} </style> </head> <body> <SCRIPT LANGUAGE="JavaScript"> //Random-loading images function showRandomImage(element){ if(typeof element == 'String') element = document.getElementById(element); theImages = [ '/MemberHome/Portals/0/test_hpbigpic_1.jpg', '/MemberHome/Portals/0/test_hpbigpic_2.jpg', '/MemberHome/Portals/0/test_hpbigpic_3.jpg', '/MemberHome/Portals/0/test_hpbigpic_4.jpg' ]; var img = document.createElement('img'); img.className = 'random_image'; img.src = theImages[Math.round(Math.random()*(theImages.length-1))]; (element || document.body).appendChild(img); } showRandomImage();</script> </body> </html>
This paste will be private.
From the Design Piracy series on my blog: