Hey there, I am searching a way from blocking IE users to see my site.
Reason is most of my jQueries and Javascripts are iframed, And IE does not support it.
Obviously, If i'm asking it's cause I don't know how to block it. I got no idea.
Something that gets redirected to a site or just shows a text or a html page saying that he has to download something else than IE.
For the IPB Part, Ill simply add the code to the board header.
Block IE?
Started by Temp2, Mar 25 2011 10:53 PM
2 replies to this topic
#1
Posted 25 March 2011 - 10:53 PM
#2
Posted 26 March 2011 - 12:06 AM
Big nevermind.
I found out some few tricks.
Using this code
You can block every IE Versions by changing the number.
I found out some few tricks.
var IE7 = (navigator.userAgent.indexOf("MSIE 7")>=0) ? true : false;
if(IE7){
$(function(){
$("<div>")
.css({
'position': 'absolute',
'top': '0px',
'left': '0px',
backgroundColor: 'black',
'opacity': '0.75',
'width': '100%',
'height': $(window).height(),
zIndex: 5000
})
.appendTo("body");
$("<div><p><br /><strong>Sorry! This page doesn't support Internet Explorer.</strong><br /><br />Download: <a href='http://mozilla.com'>Firefox</a> or <a href='Download: <br /><a href='http://www.google.com/chrome?hl=en'>Google Chrome</a>.</p>")
.css({
backgroundColor: 'white',
'top': '50%',
'left': '50%',
marginLeft: -210,
marginTop: -100,
width: 500,
paddingRight: 10,
height: 200,
'position': 'absolute',
zIndex: 6000
})
.appendTo("body");
});
}
Using this code
var IE7 = (navigator.userAgent.indexOf("MSIE 7")>=0) ? true : false;
if(IE7){
You can block every IE Versions by changing the number.
var IE8 = (navigator.userAgent.indexOf("MSIE 8")>=0) ? true : false;
if(IE8){
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users





Contributor












