DJPRMF

Untitled

Oct 29th, 2015
124
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Imagem:
  2. $(function() {
  3. var images = ['img1.jpg', 'img2.jpg', 'img3.jpg', 'img4.jpg', 'img5.jpg', 'img6.jpg'];
  4. $('#background').css({'background-image': 'url(imagens_pasta/' + images[Math.floor(Math.random() * images.length)] + ')'});
  5. });
  6.  
  7.  
  8. +++++++++++++++++++++++++++++++++
  9. +++++++++++++++++++++++++++++++++
  10.  
  11. Link:
  12.  
  13. $('#ID_DO_LINK').attr("href", "http://novo_link.com");
RAW Paste Data