/    Sign up×
Community /Pin to ProfileBookmark

hide flash – fadeIn centerhome

Hi,
I have problem replacing the .swf intro file at [url]http://www.bethcameronvo.com/[/url]

you can view the source (view->source).
This is what I understand (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(“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?
or there is something I do not understand about the scripts?

Thanks
alessandra

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@toicontienNov 03.2008 — I appears to be working for me using Firefox3. I see "DEMOS: commercial, industrial, etc..." after the intro finishes playing.
×

Success!

Help @alessandra spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...