Results 1 to 8 of 8

Thread: Javascript works in PC browsers but not mobile browsers. Looking for a solution.

  1. #1
    Join Date
    Oct 2013
    Baltimore, MD

    Javascript works in PC browsers but not mobile browsers. Looking for a solution.

    The following page, www.victorrossi.com/index.htm , works in Firefox, Chrome, Safari and Internet Explorer but does not work on Iphones and Android web browsers.

    There is a javascript that slowly displays the company name "Victor Rossi" before going to the next page, www.victorrossi.com/home.htm , after a 7 second delay. Users can skip the "Victor Rossi" letter by letter reveal javascript by clicking on the "Skip intro" in the upper right corner. However for those visiting my website for the first time, the 7 seconds until it goes to the next page may lead them to think my website isn't working.

    what can be added to the initial www.victorrossi.com/index.htm page just in case the web browsers are not "javascript capable" ? Here is the html page below:

    <head><title>Victor Rossi</title>
    <meta name="description" content="Victor Rossi has evolved from its custom couture design roots into one of the world's most reliable design houses, private label manufacturers and global sourcing agents.
    Our combination of innovation, stellar craftsmanship, exceptional customer and client care are our hallmarks.">
    <meta name="keywords" content="after five, after six, beauty pageant, boutique, catalog, catwalk, chic, club dresses, collection, ****tail dresses, couture, debutante, designer, dresses, dress, elegant, evening wear, exclusive, fashion, fashion designer, holiday dresses, homecoming, look of the year, Miss Teen USA, Miss USA, Miss America, Miss World, Miss Universe, pageant, pageants, party dresses, prom, special occasion, haute couture, Bob Mackie, Carmen Marc Valvo, Randolph Duke, Mark Badgley, James Mishka, Badgley Mishka, Vera Wang, Alexander McQueen, John Galliano, Stephen Yearick, Sherri Hill, Jovani, Claire's Collection, Juan Carlos Pinera, Tony Bowls, DKNY, Zac Posen, Proenza Schouler, Saks, Saks Fifth Avenue, jones, jones apparel, jonesapparel, jones apparel group, jones new york, apparel, clothing, clothes, women's, men's, kids, juniors, department, store, mall, fashion, handbags, jewelry, accessories, jeans, sweaters, tops, knits, sportswear, better apparel, bridge, designer,denim, moderates, luxury">
    <meta http-equiv="refresh" content="7; Url=home.htm">
    <body onLoad="self.focus()">
    <p align=right><a href="home.htm">skip intro</a>
    <OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="1024" HEIGHT="768" id="vr.swf" ALIGN="">
    <PARAM NAME=movie VALUE="vr.swf"> <PARAM NAME=quality VALUE=high> <EMBED src="vr.swf" quality=high bgcolor=#ffffff WIDTH="1024" HEIGHT="768" NAME="vr.swf" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED> </OBJECT> </center>

  2. #2
    Join Date
    Oct 2013
    Baltimore, MD
    whoops ! Near the bottom, the "smiley face" should be (the's a colon and the letter D)

  3. #3
    Join Date
    Feb 2003
    Michigan, USA

  4. #4
    Join Date
    Oct 2013
    Baltimore, MD
    Thanks for replying Toicontien ! I was trying to find a "noscript" or no javascript installed detect script like this:

    <meta http-equiv="refresh" content="0; Url=http://www.victorrossi.com/home.htm"/>

    but adding the "noscript" does not automatically skip the javascript which works on all web browsers. I have tried various potential solutions that I found online on http://stackoverflow.com/ with no luck !

  5. #5
    Join Date
    Oct 2013
    Please reread toicontien's post, and your own code that you posted. Plus when you right-click on your "splash page" it brings up all the Flash info. You are using Flash, not JavaScript. Therefore <noscript> will have no effect. FWIW, Adobe (current "owners" of Flash) has announced that they are ending development of Flash pretty soon, if not already. HTML5 is where animation is headed and Adobe has recognized that, which along with the non-support by mobile platforms, I'm sure led to that decision.

    Flash splash pages are on the bleeding edge of new-millenium web techniques , maybe it's time to move on. There's nothing wrong with your "home.htm" page being your index.htm page. Maybe with a little tweeking, like making the "Victor Rossi" image at the top a little larger, it would work

  6. #6
    Join Date
    Oct 2013
    Baltimore, MD
    Kevin2. Aha ! My knowledge of terminology like flash / java is obviously quite limited. I mistakenly thought that "flash animation" was a type of javascript. It makes sense. Thanks.

  7. #7
    Join Date
    Oct 2013
    You bet, man! Glad to help.

  8. #8
    Join Date
    Oct 2013
    Baltimore, MD
    Hey Kevin and Toicontien ..... FOUND THE SOLUTION here - http://www.kirupa.com/developer/mx/detection.htm ! I hope this helps others !!! I have posted the top portion only where the script is required. Please note that where I have used "http://www.victorrossi.com/index.htm for IF the user has flash OR "http://www.victorrossi.com/home.htm" IF the browser does not have flash, PLEASE USE the full website of your own instead of my www.victorrossi.com html pages. See below :

    <head><title>Victor Rossi</title>
    <SCRIPT LANGUAGE=JavaScript1.1>
    var MM_contentVersion = 7;
    var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
    if ( plugin ) {
    var words = navigator.plugins["Shockwave Flash"].description.split(" ");
    for (var i = 0; i < words.length; ++i)
    if (isNaN(parseInt(words[i])))
    var MM_PluginVersion = words[i];
    var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
    else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
    && (navigator.appVersion.indexOf("Win") != -1)) {
    document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
    document.write('on error resume next \n');
    document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
    document.write('</SCR' + 'IPT\> \n');
    if ( MM_FlashCanPlay ) {
    } else{


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.10319 seconds
  • Memory Usage 2,934KB
  • Queries Executed 15 (?)
More Information
Template Usage (32):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (8)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates