HTML - Browser Detection (and Warning/redirection)
I'm having trouble with my site. I can get it looking great in IE7 and FF, but if you try and view it in IE6 or below, it doesn't look right. I have tried everything I can to fix it with no luck so I have given up. What I'm wanting now is for the code to detect if you are using IE6 or below, and if you are I want it to take you to redirect you to a warning page that says something along the lines of "You need to upgrade your browser to IE7, or continue with caution" or just something like that. Can someone direct me to a helpful site or maybe someone has some script already that they can post?
Similar TutorialsSince all browser's are different, im trying to make a browser detection system for my website. the only problem is.. i can't.. I tried for several hours and have yet to make it work succesfully. Is there anyone who can make (or help make) a browser detection system for me? I would post my script but i deleted it. it would detect ie, but it mistook every other browser for google chrome. Hi. Is there any code out there that will detect whether a visitor to a website is using a mobilephone? If they are, I want the code to automatically send them to my mobile version of my site. I'm guessing it maybe somekind of resolution detection??? The BBC website can do this. Does anybody know how? Leroy Hey all, http://www.lindesigns.us/rma/rmaonline.php If you go to that site on Firefox, the "Return Code #" expands. But if you use IE, you'll see that it doesn't. I could add a fix in there for the fields if they were static, but if you see my javascript, they are dynamically loading fields. This "class":"wide" is not working: Code: invoiceInput.appendChild(createElement("input", {"type":"text", "name":"invoice[]", "size":"8", "class":"wide;"})); I am using a script I found on a jQuery board (http://jsbin.com/acado/6), and it works for them, but not for me because my syntax is probably wrong. And they also are just using 1 field and not near-unlimited dynamically loading fields like I am. How would I add in a fix to have the browser 'only' use the expansion if the user is using IE6 or IE7? I searched on the boards but couldn't find the solution to this problem. Thanks in advance! Hi Guys, I have a website which has an iframe and inside that frame is the web content. Now when I want to do a website redirection using the META tag method the new site loads inside the iframe, I dont want this to happen, I want the whole site to goto the new site. How can I do this ? I'm using geocities free btw. I am trying to make links on my website like one of the following: example.com/promo All I did was take away the .html from the ftp page. Everything is fine when I access the page with IE, but Fire Fox just displays the html code because it is not .html at the end. How can I make these pages without having to have .html at the end, but with fire fox recognizing it as a html document? Let me know if I need to explain myself better, Thanks I am after the html code to redirect the surfer from an address to a new address so I guess I have an index file with code at site 1 then when surfer goes there it automatically [hopefully without him/her knowing] just diverts to site 2 Hi! I have a problem. My homepage, what is under construction at the moment, is only viewable without errors with Explorer. I want to insert a javascript to the index.htm file, that redirects the visitors, depending on their browser. I am currently trying this: <script language=Javascript> if ((navigator.appName=="Microsoft Internet Explorer")&(navigator.userAgent.indexOf("Opera")==-1)&(navigator.userAgent.indexOf("Netscape")==-1)&(navigator.userAgent.indexOf("Mozilla")==-1)){document.location.href="good.htm";}else{document.location.href="wrong.htm";} </script> The indexOf stuff is needed, because Mozilla, Netscape and Opera would trick the script, because they make themselves look like Explorer. ...But this still doesn't work right, because now this script redirect every browser to "wrong.htm" (even explorer). I would be very thankful, if somebody would help me out with a working script. See error image: http://img692.imageshack.us/img692/5861/redirection.jpg I have no idea what this means, I can't add a wildcard redirect from my .net to .com domain. It had worked before, the redirect was deleted, and now I can't add it back. See public_html folder: http://img534.imageshack.us/img534/3938/publichtml.jpg Opened a support ticket, the guy doesn't know what he's talking about. He's telling me to go back to the redirect section and add the info (that I already tried). Any ideas? Hi guys im new here , hope this is in the correct place , sry if its not. Im trying to redirect a link . I have an image on another forum in my signature. i have it linked to already using [url=http " web page here "][img] "my signature image here" [/img] So currently when someone clicks my signature image it redirect them to the web page that its linked to. But what im looking for is , when someone clicks my signature image i want it to go to a single web image first ( for a 5 or so second delay) and then automatically redirect to the link. Anyone got any ideas how to do this , thank you all hope you can help me Hi - I'm really new to HTML and web design in general. What I'm trying to do is to set up a website where the home page is a disclaimer (page 1). The user presses the "Accept" button and is taken to the next page (page 2). Lets say a user copies the url for page 2 and emails it to a friend. The friend clicks on the link and bypasses the disclaimer. How can I have that page redirected to the disclaimer on page 1, but not have page 2 redirect to page 1 if the accept button is pushed. I hope I explained that adequately (but I doubt it!). Thanks for the help, Hi, I webmaster a web page at, lets call the address: www.ourlittledivision.bigcompanydomain.org. Here (at our company) I have all files of the web page, including a functioning favicon. I have also complemented with a more readable web address, lets call it: www.ourlittledivision.com. This second address simply redirects to the first address mentioned above. This domain with its redirection is located at an external web hotel. These two alternative addresses means you can reach the web pages either way by just writing either the first or the second url. My question is that the favicon appears fine if you use the first address, but not if you use the second. The favicon seems to be lost in the redirection, and just IEs default icon is shown. The web hotel should not be blamed. I use it for other web pages where the favicons work, but they are not redirected. My picture favicon.ico lies just next to the index file in the root, not in any of the folders. The code in the index file is simply: <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"> <link rel="icon" href="/favicon.ico" type="image/x-icon"> So, can anyone mediate...? Somebody out there must have seen this phenomena. I guess there are more than I that could be helped by a solution to this question... Best regards Stonechat Hi, We are going to open few vacancies in our website. We create a separate link to apply for each position in website. So for each position, there will be a buton APPLY NOW for example. What we need now is to create a script if possible, that when people apply depends in position, mail goes to certain subfolder in our mailbox. Basically it'll have to do the job of rules in MS Outlook. We don't want to create rules, because people usually don't write in subject line (for example) as we advise them in order rule to function properly Thank you I don't want my page to redirect automatically, but I have a link on my old website's URL that says "Click Here to be taken to my new URL" and I was wondering, if my previous website has pages like mywebsite.com/randompost1393 is there a way to link it to newURL.com/randompost1393 but not JUST on that one page, on all of my pages? Like just coding one link on my previous URL so that no matter what page I'm on, it just switches over to the same page but on my new website? Like if its on the home page which is just mywebsite.com/ it should go to newURL.com/ and if its on /page/3 it should go to newURL.com/page/3 I hope this makes sense, sorry if it confuses you. I need to do a redirection without breaking frame...does anyone know the code for this? I am using: <head> <script language="javascript"><!-- location.replace("pagename.html") //--> </script> ...other head section stuff (Title, Description,etc.)... </head> Thanks!!! Hello Everyone, I used to have this site where it had the power to on load redirection one site (If opened) to a certain one. For example; If I had google opened, and then i load my site on a different tab or window onl load of that page google would be changed to the site i put in that code. Now I have lost this code, I asked on another forum and they said something about putting target in my code. This did not work either. Atleast what I tried. Does anybody know this code or have a suggestion for me? -Troy Hey guys, i'm just starting up with html, and am having a few problems. I have a php file titled "stats.php" that return results when you direct your url to: /stats.php/default/dricho Its a dynamic sig generator through a php file. I have created a form that allows you to simply add in the details so that it generates the link for you. But i am having an issue. here is the form: HTML Code: <form action="http://www.domain.com/sig/stats.php" method="post"> <select name="background"> <option>maple</option> <option>default</option> </select> Name: <input name="rsn" type="text" /> <input type="submit" /> </form> How can i make it so teh results open a link based on teh items chosen? i.e. if i chose maple and input dricho it would direct the url to: "/stats.php/maple/dricho"? All help is greatly appreciated, Daniel Hello team, I had some great help here last time so this is my first stop to ask another question What i'm trying to do is make: www.mysite.com/whatever (where 'whatever' is the string i give someone i.e 12345 or bobsmith) ...redirect to: http://www.redirectsite.com/print_de...p?pid=whatever so i can tell people to go to, for example, www.mysite.com/bicycle and it will go to http://www.redirectsite.com/print_de...sp?pid=bicycle note that i have no control over 'redirectsite' other than being able to upload my products. is this possible? i'm thinking that somehow i could make a /redirect directory with some sort of graber file where anything that queries /redirect as in www.mysite.com/redirect/bicycle automatically gets forwarded to the new site with the added string on the end of "id=". how tough it that!? tell me it's not impossible please!! thanks for you help in advance!! Can someone check out https://www.brightfusehosting.com/?page=login and help me to figure out why I'm getting that warning (in IE) saying that some items are not secured? I made every image, css file, etc all load under https. I'm so confused!!!!!!!! Hi. Im on a steady learning curve when it comes to html. I keep getting warnings when im trying to add somthing simple like a 'add to favorites' link. "To help protect your security, internet explorer has restricted...etc" I have been on plenty of different websites that use all kinds of bits and bobs, including 'add to favourites' etc, when I view their webpage's, I dont receive a warning message ?? My settings are the same as they've always been. Is there something I can add/remove from my code to avoide these messages? (Im using dreamweaver) Hi, i am am learning WordPress and have just started, but i have a problem....when i try to access my site i get this: Warning: Cannot modify header information - headers already sent by (output started at /home/smra9/public_html/wp-content/themes/evanescence/functions.php:6) in /home/smra9/public_html/wp-includes/pluggable.php on line 890 when i open pluggable.php and i go to the line 890 it says: header("Location: $location", true, $status); i will also copy a text from line 885 to 890 so maybe you will understand better: if ( $is_IIS ) { header("Refresh: 0;url=$location"); } else { if ( php_sapi_name() != 'cgi-fcgi' ) status_header($status); // This causes problems on IIS and some FastCGI setups header("Location: $location", true, $status); } Can anyone help me, i don't know what to do |