Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.
function addSwf(){
var so = new SWFObject('sample.swf', 'sampleSwf', '550', '400', '7', '#000000');
so.write("flashcontent");
}
function setMouseMovements(){
var div = document.getElementById("flashcontent");
div.onmouseover = function (){
mouseOver(this);
};
div.onmouseout = function (){
mouseOut(this);
};
}
function mouseOut(div) {
alert("OUTta here...");
//Clear function to eliminate endless loop!
div.onmouseout = function (){};
}
function mouseOver(div) {
alert("get OVER it");
//Clear function to eliminate endless loop!
div.onmouseover = function (){};
}
window.onload = function(){
addSwf();
setMouseMovements();
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ExternalInterface</title>
<script type="text/javascript" src="swfobject.js"></script>
<style type="text/css">
body {
background-color: #999999;
font: .8em/1.3em verdana,arial,helvetica,sans-serif;
}
#flashcontent {
width: 800px;
height: 600px;
}
</style>
</head>
<body>
<table width="800" height="600" onmouseout="mouseOut()" onmouseover="mouseOver()">
<td>
<div id="flashcontent">
Alternate text here.
</div>
</td>
</table>
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("carousel3.swf", "Carousel", "800", "600", "9", "#000000");
so.useExpressInstall('expressinstall.swf');
so.write("flashcontent");
// ]]>
</script>
<script type="text/javascript">
function mouseOut() {
document.getElementByID("Carousel").controlMovement(false);
}
function mouseOver() {
document.getElementByID("Carousel").controlMovement(true);
}
</script>
</body>
</html>
ExternalInterface.addCallback("controlMovement", this, onControlMovement);
var isOver:Boolean = true;
function onControlMovement(arg) {
isOver = arg;
}
1 to 7 of 7