$(document).ready(function(){ /* The following code is executed once the DOM is loaded */
$('.sponsorFlip').bind("click",function(){
// $(this) point to the clicked .sponsorFlip element (caching it in elem for speed):
var elem = $(this);
// data('flipped') is a flag we set when we flip the element:
if(elem.data('flipped')) { // If the element has already been flipped, use the revertFlip method // defined by the plug-in to revert to the default state automatically:
elem.revertFlip();
// Unsetting the flag: elem.data('flipped',false) } else { // Using the flip method defined by the plugin:
elem.flip({ direction:'lr', speed: 350, onBefore: function(){ // Insert the contents of the .sponsorData div (hidden from view with display:none) // into the clicked .sponsorFlip div before the flipping animation starts:
Setting up "SponsorFlipWall" in XSLT with Embedded Content?
Hello everyone =)
I want to use this effect on my Items I have displayed on my page through the package 'Embedded Content'.
I downloaded the package and copied the JS code into copies in my JS-folder and linked them up, I also took the CSS from the package.
Here is my Xslt:
It hides my header and description just fine - but I cant make it flip? can anyone tell my why.?
Kind Regards,
Djan
and my JS:
* import the Jquery FIRST.
is working on a reply...