HTML - Page Redirection
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. Similar TutorialsI 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 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 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. 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 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 - 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 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!!! 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 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 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? 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!! Hi, Background: I have a small page that need to be embeded into a bounch of other html pages. Help needed: 1. Please provide the html chunk that I can use to embed the small page in to other html pages. 2. Is there a way of not using iframe? Can I use <Object> or <embed>? How? --------------------------- mba colleges in london hospitality management diploma Some mouses today have horizontal scroll, some call the tilt. It looks something like: http://www.htmlforums.com/attachment...1&d=1242556560 I noticed that many websites they code those horizontal scroll to go to next/prevous page. For example Discuz! forum system has this function. While you browse hundreds or thousands of posts separated into pages, the horizontal scroll can take you to previous page or next page.(not browser back/forward) How do I code like that? Or any examples? Below are the two sites I will use to explain my problem. For reference, I used Mozilla Firefox 3.08 and Google Chrome 1.0.154.53 in my tests. Example 1: http://www.irishbyname.com/example1.htm Example 2: http://www.irishbyname.com/example2.htm When browsing the site in a browser other than Internet Explorer, example 1 and example 2 center to different locations on the page. In example 1, I set the height of the content area to be 200 px tall. In example 2, I set the height of the content area to be 500 px tall. When I have example 1 open in one tab and example 2 open in another, I can alternate between the two tabs and see a visual difference in alignment. The HTML code on both pages is exactly identical with the exception of the height of the content area. Can anyone tell me why the horizontal page center changes based on the height of the page? Can anyone tell me how to change my HTML to make certain the page centers correctly no matter how tall the page is? Thanks for your help in advance. I believe in thread titles that get to the point. I have a basic page, when the page loads I want people to see the top of the page for a few seconds while a flash starts to load but then I want the page to scroll down a bit so the visitor can see the flash load progress status. I just want code that I can copy into my page. I don't have access to the flash code. Greg (the page under design) www.mytcanada.com/designer.html I have a programmer in the US who starts pages for me and then I much around with them until it's looks like I want. He helps me when I get stuck but he's on holidays. Any help would be great. Not even sure what to call this actually... I received this message from a friend whose site I just put up. ---------------------------- When you click on say the Home Page, and then you click on something else then go back to the prvious page, it apparently displays the previous page on the home page for example. I was not able to recreate this on my computer, but apparently, [another] web developer said this is a fairly common problem. Do you know what he is referring to, and can it be fixed? ---------------------------- Here's the site in question. Nothing fancy, just individual HTML pages. http://www.soundadviceht.com/index.html I gotta admit, I have no earthly clue what he's talking about, unless he's relaying the message wrong? Any ideas what he's talking about? Hello; I have text box & submit button in page_1 & I have text box & submit button in page_2. I want when write text in text box in page_1 it go directly to text box in page_2 & I want when click on submit button in page_1 it is like click on submit button in page_2. Assume page_2 located in other site www.page_2.com. How to do that.?? |