Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Jul 2012
    Posts
    5
    Member #
    32266
    I have designed a regular website to be viewed by all computers "PC, Mac, Laptops, etc". I also have a website created for for cell phones, my question is how to I set it up so that the cell phone users get a choice that pops up asking them which they would like to view?

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,724
    Member #
    5580
    Liked
    718 times
    I guess myself (maybe others) just use a fluid design that shrinks to fit.
    There are some methods where you use m.mysite.com instead of www.
    I remember seeing a PHP script that attempts to determine which browser
    is being used. I'm not sure of the accuracy though.

    Here's an example of a fluid design:
    http://webcodebuilder.com/examples/r...ate/index.html

    Try that test page on desktop, laptop, tablet, cell phone and see what it does.
    You can download that template for free and experiment with it.


  4. #3
    Senior Member kralcx's Avatar
    Join Date
    Jan 2010
    Location
    3rd Planet from the Sun
    Posts
    140
    Member #
    20799
    Liked
    18 times

  5. #4
    Junior Member
    Join Date
    Jul 2012
    Posts
    5
    Member #
    32266
    Thanks for the replies. I do see if I goto websites like cnn.com on my cell it automatically goes to m.cnn.com and opens the mobile website not the normal website. How do you setup something like this so it auto senses?

  6. #5
    Junior Member
    Join Date
    Feb 2013
    Posts
    10
    Member #
    35069
    Liked
    2 times
    You could try something like this but im pretty sure there are other ways of doing it. The idea behind this code is that Mobile devices are no wider then a certain pixel size like 700px for example so give this code a go.

    HTML Code:
    <script type="text/javascript">
    <!--
    if (screen.width <= 700) {
    window.location = "http://m.yourdomain.com";
    }
    //-->
    </script>

  7. #6
    Senior Member Webzarus's Avatar
    Join Date
    May 2011
    Location
    South Carolina Coast
    Posts
    3,322
    Member #
    27709
    Liked
    770 times
    I've used this and ported it to asp as well

    http://mobiforge.com/developing/stor..._switcher=true


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:42 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com