Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto sizing of the flash page on Browser.

Status
Not open for further replies.

paragvshah

Programmer
Jan 11, 2001
109
IN
Hello Friends,
I am facing a small problem.
I have designed a flash movie. This will serve as the home page to my site.
My requirement is that I would like this flash page to be resized automatically based on the individual screen settings and resolutions. For eg: If person A is using a monitor with 800*600 and person B is using 1024*768 etc. I would want my flash movie to resize with respect to the screen settings on every machine.
Is there a script available that will take care of this automatically???
Also, is there a script that will detect my browser and automatically load the corresponding flash file?

DENZIL
 
on your first question:
you dont need a script to make flash resize on different resolutions. just declare: width=100% and height=100% when u publish it.

on your next question:

here is the script:


Code:
<script language=&quot;JavaScript&quot;>
<!--


browserName = navigator.appName; // gets the name of the browser application

if (browserName==&quot;Microsoft Internet Explorer)
{
document.write (&quot;First Flash file&quot;);
}
else
{
document.write (&quot;Second Flash file&quot;);
}


//-->
</script>




i hope this helps




Godspeed ::) ,
biggie




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top