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

    Dare ad una tabella un collegamento

    Ho una minitabella che in realtà non è altro che un bottone (con bordi smussati, ecc). Mi interesserebbe sapere come dare un collegamento all'intera tabella, attualmente il link funziona solo se clicco sul testo nella tabella, a me interesserebbe che, da qualsiasi parte uno clicchi, esca il puntatore mano, e vada al link
    Il 90% dei problemi di un pc si trova
    tra la tastiera e la sedia.

  2. #2
    Amministratore L'avatar di Vincent.Zeno
    Registrato dal
    May 2003
    residenza
    Emilia-Romagna (tortellini und cappelletti land!)
    Messaggi
    20,783
    ... se non erro, le tabelle non sono linkabili.

  3. #3
    Utente di HTML.it L'avatar di Gunn
    Registrato dal
    Feb 2006
    Messaggi
    370
    vediamo... uhm

    <style type="text/css">
    table#mytable{border:1px black solid;border-collapse:collapse;}
    table#mytable td,table#mytable th{border:1px black solid;padding:10px;}
    </style>

    <table id="mytable">
    <tr><th>prova</th><td>prova</td><td>prova</td></tr>
    <tr><th>prova</th><td>prova</td><td>prova</td></tr>
    <tr><th>prova</th><td>prova</td><td>prova</td></tr>
    <tr><th>prova</th><td>prova</td><td>prova</td></tr>
    <tr><th>prova</th><td>prova</td><td>prova</td></tr>
    <tr><th>prova</th><td>prova</td><td>prova</td></tr>
    <tr><th>prova</th><td>prova</td><td>prova</td></tr>
    <tr><th>prova</th><td>prova</td><td>prova</td></tr>
    </table>

    <span>Visualizza l'approfondimento di questa tabella</span>

    <script type="text/javascript">
    var altezza = document.getElementById("mytable").offsetHeight;
    var larghezza = document.getElementById("mytable").offsetWidth;
    var thelink = document.getElementById("mytable_link");
    thelink.style.display = "block";
    thelink.style.position = "relative";
    thelink.style.top = "-" + altezza + "px";
    thelink.style.height = altezza + "px";
    thelink.style.width = larghezza + "px";
    thelink.firstChild.style.display = "none";
    </script>
    -10 points to SCLERO high top class [definition of SCLERO HIGH TOP CLASS: 90 random kills]

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.