Page 1 of 1

SWFObject

Posted: Thu Jul 21, 2011 10:59 am
by makside
Hi all,

I have a problem with Html code which is provided on this site...
if the user doesn't have flash, yowinwork doesn't work...

If would be possible to show me how to use SWFObject .. that will be better to detect flash player for users.. no ?

Many thanks,

Re: SWFObject

Posted: Tue Jul 26, 2011 7:45 pm
by par
Dear Anthony,
Below you will find an example of how to make YoWindow widget embedded with SwfObject.
You will need 2 files - swfobject.js and expressInstall.swf to allow SwfObject handle the case when Flash Player is not installed.
I have attached the files to the post.

I think nowadays most web users already have Flash Player installed on their computers.
Everybody has visited YouTube for at least one time.

This is not a high priority for our project.

This is yowindow.html from the .zip file attached to this post

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>YoWindow with SwfObject example</title>

<script type="text/javascript" src="swfobject.js"></script>
<script language="JavaScript">

function onLoad() {
    var flashvars = {
		location_id: "auto"
	};

    var params = {
    	quality: "high",
    	bgcolor: "#FFFFFF",
		allowscriptaccess: "always",
		allowfullscreen: "true",
		menu: "false",
		wmode: "window"
    };

    var attributes = {
    	id:"yowidget",
    	name:"yowidget"
    };

    swfobject.embedSWF(
    	"http://swf.yowindow.com/wimo/hpPal/hpPal.swf",
    	"yowidget", 
    	"380", 
    	"240",
    	"9.0.0",
    	"expressInstall.swf",
    	flashvars,
    	params,
    	attributes
    );
}
</script>

</head>

<body onload="onLoad();">

<div id="yowidget">
</div>

</body>
</html>

Re: SWFObject

Posted: Wed Jul 27, 2011 9:23 pm
by makside
Great..
Thank you for that..

yes, of course, i think also for youtube.. but i think there are always people who don't know Youtube (in particular, old persons..)
thus, I prefer to take the initiative rather than to have problems with users..

Re: SWFObject

Posted: Thu Jul 28, 2011 3:28 pm
by par
In our project we are trying to concentrate on the majority users to save time.
Otherwise we would not be able to do as much as you see with YoWindow and with the website.