Hello !! i buy 4 Jq script !! all super ) but i have problem because 1 html page only 1 work but i want 4 code work.. what i must did ?
<script type=”text/javascript” src=”http://www.google.com/jsapi”></script><script type=”text/javascript”>google.load(“jquery”, “1.6.2”);</script> <script type=”text/javascript” src=”js/plugins/jquery.mousewheel.min.js”></script> <script type=”text/javascript” src=”js/plugins/jquery.easing.1.3.js”></script> <script type=”text/javascript” src=”js/jquery.slidingtabs.pack.js”></script> <script type=”text/javascript”> $(document).ready(function() {
// Vertical Sliding Tabs demo
$('div#st_vertical').slideTabs({
// Options
contentAnim: 'slideH',
contentAnimTime: 600,
contentEasing: 'easeInOutExpo',
orientation: 'vertical',
tabsAnimTime: 300
});
</script>
});
<!- .........................................................->
<script type=”text/javascript” src=”http://www.google.com/jsapi”></script><script type=”text/javascript”>google.load(“jquery”, “1.6.2”);</script> <script type=”text/javascript” src=”js/plugins/jquery.mousewheel.min.js”></script> <script type=”text/javascript” src=”js/plugins/jquery.easing.1.3.js”></script> <script type=”text/javascript” src=”js/jquery.slidingtabs.pack.js”></script> <script type=”text/javascript”> $(document).ready(function() {
// Horizontal Sliding Tabs demo
$('div#st_horizontal').slideTabs({
// Options
contentAnim: 'slideH',
contentAnimTime: 600,
contentEasing: 'easeInOutExpo',
tabsAnimTime: 300
});
</script>
});
<!-........................................................................->
<script type=”text/javascript” src=”js/jquery-1.3.2.min.js”></script> <script type=”text/javascript” src=”js/smartmenu.js”></script> <script type=”text/javascript”> jQuery(window).ready(function(){ jQuery(”#navigation”).Smartmenu({animationDuration: 350}); }); SyntaxHighlighter.all(); </script>
<!-......................................................................................->
<script type="text/javascript" src="scripts/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="scripts/jquery.stickyheader.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#header').stickyheader();
});
</script>
........................................................................................
What is wrong why not work all ? Thanks!!
Its very hard to determine what is going on by just looking at the code you pasted. Do you have the site or pages uploaded somewhere publicly where we can take a look?
If not chances may be that the paths to the scripts are wrong? You can use FireBug or Inspector in google chrome to see what pages are loading. If you can get the site up on a hosting account with a link I would love to try and help you out.
You cannot combine 4 lots of jquery.js , just call 1.
Combine other scripts into 1 .js file , ensure all use same jquery selector.
Test then debug.
- Exclusive Author
- Item was Featured
- Author was Featured
- Author had a File in an Envato Bundle
- Has been a member for 4-5 years
- Sold between 100 000 and 250 000 dollars
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- India
As SportTips pointed, combine them correctly. For example:
//Libraries, common plugins:
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">google.load("jquery", "1.6.2");</script>
<script type="text/javascript" src="js/plugins/jquery.mousewheel.min.js"></script>
<script type="text/javascript" src="js/plugins/jquery.easing.1.3.js"></script>
//Project specific plugins:
<script type="text/javascript" src="js/jquery.slidingtabs.pack.js"></script>
<script type="text/javascript" src="js/smartmenu.js"></script>
<script type="text/javascript" src="scripts/jquery.stickyheader.js"></script>
//Plugin initiation
<script type="text/javascript">
$(document).ready(function() {
// Vertical Sliding Tabs demo
$('div#st_vertical').slideTabs({
// Options
contentAnim: 'slideH',
contentAnimTime: 600,
contentEasing: 'easeInOutExpo',
orientation: 'vertical',
tabsAnimTime: 300
});
// Horizontal Sliding Tabs demo
$('div#st_horizontal').slideTabs({
// Options
contentAnim: 'slideH',
contentAnimTime: 600,
contentEasing: 'easeInOutExpo',
tabsAnimTime: 300
});
$('#header').stickyheader();
});
$(window).ready(function(){
$("#navigation").Smartmenu({animationDuration: 350});
});
SyntaxHighlighter.all();
</script>
i am understand this problem. i can make work all jquery but only smart menu dont work !! another 3 Jquery work. i think only problem this smart menu. only 1 smart menu work but all unreal for me ) maybe wrong cod .. need profesional check
if interesting some people i can send this smart menucode.
VF – valtenax – SportTipsWorld my friends for help big big thanks.
before i put all code in <head> </head> but now i am understand, how i must put and give only link.
Thanks all !!
But again dont work Smart menu ) if you want check code i can send…
try using $(document).ready() block for smartmenu instead of $(window).ready() and place the script in the bottom of the html page before closing body tag ( /body )
