Loading Page
Toolbar
Hello Guest
Google Search
search
categories
css
css
html
html
javascript
javascript
    »   Dimensions
    »   Implementations
    »   Menu
    »   Images
    »   Text effects
photoshop
photoshop
php
php



Paypal
Do you have something to do in code, design or animation and you don't know how?
Send us an e-mail and will do a tutorial which will solve your problem.

10 Random Tutorials from all categories and subcategories
tutorials U-Trade
tutorials U-Trade
How to use a valid flash and unblocked : U-Trade
+ Share and Enjoy
Author: Cristea Iulian



Vote up
Vote down
Vote this article
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.

Here is the code:
document.write('<embed src="flash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300" height="150"></embed>');



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.




U-Trade © All rights reserved 2006-2008