Jump to content
Ndrey

>> Cross-Browsing <<

Recommended Posts

Posted

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?

Posted


<!--[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..

Posted

@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

Posted

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>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...