Note that there are some explanatory texts on larger screens.

plurals
  1. POFlip a Div Over with a Link
    primarykey
    data
    text
    <p>So, check this out: <a href="http://maplemountainchorus.org/mandy/index2.html" rel="nofollow">http://maplemountainchorus.org/mandy/index2.html</a></p> <p>Click on the "View Song List" link and the album cover flips over to show what will be a list of songs for the album. The link's name changes to "View Album Art". Click the "View Album Art" link and the album flips over to show the front again. The link's name changes back to "View Song List".</p> <p>Now, click the "View Song List" link again. I want it to flip the album over again, but it doesn't. Anyone know how I can fix this?</p> <p>Also, the flip animations are showing on the other "hidden" albums in the div. Does anyone know how to fix that, also?</p> <p>Here's my jQuery:</p> <pre><code>$(function(){ $(".flipPad a.viewSongList").bind("click",function(){ $(".flipbox").flip({ direction: 'lr', color: '#fff', content: $(".flipbox").addClass("removeBkgrnd").html('&lt;p&gt;Here is the song list.&lt;/p&gt;'), onBefore: function(){$(".flipPad a.viewSongList").html('View Album Art').addClass("viewAlbumArt")}, onEnd: function(){$(".flipPad a.viewSongList.viewAlbumArt").click(function(){ $(".flipbox").removeClass("removeBkgrnd").html(''); $(".flipPad a.viewSongList").removeClass("viewAlbumArt").html('View Song List'); }); } }) return false; }); </code></pre> <p>Here's my HTML:</p> <pre><code> &lt;section id="media"&gt; &lt;div id="buyMusic"&gt; &lt;div id="musicSlider" class="flexslider" style="background-color:#000;"&gt; &lt;ul class="slides"&gt; &lt;li&gt; &lt;div class="flipbox sweetDreams"&gt;&lt;/div&gt; &lt;div class="flipPad"&gt; &lt;a href="#" class="viewSongList"&gt;View Song List&lt;/a&gt; &lt;/div&gt; &lt;/li&gt; &lt;li&gt; &lt;div class="flipbox winterWonderland"&gt;&lt;/div&gt; &lt;div class="flipPad"&gt; &lt;a href="#" class="viewSongList"&gt;View Song List&lt;/a&gt; &lt;/div&gt; &lt;/li&gt; &lt;li&gt; &lt;div class="flipbox rightCry"&gt;&lt;/div&gt; &lt;div class="flipPad"&gt; &lt;a href="#" class="viewSongList"&gt;View Song List&lt;/a&gt; &lt;/div&gt; &lt;/li&gt; &lt;li&gt; &lt;div class="flipbox mandy"&gt;&lt;/div&gt; &lt;div class="flipPad"&gt; &lt;a href="#" class="viewSongList"&gt;View Song List&lt;/a&gt; &lt;/div&gt; &lt;/li&gt; &lt;li&gt; &lt;div class="flipbox platinum"&gt;&lt;/div&gt; &lt;div class="flipPad"&gt; &lt;a href="#" class="viewSongList"&gt;View Song List&lt;/a&gt; &lt;/div&gt; &lt;/li&gt; &lt;li&gt; &lt;div class="flipbox patsy"&gt;&lt;/div&gt; &lt;div class="flipPad"&gt; &lt;a href="#" class="viewSongList"&gt;View Song List&lt;/a&gt; &lt;/div&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div id="musicSliderNav" class="flexslider"&gt; &lt;ul class="slides"&gt; &lt;li&gt; &lt;img src="images/music-sweet-dreams.jpg"/&gt; &lt;/li&gt; &lt;li&gt; &lt;img src="images/music-winter-wonderland.jpg"/&gt; &lt;/li&gt; &lt;li&gt; &lt;img src="images/music-right-cry.jpg"/&gt; &lt;/li&gt; &lt;li&gt; &lt;img src="images/music-mandy.jpg"/&gt; &lt;/li&gt; &lt;li&gt; &lt;img src="images/music-platinum.jpg"/&gt; &lt;/li&gt; &lt;li&gt; &lt;img src="images/music-patsy.jpg"/&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/section&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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. 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