Shape 5

Joomla Templates => CleanOut - Club => : joegrande February 02, 2015, 09:33:18 PM



: Info Slide java script errors
: joegrande February 02, 2015, 09:33:18 PM
Hello,

I have 4 modules using the info slide classes.  They were working but now are not and I cannot figure out why. Looking through Firefox Inspector, the errors are bringing me to this piece of code and the line

jQuery(items).each(function (index, item) {
            jQuery(item).mouseenter(function (d) {
              var height = items.eq(index).children('img')[0].offsetHeight;
      if(d.target.nodeName != 'IMG' && jQuery('img',d.target).length > 0) d.target = jQuery('img',d.target);
                jQuery('.' + options.items5_is_slide, jQuery(d.target).parents('.' + options.s5_is)).eq(0).animate({
                        height: height + 'px'
                    }, 300);



It is enabled under Vertex - Java Script- Info Slide

Here is the code for one of the modules

<div class="s5_is hide_700" style="float: left; width: 100%; padding-right: 0px;"><a href="index.php/2012-04-10-18-56-53.html"><img src="images/mod_resources/BCI-about3.png" alt="Join BCI" />[/url]
<div class="s5_is_slide">
<h3>About BCI</h3>
<a href="index.php/home-mainmenu-1/members-clubs-ambassadors/australia-artists"> BCI advances the ancient and living art of bonsai,viewing stones and related arts.[/url]</div>
</div>


I got rid of the extra styling in the divs ( took the original code I found from another post on this site), and it made no difference.

The URL is http://testserver.bonsai-bci.com/.

The info slides are on the 4 top modules.

Any insight would be greatly appreciated.  ;D


: Re: Info Slide java script errors
: mikenicoll February 04, 2015, 03:18:43 PM
Hello,

Most likely a script conflict with something you have added to the site. Try using the CSS version of the Info Slide instead of the Jquery version to avoid this type of conflict. You can also try removing anything 3rd party from that page you may have added to resolve the script conflict.