Ndrey Posted June 24, 2008 Report Share Posted June 24, 2008 Mi-am luat un template la blog care se vede harcea parcea pe opera, sa nu mai zic de ie. Vreau cand intra cineva cu ie sau opera (nu cont ce versiune) sa ii apara o alerta. Cum fac? Quote Link to comment Share on other sites More sharing options...
Ndrey Posted June 24, 2008 Author Report Share Posted June 24, 2008 up Quote Link to comment Share on other sites More sharing options...
katmai Posted June 24, 2008 Report Share Posted June 24, 2008 <!--[if IE ]><script type="text/javascript" charset="utf-8">document.location(unde vrei sa faci redirct);</script><![endif]-->Se poate face si in php..si in multe limbaje,dar oricum mai bine il faci cross-browser..ca nu ii asa de greu.. Quote Link to comment Share on other sites More sharing options...
Ndrey Posted June 24, 2008 Author Report Share Posted June 24, 2008 @katmai n`a mers<script language="JavaScript" type="text/JavaScript"> if(navigator.appName == "Opera"){ alert("tszfkdjm;sfmsdfsdfgfdgdf")} if(navigator.appName == "Microsoft Internet Explorer"){ alert("fdsfdgyfsdsaadsadadsadsadsadsa")}</script>asa am rezolvat Quote Link to comment Share on other sites More sharing options...
katmai Posted June 24, 2008 Report Share Posted June 24, 2008 Am inteles eu prost:<!--[if IE ]><script type="text/javascript" charset="utf-8">location.replace('http://google.com');</script><![endif]--> Quote Link to comment Share on other sites More sharing options...
moubik Posted June 24, 2008 Report Share Posted June 24, 2008 e mai stabil codul asa:<script language="JavaScript" type="text/JavaScript"> if(navigator.appName.indexOf("Opera") >= 0){ alert("tszfkdjm;sfmsdfsdfgfdgdf")} if(navigator.appName.indexOf("Microsoft Internet Explorer") >= 0){ alert("fdsfdgyfsdsaadsadadsadsadsadsa")}</script> Quote Link to comment Share on other sites More sharing options...
CODEX Posted June 24, 2008 Report Share Posted June 24, 2008 OFF : Ndrey tu esti ala de pe rops ? Quote Link to comment Share on other sites More sharing options...