Kyle
Kyle

Reputation: 947

Prevent div from loading with javascript/jquery

I'm trying to work around with the problem I have at Annoying IE6. Black screen with "loading" when youtube is added

Basically, I'm thinking of:

  1. Javascript checks browser version when user enters.
  2. If MSIE version = 6.0, prevents browser from loading the div/object that holds the youtube (which is the cause of the full black background with "loading")

I'm able to get to checking browser version, but not for the part where the code prevents the object from being loaded.

help please..

Upvotes: 0

Views: 1388

Answers (1)

Alistair Laing
Alistair Laing

Reputation: 973

You could insert the div into the body of the page depending on the version. eg ie MSIE < 7 then do nothing else insert object that contains youtube video.

Upvotes: 1

Related Questions