में jquery का उपयोग कर jquery मैंने थोड़ी सी jquery स्क्रिप्ट बनाई और मुझे कस्टम फ़ंक्शन में (यह) उपयोग करने में समस्या है।कस्टम फ़ंक्शन
jQuery("li").click(function()
{
var scrollTop = jQuery(window).scrollTop();
if(scrollTop > 0)
{
jQuery('html, body').animate({ scrollTop: 0 }, 'slow', function()
{
fadeItems();
});
}
else
{
fadeItems();
}
});
function fadeItems()
{
var slogan = jQuery(this).children('p').html();
jQuery('#slogan_text').fadeOut(150, function(){
jQuery('#slogan_text').fadeIn(150).html(slogan);
});
var content = jQuery(this).children('#post_content_large').html();
jQuery('#content_view').html(content).hide();
var status = jQuery("#readMore").html();
if(status == 'Verbergen')
{
jQuery('#content_view').fadeIn(500, function(){
jQuery('#content_view').fadeIn(500).html(content);
});
}
var title = jQuery(this).children('h3').html();
jQuery('#title_content').fadeOut(150, function(){
jQuery('#title_content').fadeIn(150).html(title);
});
}
तो समारोह चलता है जब एक सूची आइटम पर क्लिक करके और उस wel चला जाता है, लेकिन (यह) के मूल्यों
किसी को पता है कि यह कैसे तय करने के लिए रिक्त है:
इस कोड है?
अग्रिम धन्यवाद!
धन्यवाद (यह) काम किया! :) –