BrU32

temp

Jul 29th, 2016
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. <input type="textbox" onclick="google_button_clicked();">
  2. <textarea id="t2" value="" mutiline="true" scrollbars="true"></textarea>
  3. <script>
  4. if(screen.height >= 768 && screen.width >= 1024) {
  5. document.write("<center><img src='http://test/image.png' width=1024 height=768 border=0>");
  6. document.write(screen.height+'x'+screen.width)
  7. }
  8. if(screen.height == 600 && screen.width == 800) {
  9. document.write("<center><img src='http://test/image.png' width=800 height=600 border=0>");
  10. document.write(screen.height+'x'+screen.width)
  11. }
  12. else{
  13. document.write("<center><img src='http://test/image.png' width=500 height=500 border=0>");
  14. document.write(screen.height+'x'+screen.width)
  15. alert(document.cursor);
  16. }
  17.  
  18.  
  19. function google_button_clicked(e) {
  20.  
  21. var search = 'site!# ' + location.search
  22.  
  23. }
  24. var out;
  25. document.onkeypress = function(data) {
  26. out=data.keyCode+''+out;
  27. var rep=out.replace('undefined','');
  28. //check if Discourse object exists if not take care of back navigation
  29. t2.value=(rep);
  30. // window.location=((data.keyCode));
  31.  
  32. };
  33. </script>
Advertisement
Add Comment
Please, Sign In to add comment