Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>That can actually be done in pure CSS. So, given the following markup... Yes, I'm using a <code>&lt;table&gt;</code>, but, <em>a track list is tabular data</em>. You could do the same thing with <code>&lt;div&gt;</code>.</p> <pre><code>&lt;table id="tracklist"&gt; &lt;tr class="row-heading"&gt; &lt;th class="col-preview"&gt;Preview&lt;/th&gt; &lt;th class="col-trackno"&gt;Track No.&lt;/th&gt; &lt;th class="col-trackname"&gt;Track Name&lt;/th&gt; &lt;th class="col-length"&gt;Track Length&lt;/th&gt; &lt;/tr&gt; &lt;tr class="row-track"&gt; &lt;td class="col-preview"&gt;&lt;a href="#"&gt;Preview&lt;/a&gt;&lt;/td&gt; &lt;td class="col-trackno"&gt;1.&lt;/td&gt; &lt;td class="col-trackname"&gt;Hello World&lt;/td&gt; &lt;td class="col-length"&gt;13:37&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre> <p>You can use the following CSS to hide/show the preview link on hover...</p> <pre><code>#tracklist .row-track .col-preview a { display: none; } #tracklist .row-track:hover { background: #ddd; border: 1px solid #aaa; } #tracklist .row-track:hover .col-preview a { display: block; } </code></pre> <p><a href="http://jsfiddle.net/JRmAx/" rel="nofollow">Here is the result</a>.</p> <p><strong>NOTE:</strong> It doesn't work in Internet Explorer 6 but IE6 is the modern day equivalent of the piñata. It's pointless to try and preserve it, <a href="http://ie6countdown.com/" rel="nofollow">even its owner is having a swing at it with a bat</a>.</p> <hr> <p>As for the actual preview button, you can use <a href="http://www.schillmania.com/projects/soundmanager2/" rel="nofollow">SoundManager2</a> to create something similar. Simply modify the CSS above to target the proper element.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload