• User Attivo

    codice funziona solo su internet explorer

    ho un problemino con questo redirect..mi funge solo con IE perche' non va' con firefox e altri ?

    <a href="http://www.google.it" onMouseOver="location.href = 'http://www.google.it';">
    <TABLE WIDTH=100% BORDER=1 CELLPADDING=4 CELLSPACING=3 STYLE="page-break-before: always">
    <COL WIDTH=256*>
    <TR>
    <TD WIDTH=100% VALIGN=TOP>
    <H1 ALIGN=CENTER>prova</H1>
    </TD>
    </TR>
    </TABLE>

    grazie


  • Super User

    Ecco un codice funzionante.
    Adattalo a tuo piacimento.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_goToURL() { //v3.0
      var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
      for (i=0; i<(args.length-1); i+=2) eval(args*+".location='"+args[i+1]+"'");
    }
    //-->
    </script>
    </head>
    <body>
    <table onmouseover="MM_goToURL('parent','http://www.google.it/');return document.MM_returnValue" width=100% border=1 cellpadding=4 cellspacing=3 style="page-break-before: always">
        <col width=256*>
        <tr>
            <td width=100% valign=TOP><h1 align=CENTER>prova</h1></td>
        </tr>
    </table>
    </body>
    </html>
    
    

    Sposto nella sezione script.
    Ciao :ciauz: