Visualizzazione dei risultati da 1 a 9 su 9

Discussione: link esterno

  1. #1

    link esterno

    Vorrei che al momento del click la pagina linkata mi si aprisse in una nuova finestra e non nella stessa. posto di seguito il codice che ho usato per fare il bottone. Grazie

    <td width="196" height="57" align="center" valign="middle"> <input name="Scrivi" type="button" id="tuoID" class="bottone" onMouseOver="this.className='bottoneHover'" onMouseOut="this.className='bottone'" onClick="parent.location='http://www.libero.it'" value="Sfoglia il Volume"/></td>
    ...l'uomo libero amerà sempre il mare...

  2. #2
    prova a mettere

    target="_blank"

    nel tag <form>

  3. #3
    Moderatore di Annunci siti web, Offro lavoro/collaborazione, Cerco lavoro L'avatar di cavicchiandrea
    Registrato dal
    Aug 2001
    Messaggi
    26,133

    Re: link esterno

    Originariamente inviato da Male
    Vorrei che al momento del click la pagina linkata mi si aprisse in una nuova finestra e non nella stessa. posto di seguito il codice che ho usato per fare il bottone. Grazie
    imposta nei parametri del button target="_blank"
    Cavicchi Andrea
    Problemi con javascript, jquery, ajax clicca qui

  4. #4
    mmm ma non è possibile mettere un'aggiunta a questa stringa senza andare a modificare il css??? ora vi posto anche il css...grazie!!

    <style type="text/css">
    <!--

    input.bottone,input.bottoneHover{
    font-family:Verdana,Arial;
    font-size:12px;
    font-weigth:bold;
    cursorointer;
    width: 164px;
    height:25px;
    margin:0;
    padding:0px;
    border:0;}
    input.bottone{background-color:#E45601;
    color:#FFFFFF;}
    input.bottoneHover{background-color:#000000;
    color:#E45601;}

    -->
    </style>
    ...l'uomo libero amerà sempre il mare...

  5. #5
    Utente di HTML.it
    Registrato dal
    Oct 2006
    Messaggi
    213
    prova ad usare window al posto di location

  6. #6
    scusa ma il bottone non sta in un form?

    se non c'è il form basta crearlo mettendo il link nell'azione
    e ci metti il _blank


  7. #7
    se metto window al posto di location non cambia nulla. Per il resto boh non sono molto esperto di javascript e le uniche cose che si riferiscono al bottone sono quelle che ho postato.

    Ti posto tutto il codice così da non fare casini, è un po' lunghetto però...

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Le Cattedrali di Smeraldo</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    <!--

    input.bottone,input.bottoneHover{
    /* Qui vanno le impostazioni comuni */
    font-family:Verdana,Arial;
    font-size:12px;
    font-weigth:bold; /* per il grassetto */
    cursorointer;
    width: 164px;
    height:25px;
    margin:0;
    padding:0px;
    border:0;}
    input.bottone{background-color:#E45601;
    color:#FFFFFF;}
    input.bottoneHover{background-color:#000000;
    color:#E45601;}

    -->
    </style>
    </head>

    <body bgcolor="#333333" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">

    <tr>
    <td width="12" height="14"></td>
    <td width="228"></td>
    <td width="562"></td>
    </tr>
    <tr>
    <td height="19"></td>
    <td valign="top"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">CATTEDRALIDISMERALDO<font color="#E45601">.COM</font></font></td>
    <td></td>
    </tr>
    <tr>
    <td height="15"></td>
    <td></td>
    <td></td>
    </tr>
    </table>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">

    <tr>
    <td width="1" height="90"></td>
    <td width="100%" align="center" valign="top" bgcolor="#000000">[img]Foto/SfondoHome.jpg[/img]</td>
    <td width="36"></td>
    </tr>
    </table>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">

    <tr>
    <td width="218" height="19"></td>
    <td width="100%" align="center" valign="top" bgcolor="#000000">
    <script type="text/javascript" language="JavaScript">
    <!--

    /* A REGLER MANUELLEMENT SI LE CADRE EST TROP PETIT */
    hauteurcadre = 0;

    xmenu = new Array;
    xlien = new Array;

    xmenu[0] = 'Autore';
    xmenu[1] = 'Il Volume';
    xmenu[2] = 'I Luoghi';
    xmenu[3] = 'Le Storie';
    xmenu[4] = 'Gallerie';
    xmenu[5] = 'Recensioni';
    xmenu[6] = 'Acquista';
    xmenu[7] = 'Home';

    xlien[0] = ''
    xlien[1] = ''
    xlien[2] = ''
    xlien[3] = ''
    xlien[4] = ''
    xlien[5] = ''
    xlien[6] = ''
    xlien[7] = ''
    xlien[0] += '<A =" " CLASS=menudyn2>|</A>';
    xlien[1] += '<A =" " CLASS=menudyn2>|</A>';
    xlien[2] += 'New England';
    xlien[2] += '<A =" " CLASS=menudyn2>|||||</A>';
    xlien[2] += 'Mid Atlantic';
    xlien[2] += '<A =" " CLASS=menudyn2>|||||</A>';
    xlien[2] += 'Go West';
    xlien[2] += '<A =" " CLASS=menudyn2>|||||</A>';
    xlien[2] += 'I Parchi Nazionali';
    xlien[2] += '<A =" " CLASS=menudyn2>|||||</A>';
    xlien[2] += 'Western Canada';
    xlien[2] += '<A =" " CLASS=menudyn2>|||||</A>';
    xlien[2] += 'Pacific Northwest';
    xlien[2] += '<A =" " CLASS=menudyn2>|||||</A>';
    xlien[2] += 'Alaska';
    xlien[3] += 'Amish';
    xlien[3] += '<A =" " CLASS=menudyn2>|||||</A>';
    xlien[3] += 'Lewis e Clark';
    xlien[3] += '<A =" " CLASS=menudyn2>|||||</A>';
    xlien[3] += 'Nativi Americani';
    xlien[4] += 'Foto';
    xlien[4] += '<A =" " CLASS=menudyn2>|||||</A>';
    xlien[4] += 'Video';
    xlien[5] += '<A =" " CLASS=menudyn2>|</A>';
    xlien[6] += 'On-Line';
    xlien[6] += '<A =" " CLASS=menudyn2>|||||</A>';
    xlien[6] += 'Librerie';
    xlien[7] += '<A =" " CLASS=menudyn2>|</A>';
    document.write('<STYLE TYPE="text/css">\nA.menudyn2 {color:#E45601; text-decoration:none;}\nA:hover.menudyn2 {color:#E45601;text-decoration:none;}\n</STYLE>');
    document.write('<STYLE TYPE="text/css">\nA.menudyn3 {color:#FFFFFF; text-decoration:none;}\nA:hover.menudyn3 {color:#000000;text-decoration:none;}\n</STYLE>');

    document.write('<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH='+(xlien.length*100)+' BGCOLOR=#000000> <TR><TD><TABLE CELLPADDING=10 CELLSPACING=0 BORDER=0 WIDTH=100%> <TR>');

    for(i=0;i<xlien.length;i++)

    {
    document.write('<TD BGCOLOR=#E45601 onMouseOver="javascript:colorIt(this);MajMenu('+i+ ')" ALIGN=center ID=td'+i+'><FONT SIZE=1 FACE="Verdana">'+xmenu[i]+'</FONT></TD>');
    }
    document.write('</TR> <TR> <TD COLSPAN='+(xlien.length)+' BGCOLOR=#E45601 HEIGHT='+hauteurcadre+' VALIGN=top><ilayer id="dynamenu31" width=100% height='+hauteurcadre+'><layer id="dynamenu32" width=100% height='+hauteurcadre+'><div id="dynamenu33"></div></layer></ilayer></TD> </TR></TABLE></TD></TR></TABLE>');

    function colorIt(tditem)
    {
    if(document.all)
    {
    document.all.td0.style.background='#000000';
    document.all.td1.style.background='#000000';
    document.all.td2.style.background='#000000';
    document.all.td3.style.background='#000000';
    document.all.td4.style.background='#000000';
    document.all.td5.style.background='#000000';
    document.all.td6.style.background='#000000';
    document.all.td7.style.background='#000000';
    tditem.style.background='#E45601';
    }
    else if(document.getElementById)
    {
    document.getElementById("td0").style.background='# 000000';
    document.getElementById("td1").style.background='# 000000';
    document.getElementById("td2").style.background='# 000000';
    document.getElementById("td3").style.background='# 000000';
    document.getElementById("td4").style.background='# 000000';
    document.getElementById("td5").style.background='# 000000';
    document.getElementById("td6").style.background='# 000000';
    document.getElementById("td7").style.background='# 000000';
    tditem.style.background='#E45601';
    }
    }

    function MajMenu(menu)
    {
    which = xlien[menu];
    if (document.layers){
    document.dynamenu31.document.dynamenu32.document.w rite('<FONT SIZE=1 FACE="Verdana">'+which+'</FONT>')
    document.dynamenu31.document.dynamenu32.document.c lose()
    }
    else if (document.getElementById)
    {
    document.getElementById("dynamenu33").innerHTML = '<CENTER><FONT SIZE=1 FACE="Verdana, Arial">'+which+'[/B]</FONT></CENTER>';
    }
    else if (document.all){
    dynamenu33.innerHTML=''
    dynamenu33.innerHTML='<FONT SIZE=1 FACE="Verdana">'+which+'</FONT>';
    }
    }
    if (document.getElementById)
    colorIt(document.getElementById("td1"));
    else if (document.all){
    colorIt(document.all.td1);
    }
    MajMenu(1);
    //-->
    </script></td>
    <td width="328"></td>
    </tr>
    </table>
    <div align="center">
    <table width="802" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">

    <tr>
    <td width="10" height="10"></td>
    <td width="196"></td>
    <td width="27"></td>
    <td width="557"></td>
    <td width="12"></td>
    </tr>
    <tr>
    <td height="57"></td>
    <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#232323">

    <tr>
    <td width="196" height="57" align="center" valign="middle"> <input name="Scrivi" type="button" id="tuoID" class="bottone"
    onMouseOver="this.className='bottoneHover'" onMouseOut="this.className='bottone'" onClick="parent.location='http://www.libero.it'" value="Sfoglia il Volume"/></td>
    </tr>
    </table></td>
    <td></td>
    <td rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#232323">

    <tr>
    <td width="10" height="10"></td>
    <td width="537"></td>
    <td width="10"></td>
    </tr>
    <tr>
    <td height="1197"></td>
    <td valign="top"><font color="#FFFFFF" face="Times New Roman, Times, serif">Pi&ugrave;
    di un secolo fa il naturalista e scrittore californiano John Muir
    razie per la Vostra visita, e Buon Viaggio.</font></td>
    <td></td>
    </tr>
    <tr>
    <td height="10"></td>
    <td></td>
    <td></td>
    </tr>
    </table></td>
    <td></td>
    </tr>
    <tr>
    <td height="1160"></td>
    <td></td>
    <td></td>
    <td></td>
    </tr>
    <tr>
    <td height="10"></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    </tr>
    </table>
    </div>
    </body>
    </html>
    ...l'uomo libero amerà sempre il mare...

  8. #8
    anzi la miglior cosa sarebbe riuscire ad aprire un popup di 800 x 600 senza barre di navigazione e non modificabile...
    ...l'uomo libero amerà sempre il mare...

  9. #9
    oleeee ho risolto, metto di seguito la soluzione se per caso dovesse un giorno servire a qualcuno.
    onClick="MM_openBrWindow('Flash/MooveLeCattedraliDiSmeraldo.swf','','width=800,hei ght=600')"
    Ciao ciao ragazzi e grazie!!!!!!
    ...l'uomo libero amerà sempre il mare...

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.