Ndrey Posted June 24, 2008 Report 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
katmai Posted June 24, 2008 Report 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
Ndrey Posted June 24, 2008 Author Report 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
katmai Posted June 24, 2008 Report 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
moubik Posted June 24, 2008 Report 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