Note that there are some explanatory texts on larger screens.

plurals
  1. POJQuery error when two scripts are run together
    primarykey
    data
    text
    <p>My overall aim is to have an tabbed menu with 4 tabs. Within each tab I also want a simple slider to work, where I can add different things in each of these sliders.</p> <p>Currently I have code which on its own create an tabbed menu, which works fine (currently each tab has static text). I also have a working simple slider.</p> <p>I thought that if I replace the static text I currently have with the slider divs etc it would give me the final product I want (an tabbed menu with sliders).</p> <p>However when I add these two things together in one page, it doesn't work. The tabbed menu just overflows (shows all four tabbed areas rather than just one). I'm a novice at JQuery so any help/explanations would be greatly appreciated. My JQuery code combined is below:</p> <pre><code>$(document).ready(function(){ $('#homebox_tabs div').hide(); $('#homebox_tabs div:first').show(); $('#homebox_tabs ul li:first').addClass('active'); $('#homebox_tabs ul li a').click(function(){ $('#homebox_tabs ul li').removeClass('active'); $(this).parent().addClass('active'); var currentTab = $(this).attr('href'); $('#homebox_tabs div').hide(); $(currentTab).show(); return false; }); }); </code></pre> <p>This code is for my tabbed menu.</p> <pre><code>jQuery.noConflict(); try { jQuery(document).ready(function($){ $(".right-button").stop(true, true).fadeOut(); $(".left-button").stop(true, true).fadeOut(); simpleSlide({ 'set_speed': 1000 }); $('#slide').hover( function () { $(".right-button").stop(true, true).fadeIn(); $(".left-button").stop(true, true).fadeIn(); }, function () { $(".right-button").stop(true, true).fadeOut(); $(".left-button").stop(true, true).fadeOut(); } ); }); } catch (e) {alert(e);} </code></pre> <p>This is the code for the simple slider.</p>
    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