?<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
$(document).ready(function() { var $topLinks2 = $('#tab-nav > ul > li > a'); $topLinks2.click(function() { var $parentItem = $(this).parent(), slideAmt = $(this).next().width(), direction; $topLinks2.removeClass('expanded'); if (parseInt($parentItem.css('marginLeft'), 10) < 0) { direction = '+='; } else { $(this).addClass('expanded'); direction = '-='; } $parentItem .animate({marginLeft: direction + slideAmt}, 400) .siblings() .animate({marginLeft: '0'}, 150); return false; }); });
</script> <style type="text/css"> /* nav wrapper */ .tab-nav { position: relative; width: 610px; overflow: hidden; } .tab-nav ul { position: relative; float: left; width: 1600px; margin-left: 535px; padding-left: 0; list-style-type: none; background-color: #fff; ; } .tab-nav li { float: left; clear: left; ; } .tab-nav a { display: block; width: 74px; border-right: 1px solid #ddd; height: 25px; line-height: 24px; float: left; text-align: center; text-decoration: none; color: #000; } .tab-nav a.expanded { background-position: 2px -244px; ; } .tab-nav ul ul { float: left; background-color: #333; width: auto; margin-left: 0; ; } .tab-nav li li { clear: none; } .tab-nav li li a { color: #fff; width: 100px; background-image: none; }
body{ /* Setting default text color, background and a font stack */ color:#444444; font-size:13px; background: #f2f2f2; font-family:Arial, Helvetica, sans-serif; }
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Здравствуйте, подскажите какой тег использовать для увеличения значения, пример на картинке.
Вроде, про такой тег я слышала. Если есть тег прогресс бар, значит и такое должно быть.
Question
harek13
доброе время суток. есть вот такой код:
подскажите кто-нибудь как перенести это меню влево - то есть чтоб открывалось слево-направо. то есть наоборот. заранее большое спасибо.
Edited by harek13Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.