robothouse
12-11-2006, 11:01 AM
Hi everyone, I'm currently working on my new portfolio website and as such have included the following Flash activation code in the page (to stop that 'click to activate' nonsense):
<script type="text/javascript">
var fo = new FlashObject("portfolio.swf", "animationName", "700", "385", "8", "#FFFFFF");
fo.addParam("allowScriptAccess", "sameDomain");
fo.addParam("quality", "high");
fo.addParam("scale", "noscale");
fo.addParam("loop", "false");
fo.write("flashcontent");
</script>
In my flash movie I am trying to include a gallery that can lauch pop-up windows via javascript. In my ¬Digital>Gallery¬ section if you click the elearning button in Firefox it launches a pop-up window as intended using the following code in the movie (and no further code in the html page):
on (release) {
getURL("javascript:NewWindow=window.open('elearning.html', 'Sony elearning','width=400,height=300,left=0,top=0,tool bar=No,location=No,scrollbars=No,status=No,resizab le=No,fullscreen=No'); NewWindow.focus(); void(0);");
}
however this does not function in IE (am using the latest one), it simply creates an error (as indicated by a "!" sign in the bottom corner of the browser)
can anyone suggest a better way of achieving these 2 things in the page (avoiding click to activate, and launching pop-ups), or have I just missed something reeeeally small here?
cheers very much
btw my page is here: www.robothousegames.com/johnevelyn
<script type="text/javascript">
var fo = new FlashObject("portfolio.swf", "animationName", "700", "385", "8", "#FFFFFF");
fo.addParam("allowScriptAccess", "sameDomain");
fo.addParam("quality", "high");
fo.addParam("scale", "noscale");
fo.addParam("loop", "false");
fo.write("flashcontent");
</script>
In my flash movie I am trying to include a gallery that can lauch pop-up windows via javascript. In my ¬Digital>Gallery¬ section if you click the elearning button in Firefox it launches a pop-up window as intended using the following code in the movie (and no further code in the html page):
on (release) {
getURL("javascript:NewWindow=window.open('elearning.html', 'Sony elearning','width=400,height=300,left=0,top=0,tool bar=No,location=No,scrollbars=No,status=No,resizab le=No,fullscreen=No'); NewWindow.focus(); void(0);");
}
however this does not function in IE (am using the latest one), it simply creates an error (as indicated by a "!" sign in the bottom corner of the browser)
can anyone suggest a better way of achieving these 2 things in the page (avoiding click to activate, and launching pop-ups), or have I just missed something reeeeally small here?
cheers very much
btw my page is here: www.robothousegames.com/johnevelyn