Automatic scroll

Discussion in 'Mobile Web Development' started by Gaming Warrior, Apr 18, 2008.

  1. Gaming Warrior

    Gaming Warrior New Member

    Joined:
    Dec 8, 2007
    Messages:
    159
    Likes Received:
    12
    Where does....

    EDIT
    New Question

    Where does safari look for the icon to use when you bookmark it to springboard
  2. blackjak231

    blackjak231 Member

    Joined:
    Oct 1, 2007
    Messages:
    759
    Likes Received:
    6
    Device:
    iPhone 4 (White)
    Go here to see a tutorial, and if you dont get it, i'm putting the line your suppose to add in your pages!

    To specify an icon for the entire website (every page on the website), place an icon file in PNG format in the root document folder called apple-touch-icon.png.

    To specify an icon for a single webpage, or replace the website icon with a webpage-specific icon, add a link element to the webpage as in:

    PHP:
    <link rel="apple-touch-icon" href="/custom_icon.png"/>
    In the above example, replace custom_icon.png with your icon filename.

    Rep if this helps please!
    thanks!


    PS: Could you repost your old question?
    1 person likes this.
  3. Gaming Warrior

    Gaming Warrior New Member

    Joined:
    Dec 8, 2007
    Messages:
    159
    Likes Received:
    12
    Thanks a bunch, left you rep

    Please Register or Log in to view images


    The old question was how do i get a page to automatically scroll past the the safari url thingy. I ended up redoing my page so that it fits perfectly in the space left with the header and footer. thou wouldn't mind the answer for future reference.
  4. blackjak231

    blackjak231 Member

    Joined:
    Oct 1, 2007
    Messages:
    759
    Likes Received:
    6
    Device:
    iPhone 4 (White)
    Well, if you wanted to do that too without changing anything from your site, add the following code to your <head></head> section, and it should do the trick!

    PHP:
    <script type="application/x-javascript">
    function 
    hideAddressBar() { window.scrollTo(01); }
    </script>
  5. Gaming Warrior

    Gaming Warrior New Member

    Joined:
    Dec 8, 2007
    Messages:
    159
    Likes Received:
    12

Share This Page