اول حوصله نگاه کردن به سورس سایتتونو نداشتم دوست خوبم ولی گفتی بهت گفتن هزینه بالایی میخواد کنجکاو شدم ببینم چیه مگه که بهت گفتن هزینه بالا میبره اینکه ادم حق الزحمه کارشو طلب کنه درسته ولی دیگه دروغ گوی برای پول بیشتر خیلی زور داره2 و3 نفر بهم میسج دادن ولی یا نتونستن یا می گفتن هزینه بالایی می خواد بابا من فقط با یه نسخه از مرورگر ie اونم 9 می خوام سازگاری داشته باشه یکی پیدا نمیشه با یه قیمت منصفانه انجام بده :|:|
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9">
<meta http-equiv="X-UA-Compatible" content="IE=7, IE=8, IE=9, IE=10" >
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
#smtitle{
height:20px;
text-align:center;
background-color:#57991c;
width:100px;
padding:4px 1px 1px 1px;
color: #EFEFEF;
text-shadow:1px 1px 1px #690;
font-weight:bold;
border-bottom-left-radius:8px;
border-top-left-radius:8px;
}
<aside id="left">
<div id="smtitle">منوی سمت چپ</div>
<div id="smbody">
<ul>
<li><a href=b>مطلب شماره 1</a></li>
<li><a href=b>مطلب شماره 1</a></li>
<li><a href=b>مطلب شماره 1</a></li>
</ul>
</div>
</aside>
#left{ float:right;
width:130px;
margin-top:4px;
overflow:hidden;
}
#smtitle{
height:20px;
text-align:center;
background-color:#57991c;
width:100px;
padding:4px 1px 1px 1px;
color: #EFEFEF;
text-shadow:1px 1px 1px #690;
font-weight:bold;
border-bottom-left-radius:8px;
border-top-left-radius:8px;
}
#smbody{
clear:both;
text-align:right;
font-size:12px;
border-right:4px solid #57991c;
border-bottom-right-radius:5px;
}
#smbody ul,li{
padding:2px 0px 0px 0px;
margin:0px;
list-style-image:url(../image/arow8.jpg);
list-style-position: inside;
}
#smbody a:link,a:visited{
-moz-transition-property: all;
-moz-transition-duration: 0.3s;
-o-transition-property: all;
-o-transition-duration: 0.3s;
-webkit-transition-property: all;
-webkit-transition-duration: 0.3s;
transition-property: all;
transition-duration: 0.3s;}
[B][/B][/B]
[B]#warper{[/B]
[B] background-color:#FFF;[/B]
[B] position:relative;[/B]
[B] width:925px;[/B]
[B] direction:rtl;[/B]
[B] border:1px solid #DADADA;[/B]
[B] margin-left:auto;[/B]
[B] margin-right:auto;[/B]
[B] margin-top:8%;[/B]
[B] text-align:right;[/B]
[B] border-radius: 15px;[/B]
[B] -moz-border-radius: 15px;[/B]
[B] -webkit-border-radius: 15px;[/B]
[B] box-shadow:2px 2px 6px 1px #999;[/B]
[B]}[/B][B][B][/B]
function detectBrowser()
{
var useragent = navigator.userAgent.toLowerCase();
var useragent_version = parseInt(navigator.appVersion);
if(navigator.product == "Gecko" && navigator.vendor.indexOf("Apple Computer") != -1)
{
return "safari";
}
else if(useragent.indexOf("chrome") != -1)
{
return "chrome";
}
else if(navigator.product == "Gecko")
{
return "mozilla";
}
else if(useragent.indexOf("opera") != -1)
{
return "opera";
}
else if(useragent.indexOf("konqueror") != -1)
{
return "konqueror";
}
else if(useragent.indexOf("msie") != -1)
{
return "ie";
}
else if(useragent.indexOf("compatible") == -1 && useragent.indexOf("mozilla") != -1)
{
return "netscape";
}
}
function get_browser($useragent)
{
//check for most popular browsers first
//unfortunately that's ie. We also ignore opera and netscape 8
//because they sometimes send msie agent
if(strpos($useragent,"MSIE") !== false && strpos($useragent,"Opera") === false && strpos($useragent,"Netscape") === false)
{
//deal with IE
$found = preg_match("/MSIE ([0-9]{1}\.[0-9]{1,2})/",$useragent, $mathes);
if($found)
{
return "Internet Explorer " . $mathes[1];
}
}
elseif(strpos($useragent,"Gecko"))
{
//deal with Gecko based
//if firefox
$found = preg_match("/Firefox\/([0-9]{1}\.[0-9]{1}(\.[0-9])?)/",$useragent,$mathes);
if($found)
{
return "Mozilla Firefox " . $mathes[1];
}
//if Netscape (based on gecko)
$found = preg_match("/Netscape\/([0-9]{1}\.[0-9]{1}(\.[0-9])?)/",$useragent,$mathes);
if($found)
{
return "Netscape " . $mathes[1];
}
//check chrome before safari because chrome agent contains both
$found = preg_match("/Chrome\/([^\s]+)/",$useragent, $mathes);
if($found)
{
return "Google Chrome " . $mathes[1];
}
//if Safari (based on gecko)
$found = preg_match("/Safari\/([0-9]{2,3}(\.[0-9])?)/",$useragent, $mathes);
if($found)
{
return "Safari " . $mathes[1];
}
//if Galeon (based on gecko)
$found = preg_match("/Galeon\/([0-9]{1}\.[0-9]{1}(\.[0-9])?)/",$useragent,$mathes);
if($found)
{
return "Galeon " . $mathes[1];
}
//if Konqueror (based on gecko)
$found = preg_match("/Konqueror\/([0-9]{1}\.[0-9]{1}(\.[0-9])?)/",$useragent,$mathes);
if($found)
{
return "Konqueror " . $mathes[1];
}
//no specific Gecko found
//return generic Gecko
return "Gecko based";
}
elseif(strpos($useragent,"Opera") !== false)
{
//deal with Opera
$found = preg_match("/Opera[\/ ]([0-9]{1}\.[0-9]{1}([0-9])?)/",$useragent,$mathes);
if($found)
{
return "Opera " . $mathes[1];
}
}
elseif (strpos($useragent,"Lynx") !== false)
{
//deal with Lynx
$found = preg_match("/Lynx\/([0-9]{1}\.[0-9]{1}(\.[0-9])?)/",$useragent,$mathes);
if($found)
{
return "Lynx " . $mathes[1];
}
}
elseif (strpos($useragent,"Netscape") !== false)
{
//NN8 with IE string
$found = preg_match("/Netscape\/([0-9]{1}\.[0-9]{1}(\.[0-9])?)/",$useragent,$mathes);
if($found)
{
return "Netscape " . $mathes[1];
}
}
else
{
//unrecognized, this should be less than 1% of browsers (not counting bots like google etc)!
return false;
}
}
[URL="http://api.jquery.com/jQuery.browser/"]jQuery.browser | jQuery API Documentation[/URL]
[URL="http://www.quirksmode.org/js/detect.html"]JavaScript - Browser detect[/URL]