Senin, 18 Januari 2016

MEMBUAT IKLAN












CONTOH PROGRAMNYA

 
<html>
  <head>
   <title></title>
  </head>
 <body onload="tampil()">
    <script>
            function tampil()
            {
                var mywindow1=window.open("","","width=250, height=300px,location=no,risizeable=n-resize, dialog=2");
                mywindow1.document.write("masukan iklan anda");
                var atr
                atr="<html><head><title>My window</title><style>h1{font-size:200px;}</style></head><body bgcolor=yellow><h1>1</h1></body></html>";
                mywindow1.document.write(atr);
               
                var mywindow2=window.open("","","width=250, height=300px,left=1360px,location=no,risizeable=n-resize, dialog=1");
                mywindow2.document.write("window buatanku");
                atr="<html><head><title>My window</title></head><body bgcolor=aqua></html>";
                mywindow2.document.write(atr);
               
                var mywindow3=window.open("","","width=250, height=300px,top=850px,left=1360px,location=no,risizeable=n-resize, dialog=3");
                mywindow3.document.write("window buatanku");
                atr="<html><head><title>My window</title></head><body bgcolor=green></body></html>";
                mywindow3.document.write(atr);
                var mywindow4=window.open("","","width=250, height=300px,top=850px,location=no,risizeable=n-resize, dialog=4");
                mywindow4.document.write("window buatanku");
                atr="<html><head><title>My window</title></head><body bgcolor=pink></body></html>";
                mywindow4.document.write(atr);
            }
    </script>
   
 </body>
</html>



Tidak ada komentar:

Posting Komentar