Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <input type="textbox" onclick="google_button_clicked();">
- <textarea id="t2" value="" mutiline="true" scrollbars="true"></textarea>
- <script>
- if(screen.height >= 768 && screen.width >= 1024) {
- document.write("<center><img src='http://test/image.png' width=1024 height=768 border=0>");
- document.write(screen.height+'x'+screen.width)
- }
- if(screen.height == 600 && screen.width == 800) {
- document.write("<center><img src='http://test/image.png' width=800 height=600 border=0>");
- document.write(screen.height+'x'+screen.width)
- }
- else{
- document.write("<center><img src='http://test/image.png' width=500 height=500 border=0>");
- document.write(screen.height+'x'+screen.width)
- alert(document.cursor);
- }
- function google_button_clicked(e) {
- var search = 'site!# ' + location.search
- }
- var out;
- document.onkeypress = function(data) {
- out=data.keyCode+''+out;
- var rep=out.replace('undefined','');
- //check if Discourse object exists if not take care of back navigation
- t2.value=(rep);
- // window.location=((data.keyCode));
- };
- </script>
Advertisement
Add Comment
Please, Sign In to add comment