This is a simple but tricky way of loading flash website or html site.
basically most people use to create two website with flash version and html version of same site.
In that case some use to go for a complected way to solve this way this is some simple way to solve this.
Situation: is if the browser has a flash player installed then it needs to link to flash site and if there is no flash player then it will link to the HTML site.
Solution:
Step 1 : make ready the main flash site and the html site. let consider the htmlsite main page as html_main.html and flashsite as flash_main.html.
Step2 : create a separate flash file with the low dimension 1 X 1.
Step3 : In this first frame place a code to load the flash site as getURL("flash_main.html");
step4 : in the file which has the 1X1 dimention file put the code as
<META HTTP-EQUIV="Refresh" CONTENT=5; URL=html_main.html">in the first line of your main index file.
your got the result. Simple right check below how it work...
How it work.
If the flash player is installed then the flash will get load and it will load the flash site this is the first case.
If the flash player is not there it will not load any flash file (the 1X1 dimention file) and no redirecting to the flash site will happen.
In that place the code in the html page will refresh and redirect the html page to the new html site this is second case...
Most people might knowing this logic but any how i found this logic intresting so i shared with you...
i has also put the same procedure to my site www.gbala.com...
Cool enjoy...
No comments:
Post a Comment