我想創建一個包含革命滑塊和製表符腳本的頁面。Jquery製表符與革命滑塊衝突
您可以在這裏找到頁面:http://lovebomb.nl/dating
但不知何故腳本彼此衝突。
革命滑塊的這一部分:
var tpj=jQuery;
tpj.noConflict();
tpj(document).ready(function() {
if (tpj.fn.cssOriginal!=undefined)
tpj.fn.css = tpj.fn.cssOriginal;
tpj('.fullwidthbanner').revolution(
{
delay:9000,
startwidth:1024,
startheight:616,
onHoverStop:"on", // Stop Banner Timet at Hover on Slide on/off
thumbWidth:100, // Thumb With and Height and Amount (only if navigation Tyope set to thumb !)
thumbHeight:50,
thumbAmount:3,
navigationStyle:"round", // round,square,navbar,round-old,square-old,navbar-old, or any from the list in the docu (choose between 50+ different item), custom
navigationHAlign:"center", // Vertical Align top,center,bottom
navigationVAlign:"top", // Horizontal Align left,center,right
navigationHOffset:0,
navigationVOffset:20,
soloArrowLeftHalign:"left",
soloArrowLeftValign:"center",
soloArrowLeftHOffset:20,
soloArrowLeftVOffset:0,
soloArrowRightHalign:"right",
soloArrowRightValign:"center",
soloArrowRightHOffset:20,
soloArrowRightVOffset:0,
touchenabled:"off", // Enable Swipe Function : on/off
stopAtSlide:1, // Stop Timer if Slide "x" has been Reached. If stopAfterLoops set to 0, then it stops already in the first Loop at slide X which defined. -1 means do not stop at any slide. stopAfterLoops has no sinn in this case.
stopAfterLoops:0, // Stop Timer if All slides has been played "x" times. IT will stop at THe slide which is defined via stopAtSlide:x, if set to -1 slide never stop automatic
hideCaptionAtLimit:0, // It Defines if a caption should be shown under a Screen Resolution (Basod on The Width of Browser)
hideAllCaptionAtLilmit:0, // Hide all The Captions if Width of Browser is less then this value
hideSliderAtLimit:0, // Hide the whole slider, and stop also functions if Width of Browser is less than this value
fullWidth:"on",
shadow:0 //0 = no Shadow, 1,2,3 = 3 Different Art of Shadows - (No Shadow in Fullwidth Version !)
});
});
似乎與標籤腳本的這一部分有衝突:
$(document).ready(function(){
$('#tabs div').hide();
$('#tabs div:first').show();
$('#tabs ul li:first').addClass('active');
$('#tabs ul li a').click(function(){
$('#tabs ul li').removeClass('active');
$(this).parent().addClass('active');
var currentTab = $(this).attr('href');
$('#tabs div').hide();
$(currentTab).show();
return false;
});
});
這些腳本被組合在一個JS文件,該文件可以在這裏找到:http://lovebomb.nl/dating/tabs.js
我用這個站點作爲標籤腳本的基礎:http://www.snelgeldonlineverdienen.nl/
唯一的區別是jQuery和jQuery UI版本。 如果我使用此頁面的jquery版本,則轉動滑塊不再起作用。
我已經嘗試修復約4個小時的標籤。
真的可以使用一些幫助。
感謝提前:)
Luuk
我真的很高興看到一個答案:)不幸的是,這不是答案。我試過你的代碼,它仍然以同樣的方式顯示它。 @ceetee無論如何感謝你的時間,希望你能幫助我進一步? – Luuk
Hey Luuk,剛剛更新了最後一個代碼片段。 $(document).ready開頭的$也需要用tpj或jQuery替換。 –
你真棒!謝謝!有用 – Luuk