Posted By

bionickid on 11/19/09


Tagged

javascript jquery


Versions (?)

Extern Link


 / Published in: jQuery
 

  1. $(document).ready(function() {
  2. $("a#linky").click(function() {
  3.  
  4.  
  5. var newdiv = document.createElement('div');
  6. newdiv.setAttribute('id','ExternPopup');
  7. newdiv.style.width = "300px";
  8. newdiv.style.height = "100px";
  9. newdiv.style.left = "100px";
  10. newdiv.style.top = "100px";
  11. newdiv.style.position = "absolute";
  12. newdiv.style.background = "#FFFFFF";
  13. newdiv.style.border = "1px solid #000000";
  14. newdiv.innerHTML = 'Sie verlassen die Website nach <br/><a href="'+$(this).attr("href")+'"><b>'+$(this).attr("href")+"</b>";
  15. newdiv.style.zIndex = '1000';
  16. document.body.appendChild(newdiv);
  17.  
  18. //setTimeout('window.open(\'http://www.mozilla.org\');', 5000)
  19. return false;
  20. });
  21. });

Report this snippet  

You need to login to post a comment.