Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8114631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:12:14+00:00 2026-06-06T03:12:14+00:00

I am working on a jquery mobile app, where i want to display the

  • 0

I am working on a jquery mobile app, where i want to display the splash screen for all devices including the ipod, iphone, android mobiles, web browsers.

I have Tried below code:

1.)

<script type="text/javascript">
 (function () {
  var a; if (navigator.platform === "iPad") {
     a = window.orientation === 90 || window.orientation === -90 ?
"_Startup_748x1024.png" : "Startup_768x1004.png"

 } else {
     a = window.devicePixelRatio === 2 ?
   "Startup_640x920.png" : "Startup_320x460.png"

 }
 document.write('<link rel="apple-touch-startup-image" href="' + a + '"/>') })()

The above code is not working with android mobiles and web browsers.

2.)

<div data-role="page" id="splash"> 
 @Html.Partial("_MobileHeader")
  <div class="splash">
        <img src="images/_Startup_748x1024.png" alt="startup image" style="width: 100%; height: 100%" />
    </div>
       <div data-role="content" id="pagecontent" data-theme="c">
    @RenderBody()
        </div>
    <!--End content div  -->
    @Html.Partial("_MobileFooter")
</div>

and the script that i have used is :

$(document).on('pageinit','#splash',function(){
setTimeout(function(){
    $.mobile.changePage("#pagecontent", "fade");
}, 4000);  });

with the above code both of the div get displayed together i want to display only the splash screen first and then the content of another div.

Please suggest me possible solution for the above problem any help would be appreciated.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T03:12:15+00:00Added an answer on June 6, 2026 at 3:12 am

    I have fixed this issue as follows:

    1.) Created an action that is the default action, called when the mobile app is opened at the very first time, and in its view page Set
    the image which is to be displayed based on the orientation of the
    device,which is done by jquery.

    2.) And then to redirect to the another action Or the at the main page after this splash screen added the below line in the head
    section:

    <meta http-equiv="refresh" content="4;URL='the link which you want to call after that'" />
    

    From this the image will be displayed for the starting 4 seconds as mentioned in the “content” and then redirects to the URL specified.

    And it is working on all devices. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am presently working on jquery mobile web app, I want to implement the
I am working on a JQuery Mobile app. I want to distribute this app
I am working on a jQuery Mobile App. On one of the pages I
So I'm working on a mobile web app using jQuery Mobile, and I need
I'm working on my first PhoneGap app with JQuery Mobile and I've having a
I'm working on a simple web app using jQuery mobile, and it is designed
I am working on a simple web app using jquery mobile. I am attempting
I am working on a seemingly basic mobile app (first). But I want to
I'm working on a mobile app using Phonegap (1.4.1) / JS (jQuery Mobile 1.0)
I'm working on a mobile phone app using jQuery mobile and phonegap. I'm using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.