Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

  2. #2
    Utente di HTML.it L'avatar di v2v2
    Registrato dal
    Sep 2002
    Messaggi
    221
    dai un Id in questo modo
    codice:
    <input id="chiudi" type="button" onClick="self.close()" value="Chiudi" style="font-family: Verdana; font-size: 8 pt">
    e poi:
    codice:
    <input type="button" onClick="this.style.visibility='hidden';document.getElementById('chiudi').style.visibility='hidden'; window.print();" value="Stampa Scheda" style="font-family: Verdana; font-size: 8 pt; float: right">
    Only the good die young
    all the evil seem to live forever

    :metallica

  3. #3
    Utente di HTML.it
    Registrato dal
    Oct 1999
    Messaggi
    269
    Originariamente inviato da v2v2
    dai un Id in questo modo
    codice:
    <input id="chiudi" type="button" onClick="self.close()" value="Chiudi" style="font-family: Verdana; font-size: 8 pt">
    e poi:
    codice:
    <input type="button" onClick="this.style.visibility='hidden';document.getElementById('chiudi').style.visibility='hidden'; window.print();" value="Stampa Scheda" style="font-family: Verdana; font-size: 8 pt; float: right">
    ...casino!

    Forse è meglio il codice?

    codice:
     <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>INFORMAZIONI DELIVERY - SMARTCARD BWAY</title>
    </head>
    
    <body bgproperties="fixed" link="#000000" vlink="#000000" alink="#000000">
    <div align="center">
      <center>
      <table border="0" width="412">
        <tr>
          <td align="right" width="275">
          
          <script Language="JavaScript">
    
    <!--
    
    
    
    // Funzioni per il roll-over, la data e l'ora
    
    
    
    // Common variables
    
    today=new Date();
    
    
    
    // Browser Detection
    
    browser_name = navigator.appName;
    
    browser_version = parseFloat(navigator.appVersion); 
    
    if (browser_name == "Netscape" && browser_version >= 3.0)
    
    	{ roll = 'true'; }
    
    else if (browser_name == "Microsoft Internet Explorer" && browser_version >= 4.0)
    
    	{ roll = 'true'; }
    
    else
    
    	{ roll = 'false'; }
    
    
    
    
    // Months and Days arrays (english version)
    
    var EisnMonths=new isnArray("January","February","March","April","May","June","July","August","September","October","November","December");
    
    var EisnDays= new isnArray("Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday");
    
    EisnDays[0] = EisnDays[7]
    
    
    
    // Months and Days arrays (italian version)
    
    var IisnMonths=new isnArray("Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre");
    
    var IisnDays= new isnArray("Lunedi","Martedi","Mercoledi","Giovedi","Venerdi","Sabato","Domenica");
    
    IisnDays[0] = IisnDays[7]
    
    
    
    // Month and Days Array initializer
    
    function isnArray()
    
    {
    
     argnr=isnArray.arguments.length
    
     for (var i=0;i<argnr;i++) {
    
      this[i+1] = isnArray.arguments[i];
    
      }
    
    }
    
    
    
    // Write today's date
    
    function date_today(lang)
    
    {
    
    	if (lang=="E") // english format
    
    	{
    
    	if (today.getYear()<=99) {nyear="19"} else {nyear=""}
    
    	document.write(EisnDays[today.getDay()]+" "+EisnMonths[today.getMonth()+1] +" "+today.getDate()+" "+ nyear + today.getYear());
    
    	}
    
    	if (lang=="I") // italian format
    
    	{
    
    	if (today.getYear()<=99) {nyear="19"} else {nyear=""}
    
    	document.write(IisnDays[today.getDay()]+" "+ today.getDate()+ " " +IisnMonths[today.getMonth()+1] +" "+ nyear + today.getYear());
    
    	}
    
    }
    
    
    
    // On mouse_over and mouse_out (swap images)
    
    function mOver(img,ref) { if (roll == 'true') { img.src=imglist[ref]+dwsfx } }
    
    function mOut(img,ref)  { if (roll == 'true') { img.src=imglist[ref]+upsfx } }
    
    
    
    //-->
    
        </script>
          <p align="left"><font face="Verdana" size="1"><script LANGUAGE="JavaScript"> date_today ("I");</script>
          </font>
          </td>
          <td align="right" width="255">
    <input type="button" onClick="this.style.visibility='hidden';document.getElementById("chiudi").style.visibility='hidden'; window.print();" value="Stampa Scheda" style="font-family: Verdana; font-size: 8 pt; float: right">       </td>
        </tr>
      </table>
      </center>
    </div>
    <div align="center">
      <center>
      <table border="0" width="412">
        <tr>
          <td width="404">
          </td>
        </tr>
      </table>
      </center>
    </div>
    
    <div align="center">
    
    <table cellspacing="0" cellpadding="2" border="0" class="myStyle_TABLE" width="408">
        <tr>
    		<td width="404">
              <p align="center"><font size="1" face="Verdana">
              
    
              Per informazioni contattare:
    
              ACCINNO ITALO Int. 28875 (16562)
    
              -- DIREZIONE GENERALE</font></p>
            </td>
        </tr>
    
    </table>
    
      <center>
      <table border="0" width="409">
        <tr>
          <td width="404">
                    <hr size="1" color="#0000FF"></td>
        </tr>
      </table>
      </center>
    </div>
    
    <div align="center">
      <table border="0" width="410">
        <tr>
          <td width="202">
            <p align="left">
      <input id="chiudi" type="button" onClick="self.close()" value="Chiudi" style="font-family: Verdana; font-size: 8 pt"></td>
      <center>
          <td width="202">
            <p align="right"><font face="Verdana" size="1">By S. Imparato A.T.C.B.
            </font></td>
        </tr>
      </table>
      </center>
    </div>
    
    </body>
    </html>

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.