Jump to content
php.lv forumi
  • 0

help ar js katram brauzerim savs stills


Lancom

Question

help ar js katram brauzerim savs stills. kr4 man problema ir tada IE parada ka fons ir melns bet kur firefox.css neperada #EEEEEE fonu!

es js 20 % tikai zinu!

<script type="text/javascript">

DOM = document.getElementById;

Netscape4 = document.layer;

Netscape6 = Mozilla = (navigator.appName == "Netscape") && DOM;

Netscape7 = navigator.userAgent.indexOf("Netscape/7") >= 0;

Opera5 = window.opera && DOM;

Opera6 = Opera5 && window.print;

Opera7 = Opera5 && navigator.userAgent.indexOf("Opera 7") >= 0;

Opera8 = navigator.userAgent.indexOf("Opera/8") >= 0;

Opera9 = navigator.userAgent.indexOf("Opera/9") >= 0;

IE = document.all && !Opera5;

Firefox = navigator.userAgent.indexOf("Firefox") >= 0;

if(IE) document.write("<link rel='stylesheet' href='ie.css' type='text/css'>");

else document.write("<link rel='stylesheet' href='Firefox.css' type='text/css'>");

</script>

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

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

Guest
Answer this question...

×   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.

Loading...
×
×
  • Create New...