I try to avoid using this for a pop-up screen because it does not work on all devices and for other reasons:
<link rel="apple-touch-startup-image" href="img/splash.png" />
So, I'm trying to use this instead, and it works fine until it moves to a new page, after which it will again be treated as a splash screen (for example, it will be blank when the timer expires), in this case 4 seconds ). How can I stop / limit this behavior so that changePage will only remain on the splash page?
<body> <div data-role="page" id="splash"> <div class="splash"> <img src="startup.jpg" alt="startup image" /> <script type='text/javascript'>//<![CDATA[ $(window).load(function(){ $(function() { setTimeout(hideSplash, 4000); }); function hideSplash() { $.mobile.changePage("#home", "fade"); } });//]]> </script> </div> </div> <div data-role="page" id="home"> <div data-role="header" data-backbtn="false"> <h1></h1> </div> <div data-role="content"> </div> </div> </body>
user1418581
source share