www.webdeveloper.com
Results 1 to 2 of 2

Thread: prevent images from loading before redirect

  1. #1
    Join Date
    Oct 2003
    Posts
    8

    prevent images from loading before redirect

    I have a HTML site that checks for user's flash plugin. If the user has the plugin, it auto-redirects the user to the flash site. But the problem is, I have a necessary show/hide javascript in the body onload tag. It's fine if the user does not have flash plugin, but if the user has it, the end result is pretty frustrating for them -- the onload function forces the page to load all the images before redirecting user to the flash site, where they have to wait again for the flash to load. How can I tell the html page to listen to this "if user has flash plugin, stop bloody loading and redirect NOW!" ?

  2. #2
    Join Date
    Feb 2003
    Posts
    2,745
    how are you checking for the plug-in -- server side or client side? If it's server side, then this should be a non-issue, simple redirect to the flash site via server side code. If it's client side:
    Code:
    // Pseudo-code
    if(hasFlashPlugin) {
      location.href="flashSite.html";
    }
    else {
      loadMyDHTMLStuff();
    }

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



Recent Articles