View previous topic :: View next topic |
Author |
Message |
Zeus
Joined: 09 Sep 2003 Posts: 775 Location: Čakovec
|
Posted: 18.03.2009 19:52 Post subject: Detekcija IE 6.0 ili manje |
|
|
Dakle, kako u PHP detektirati da li je IE verzija 6.0 ili manja?
Code: | <?php
function ae_detect_ie()
{
if (isset($_SERVER['HTTP_USER_AGENT']) &&
(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))
return true;
else
return false;
}
?> |
Ovo određuje samo da li je IE ili nije, znaci da bi iz ovog 'HTTP_USER_AGENT' trebalo nesto izvuci ako se moze, samo ne znam kak to ide. |
|
|
Back to top |
|
|
mile
Joined: 10 Sep 2003 Posts: 1327 Location: Jeruzalem
|
|
Back to top |
|
|
maratz mi3.crew
Joined: 24 Nov 2003 Posts: 1207 Location: ZAG
|
|
Back to top |
|
|
Zeus
Joined: 09 Sep 2003 Posts: 775 Location: Čakovec
|
Posted: 19.03.2009 09:21 Post subject: |
|
|
maratz wrote: | Za što ti to treba?
Ako za drugačiji CSS ili JavaScript, upotrijebi conditional comments u HTML-u
Code: | <!--[if lte IE 6]>Internet Explorer 6 and below <![endif]--> |
|
Nije za drugaciji CSS, dao si mi ideju sa onom porukom i ljekarnom, pa cu ja u jedan dio sajta ugurati nesto slicno
Hvala mile, mislim da tu naredbu get_browser server ne podrzava (treba je ukljuciti?), uglavnom, nasao sam nesto slicno bez te naredbe. |
|
|
Back to top |
|
|
mile
Joined: 10 Sep 2003 Posts: 1327 Location: Jeruzalem
|
Posted: 19.03.2009 09:35 Post subject: |
|
|
Zeus wrote: |
Hvala mile, mislim da tu naredbu get_browser server ne podrzava (treba je ukljuciti?), uglavnom, nasao sam nesto slicno bez te naredbe. |
OK, više sam mislio na primjere dolje, npr. imaš onaj koji je sada na vrhu, od 5.3. gdje su funkcije i primjer bez upotrebe tog get_browser.. |
_________________ mile.is |
|
Back to top |
|
|
|