HTML - Non -java Way Of Detecting Browser Width And Redirecting?
Hi
Just wondering if there is a non -java way of detecting a user's browser width and then redirecting to the appropriate version of my site? Cheers Shaun Similar TutorialsI want to make a mobile phone version of my website. Does anybody know how I can get my index page to ind out what type of browser/device the visitor is using? i.e. if the visitor is browsing using a mobile phone I want them to be redirected to mysite.com/mobileversion/index.htm Can this be done? Leroy dear guys: i have a javascript code which shows 10 recent post of my blog by RSS, there is a advertise of that site at the bottom of it, some friend told me to add : <div> tags to it and define width and height for it and for the height change the number until the ad disappears... also he told me to put the flow on "hidden" but i don't understand much can u help me out? here is an example: Code: <script type='text/javascript' src='http://rssReader.com/code.php?t=1&back=_fff&color=_444&box=_fff&max=10&rss=http://sokkan.ir/post/rss/' ></script> I actually feel a bit ridiculous because i can't solve a problem that will probably be as easy as hell... anyway, i have a table with some collspans and rowspans in it, but i can't seem to be able to set the width for the site in IE... Here's a simple representation of the table, since it's generated dynamically with PHP, so the number of rows and columns is not always the same...but the structure is: HTML Code: <table> <tr> <th rowspan=2 style="min-width=120px;">left column header</th> <th colspan=2 style="min-width=120px;">column 1 title</th> <th colspan=2 style="min-width=120px;">column 2 title</th> </tr> <tr> <td style="min-width=60px;">value1</td> <td style="min-width=60px;">value2</td> <td style="min-width=60px;">value1</td> <td style="min-width=60px;">value2</td> </tr> <tr> <td>row1 name</td> <td>row1 col1 value1</td> <td>row1 col1 value2</td> <td>row1 col2 value1</td> <td>row1 col2 value2</td> </tr> </table> So it should look a bit like this: Code: ------------------------------- | 120px | 120px | 120px | | |---------|---------| | |60px|60px|60px|60px| |---------|----|----|----|----| |rowname1 |val1|val2|val1|val2| |---------|----|----|----|----| |rowname2 |val1|val2|val1|val2| ------------------------------- there can be more rows with rowname, and more columns with the colspans... now in mozilla firefox this works just fine, but not in IE...even worse, if one of the values in the columns that are supposed to be 60px wide is negative, IE inserts a break between the '-' symbol and the numbers... i'm using HTML 4.01 Strict by the way... 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! How to create explorer like menu in Html or java script? eg + Game(inside this Cricket and Football) when click on + sign it become like-- - Game -Cricket -Football Can anybody suggest me, by which command I can do it? Commercial Removals || Removals and Storage||Specialist Removals Hi, is possible to differentiate css code depending on the operating system of the customers ? for example fonts look different in Firefox using Windows and Firefox using Safari thanks I am coding a website at the moment and i need a way of detecting for flash, if they have it, then i want them to stay on index.html and if they don't then i want them to go to indexnf.html and anyone help me at all.... this is out of my depth!!! im creatinh a box containing a text. The box must be wide enough to fill a text. menu.style.width = tekst.length - this functioin gives the number of letters in text. So if the text is "hello" then the width is 5 pixels. But i need the widith of pixels needed to fit the text in a box. How can i do that? I've got a website under construction at www.banffridgeestates.com. On the design plans page (www.banffridgeestates.com/design_plans.htm), I've got 9 thumbs for the user to click on and a PDF file opens in Adobe Reader. But just in case the user doesn't have Adobe Reader or some other PDF viewing application, is there a way for me to program the link so that it detects whether the user has such an application, and to open a JPEG if he doesn't have one? Hi, Is there away to force my website to fit an Iphone screen when viewed on the iphone. At the moment the width doesn't full span the Iphones screen so it looks bad. http://pjm.co.uk.uksite4.yourwebserv...splay&PageID=5 Thanks alot Joe Hi, im quite good at html, doing php, and a bit of javascript, but i need to find out how to make a page redirect by itself. With a time limit so that you go to the page, and in 5 second it goes to a different page. I hope you can help me as it is quite urgent. Thanks alot anyone who can help. Oh, and it has to be pure html, NO Javascript Thanks Coggz Hello, I am a novice at HTML and need help with redirecting. How do you make a redirect using HTML so that it opens in the same window and not in a new window? I have a page I am making for a test logoff scrren and I need the page to redirect to another web site after a certain period or upon a click on a link. Every time I set it up, it pops open a new window. I know I must be missing something, but I cant figure out what. I am using transitional DTD, if that helps. Thank you for your time! I'm working on an adult site for a client that needs to use an age verfication form before allowing visitors into the adult sections. I have the age verification form in place, but it only directs you to one page upon proper adult verification. What I would like to have happen is, a visitor clicks on a specific adult topic (there are several to choose from), have their age verified only once (I think this can be done with cookies), then be directed to the specific section they selected in the first place. I'd like to know, 1.) What should I use for the cookie code? 2.) Any ideas on how I can set it up that they're directed to the right spot after they're verified? Thanks! I have a form with several buttons, once the buttons are clicked I want them to redirect the user to another page, with the exception of one button which after being clicked, I want it to not redirect anywhere. Is it possible to do this? Any help is much appreciated. Hey guys, I'm sure this had been asked a thousand times, and I know I can search Google and find answers. Which I have found some, but I seem to get a more straight forward answer when the people answering my question know my exact situation. So anyways: I have my bands website: www.aqueousband.com And let's say that I acquire www.aqueous.com. I have a hosting plan with godaddy for www.aqueousband.com and all of my files are on that hosting plan and I want to keep that domain name. So it would make the most sense to just make www.aqueous.com redirect to www.aqueousband.com ... right? So how would I do this? I was reading about 301 redirect, am I on the right track? I started to think, if I just bought a domain name I would just have the domain name and no hosting. So how do I put an index file on a domain name that has no hosting attached to it? There's gotta be a way! how do i redirect an iframe from outside of the iframe like home +------------------------------------------------------------------------+ about |IFRAMEIFRAMEIFRAMEIFRAMEIFRAMEIFRAMEIFRAMEIFRAME| contact |IFRAMEIFRAMEIFRAMEIFRAMEIFRAMEIFRAMEIFRAMEIFRAME| contact +------------------------------------------------------------------------+ redirect the iframe on the click of the links on the left, without refreshing the whole page cheers, Rory Please help. For a site I am creating, there is a signup feature. When someone clicks to register, a form pops up. Once they click "Send" the information gets sent to the email address (which I have outlined in the php), I want to redirect it to another window which says thanks for registering. So far, the information does get sent to the email address, but the form stays as is. So the form works fine, I just need to figure out how to redirect it or a way I can show text saying "Thanks your info as been sent". Please help with any tips! Here is the code for what I have so far: PHP Code: <?php //grabs posted information $name=$_POST['name']; $email=$_POST['email']; $phone=$_POST['phone']; $city=$_POST['city']; $country=$_POST['country']; $submit=$_POST['submit']; //formats email $sendTo="emailaddy@gmail.com";//recipient email $subjectheader="Response from Website"; //subject line $message="Name: $name\n Email: $email\n Phone Number: $phone\n City: $city\n Country: $country "; //message body $header="From: ".$name."<".$email.">"; //sender's email if(isset($_POST[submitted])){ //checks to see if comment textarea has content if(!empty($_POST[name])){ //sends the email mail($sendTo, $subjectheader, $message, $header); //visually confirms if email has been sent if(mail){ echo"Information Sent. Thank you for your help"; }else{ echo"Failed to send message"; } //end confirmation }else{ echo"Please fill out all the fields"; } //end of empty } //end of isset ?> I've been through a few sites about redirecting traffic from your MySpace to another site, but I'm not sure how it really works. I know there is some flash involved but I also know that MySpace dissallowed some flash code on the site. What can I do here? Hey I am fairly new to the whole webmaster and html coding. My current situation is that I have a html file that works for an old domain. I have recently move to a new subdomain that is hosting my website. I uploaded my html file to the host and everything is working smoothly except for the fact that none of the links work! Please help. Thankyou |