Ai ceva de facut in cod, design sau animatie si nu stii cum? Trimite-ne mail si-ti vom face tutorial ce va rezolva problema ta.
Documentatii pentru toate nivelele, de la incepatori la avansati, dar si pentru cei ce au nevoie doar de o 'bucata de cod'
Cum sa utilizam un flash valid si neblocat
+ Bookmark-uri
Autor: Cristea Iulian
1 din 9 voturi
Voteaza acest articol
Tutorial not available for this language. Only english version.
For many times has happen to need a flash insertion into our html code but w3c says it's not a valid tag and for a while Internet Explorer blocks our flash and peoples needs to click on it to activated. Why? I don't know because I don't think i more dangerous than JavaScript which can seriously harm your computer.
Taking in consideration that there is a way to use a valid flash from code, we have to wonder if our flash file will still be blocked by Internet Explorer. Of course it will. So let's use JavaScript instead. There is a way which skip blocking module of Internet Explorer. Why? Because it doesn't realize what it is that code.
First of all, without worrying to use a valid content because the w3c validator won't check in JavaScript we can directly use the embed tag without object tag.
I suggest to put this code outside from your page into a JS file because I saw that Internet Explorer sometimes detects that you are trying to insert a flash file. The thing is that actually the browser knows that there is a flash file but its detection module not.
However if you worry about your flash indexing because is into JavaScript code, you shouldn't because flash files are hardly indexed by search engines anyway. As a tip, use flash files only if really necessary and never create links or buttons inside a flash because it won't be indexed at all. You can still have some other links the same as those you use in your flash, somewhere else in the page.