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:
- Javascript checks browser version when user enters.
- 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..
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.
精彩评论