Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2010
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Adv. Redirect needed

    Theres several redirects probably required, but if it could be 1 script that I could put one 1 html page, that would be amazing (if it is possible).

    I need the site to:
    1. Upon going to site, determine if it is a mobile browser. If so, send visitors to mobile site automatically. If not then continue to step 2.
    2. Verify that users can view Flash. If yes check connection speed:
    A. Send above 60kbits/sec to flash site
    B. If less send users to html site.
    If they cannot view Flash, head to step 3
    3. For those users that are left, (they can't view flash, and are not using a phone), send them to the html site.

    I have bolded the 3 versions of the site I have. Please include all code needed, as Im a noob at Javascript programming (explanations on what the lines do would be nice).
    Thanks
    Chris

    Not having a good day...plz help make it WAY better.....

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,561
    Thanks
    80
    Thanked 4,495 Times in 4,459 Posts
    You're talking about a fairly major project here and one that is best *NOT* done using JavaScript.

    Look at this thread:
    http://www.codingforums.com/showthread.php?t=211336

    And *that* is just to detect if it's a mobile browser or not.

    Almost surely this is not a project for JavaScript.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •