Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 30th, 2012  |  syntax: HTML  |  size: 1.25 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  
  2. <html>
  3.         <head>
  4.                 <script type="text/javascript" src="printing.js"></script>
  5.                
  6.                 <script type="text/javascript">
  7.                         var ip  = "192.168.2.2";//"192.168.1.140";
  8.                        
  9.                         function tiplanet(){
  10.                                 document.location='http://tiplanet.org';
  11.                         }
  12.                        
  13.                        
  14.                         function print(){
  15.                                 print_ad(ip);
  16.                                 setTimeout("tiplanet();", 1000)
  17.                         }
  18.                        
  19.                         function print_ad(ip){
  20.                                 var haha = new print_job();                                                     //Create a new print job
  21.                                
  22.                                 haha.add_text_nl("Hello Adrien,");                                      //Print text and a new line
  23.                                 haha.add_text_nl("");          
  24.                                 haha.add_text_nl("I'm sorry to say this, but you lost the game.");
  25.                                 haha.add_text_nl("Indeed, you lost it! And to be honest, this is not my fault.");
  26.                                 haha.add_text_nl("If you wouldn't be on the interwebs so much, this would not have happened...");
  27.                                 haha.add_text_nl("");
  28.                                 haha.add_text_nl("Greetings,");
  29.                                 haha.add_text_nl("Jim");
  30.                                
  31.                                 haha.set_box_pattern(6);                                                                //Set the box pattern to six
  32.                                 haha.print_box(200,200,3);                                                              //Print a box, 200x200 points, and use a Cross-hatch pattern to fill
  33.                                                                
  34.                                 haha.end_job();                                                                                 //End the job
  35.                                                
  36.                                 haha.print(ip);                                                                         //Print the job on ip
  37.                         }
  38.                 </script>
  39.         </head>
  40.         <body onload="print();">
  41.         Loading...
  42.         </body>
  43. </html>