آداة ثلاثية التبويبات للسايدبار
/*teqniweb Tabbed Widget*/
.teqsidebartabs { margin-bottom: 20px; }
.teqsidebartabs .widget { border: 0 none !important; box-shadow: 0 0 0 1px #ddd inset; }
.teqsidebartabs .widget h2 { display: none; }
.tabs-widget { height: 35px; list-style: outside none none; margin: 0; padding: 0; }
.tabs-widget li { float: right; list-style: outside none none; padding: 0; text-align: center; width: 33.3%; }
#teqstab2 { float: left; }
#teqstab2 a { border-left: 0 none; }
.tabs-widget li:first-child { margin: 0 }
.tabs-widget li a { background-color: #000; border-left: 1px solid #444; color: #fff; display: block; font-size: 12px; height: 35px; line-height: 35px; text-transform: uppercase; }
.tabs-widget li a:hover, .tabs-widget li a.tabs-widget-current { background-color: #FB6400; color: #fff; text-decoration: none; }
- #000 هــو لــون خـلــفـيــة الــتـبــويـبــات.
- #fff لـون الـكـتــابـة .
- #FB6400 لــون الإطــار الـنـشــط أو عـنــد تـمـريــر الـمــاوس.
- الرقم 12 هــو حـجــم خــط الـتــبــويــبــات.
- مـن أراد ان يـسـتـخـدم أيـقـونـة لـكـل تـبـويـب يـضـيـف بـعـد الـكـود الـسـابـق الـكـود الـتـالـي:
#teqstab1 a { background-image: url("*"); background-position: 98% center; background-repeat: no-repeat; }
مع تغيير * برابط الأيقونة.
هـذا خـاص بـالـتـبـويـب الأول...، لـعـمـل أيـقـونـة لـلـتـبـويـب الـثـانـي كـرر الـكـود مـع تـبـديـل الـرقـم 1 ب 3، والـتـبـويـب الـثـالـث بـتـغـيـيـر الـرقـم 1 بــ 2
- عـلـيــك ان تـبـحــث فــي قـالـبــك عــن اســم اول آداة لـديــك فــي الـسـايــد بــار، فــوق اســم الآداة سـتـجــد سـطــر أولــه كـلـمــة <b:section، فـوق الـسـطـر سـتـضـيـف الـكـود الـتـالـي : مــثــال لاحــظ اســم الآداة بــالأصــفــر واســم الــســطــر بـالاحــمــر نــريــد ان نـضــيــف الــكــود فــوق الـســطــر الأحـمــر :

<div class='teqsidebartabs'>
<script type='text/javascript'>
jQuery(document).ready(function($){
$(".tabs-widget-content-widget-themater_tabs-1432447472-id").hide();
$("ul.tabs-widget-widget-themater_tabs-1432447472-id li:first a").addClass("tabs-widget-current").show();
$(".tabs-widget-content-widget-themater_tabs-1432447472-id:first").show();
$("ul.tabs-widget-widget-themater_tabs-1432447472-id li a").click(function() {
$("ul.tabs-widget-widget-themater_tabs-1432447472-id li a").removeClass("tabs-widget-current a");
$(this).addClass("tabs-widget-current");
$(".tabs-widget-content-widget-themater_tabs-1432447472-id").hide();
var activeTab = $(this).attr("href");
$(activeTab).fadeIn();
return false;
});});
</script>
<ul class='tabs-widget tabs-widget-widget-themater_tabs-1432447472-id'>
<li id='teqstab1'><a href='#widget-themater_tabs-1432447472-id1'>شائعة</a></li>
<li id='teqstab2'><a href='#widget-themater_tabs-1432447472-id2'>تعليقات</a></li>
<li id='teqstab3'><a href='#widget-themater_tabs-1432447472-id3'>تسميات</a></li>
</ul>
<div class='tabs-widget-content tabs-widget-content-widget-themater_tabs-1432447472-id' id='widget-themater_tabs-1432447472-id1'>
<b:section class='sidebar' id='sidebartab1' maxwidgets='1' preferred='yes'/>
</div>
<div class='tabs-widget-content tabs-widget-content-widget-themater_tabs-1432447472-id' id='widget-themater_tabs-1432447472-id2'>
<b:section class='sidebar' id='sidebartab2' maxwidgets='1' preferred='yes'/>
</div>
<div class='tabs-widget-content tabs-widget-content-widget-themater_tabs-1432447472-id' id='widget-themater_tabs-1432447472-id3'>
<b:section class='sidebar' id='sidebartab3' maxwidgets='1' preferred='yes'/>
</div>
<div style='clear: both;'/>
</div>
سبحان الله، والحمدلله، ولا إله إلا الله، والله أكبر
إذا أعجبك الموضوع فلماذا تبخل علينا بالردود المشجعة ؟!

Aucun commentaire
يمكنك وضع تعليقك هنا