# Hide flash - fadeIn centerhome - javascript

**URL:** <https://forum.kirupa.com/t/hide-flash-fadein-centerhome-javascript/274915>\
**Category:** Uncategorized\
**Created:** [November 6, 2008, 4:01pm UTC](https://forum.kirupa.com/t/hide-flash-fadein-centerhome-javascript/274915 "2008-11-06T16:01:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ale\_negrini](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@ale\_negrini](https://forum.kirupa.com/u/ale_negrini)\
**Post date:** [November 6, 2008, 4:01pm UTC](https://forum.kirupa.com/t/hide-flash-fadein-centerhome-javascript/274915/1 "2008-11-06T16:01:14Z")

</div>

Hi,  
I have problem replacing the .swf intro file at [[COLOR=#660000]http://www.bethcameronvo.com/[/COLOR]](http://www.bethcameronvo.com/)

you can view the source (view-\>source).  
This is what I understand about the javascript file (probably not enough).

There is a script that selects the b2-s2.swf file and places it in the \<div id= flashcontainer\>

\<div id=“flashcontainer”\> \</div\>

\<script type=“text/javascript”\>  
var s1 = new SWFObject(“images/b2-s2.swf”,“ply”,“679”,“414”,“9”,"#FFFFFF");  
s1.addParam(“allowfullscreen”,“true”);  
s1.addParam(“allowscriptaccess”,“always”);  
s1.addParam(“wmode”,“transparent”);  
[//s1.addParam](https://s1.addParam)(“flashvars”,“file=video.flv&image=preview.jpg”);  
s1.write(“flashcontainer”);

\</script\>

There is a script that once the flash intro is finished should hide it and replace it with other content:

\<script type=“text/javascript”\>  
function hideDivs(){  
$("#flashcontainer").hide();  
$("#centerhome").fadeIn(“slow”);  
}  
\</script\>

I have replaced the b2-s2.swf file with a new one, it plays and stop at the end but then the content for centerhome does not appear. Is there something I am missing in the the flash file? a link? a variable?  
or there is something I do not understand about the scripts?

Thanks  
alessandra
