मैं ऐसे क्लाइंट के लिए site पर काम कर रहा हूं जिसमें jquery संचालित टैबड सामग्री है।पृष्ठ पर एक विशिष्ट टैब खोलने के लिए मुझे एक लिंक कैसे प्राप्त होगा?
सही पृष्ठ से लिंक करना काफी आसान है, लेकिन जब आप वहां पहुंचते हैं तो चुनौती सही टैब पर खुलती है। पृष्ठ पर नीचे स्क्रॉल करें और पर क्लिक करें आइकन (ट्रक वाला एक) इसे ले जाएं। यह आपको move it page पर ले जाता है। यह ठीक काम करता है, लेकिन मैं इसे विशेषता टैब खोलने में सक्षम होना चाहता हूं।
यहाँ कोड है कि पृष्ठ से लिंक है:
<li><a id="moveit" href="services_move_it.html">Move It</a></li>
मैं इस कोशिश की, लेकिन इसे सही ढंग से काम नहीं करता है
<li><a id="moveit" href="services_move_it.html#specialty">Move It</a></li>
यहाँ गंतव्य पृष्ठ पर टैब के लिए कोड है:
<div id="specialty-content" class="content">
<p class="intro">Moving Simplified specializes in moving items such items as pool tables, pianos, antiques, and anything else you can throw at us.</p>
<div class="video-link">
<a href="#">Watch the Move It Specialty Videos Now.</a>
</div>
<p> Moving such items is more complicated than most would understand, and is an art form in itself. We take pride in making sure that your priceless possessions are delivered damage free. The employees sent to move your belongings are highly experienced in these types of items. They will always be well equipped to complete the move with the most up to date technology in the moving industry.</p><p> We will always pad and wrap each individual piece, as well as provide custom crates to ensure the safety of your pool table slate.</p>
<div class="msg">
<p><strong>Want to download the Move It Specialty guide?</strong> Go here <a href="#">now</a>.</p>
</div>
</div>
यहाँ टैब के संचालन के लिए jQuery है:
$(document).ready(function() {
/* this is for the tabbed content */
$("a.tab").click(function(evt) {
evt.preventDefault();
$(".active").removeClass("active");
$(this).addClass("active");
$(".content").slideUp();
var content_show = $(this).attr("id");
$("#" + content_show + '-content').slideDown();
});
क्योंकि मुझे इसे एकाधिक लिंक/टैब combos पर करने की आवश्यकता होगी, मैं एक व्यवस्थित दृष्टिकोण ढूंढना चाहता हूं।
किसी भी मदद के लिए धन्यवाद!
इसके साथ पास करने के लिए धन्यवाद। यह मेरी आवश्यक सटीक कार्यक्षमता है। – fmz
आपके लिंक टूटे हैं :( –