Thanks Arun,

Right now, Enhance is working with swfObject 2.1 in FF, Opera, Chrome,
and Safari. In IE8 I can get it to work if I put a try and catch
around dynamicStylesheet.addRule(sel, decl) and don't handle the
error. Do you guys have any preferences as to how I document that in
the code?

Could this have anything to do with me using a wrapper div so that I
can manipulate the z-index and position of my content?  The selector
is showing as #+"myDiv.id" (e.g. #divtriceratopswalk~1) and the
declaration is visibility:hidden.

Here's the relevant part of my JavaScript:

var myWrapperDiv=document.createElement('div');
myWrapperDiv.id="wrapperdiv"+movieID
myWrapperDiv.style.position="absolute";
getHighestZIndex();
myWrapperDiv.style.zIndex=parseInt(window.neHighestZIndex)+parseInt
(SwfZ)+parseInt(neLayerAdjustValue);
        if (document.all) {
                myWrapperDiv.style.top=parseInt(SwfY);// - 
parseInt(offsetDeltaY);
                myWrapperDiv.style.left=parseInt(SwfX);//- 
parseInt(offsetDeltaX);
        }else{
                var myTopY = parseInt(SwfY);// - parseInt(offsetDeltaY);
                var myTopY = myTopY+'';
                var myTopX = parseInt(SwfX);// - parseInt(offsetDeltaX);
                var myTopX = myTopX+'';
                myWrapperDiv.style.top=myTopY+'px';
                myWrapperDiv.style.left=myTopX+'px';
        }
        document.body.appendChild(myWrapperDiv);
        var myDiv=document.createElement('div');
        myDiv.id="div"+movieID
        document.getElementById(myWrapperDiv.id).appendChild(myDiv);
        myDiv.id="div"+movieID
        var flashvars = {};
        var params = {};
        var attributes = {};
        params.wmode = "transparent";
        params.scale = "exactfit";
        params.swliveconnect = "true";
        flashvars.neMode = "published";
        flashvars.neAlpha = SwfAlpha;
        flashvars.neMedia = SwfLocation;
        flashvars.nePlayMode = SwfPlayMode;
        flashvars.neDivId = myDiv.id;
        swfobject.embedSWF(fullMoviePath, myDiv.id, width, height, "9.0.0",
false, flashvars, params, attributes);

Here's my HTML:

<?xml version="1.0" encoding="UTF-8"?>
<!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>
<title> favorites / bookmark title goes here </title>
<!--Enhance Project Name:xhtmltest-->
<style type="text/css">BODY {margin: 0}</style></head>

<body>

<h1>This is a live testing page. I am currently trying to integrate
swfObject 2.1. I had it working but I wasn't using a wrapper div so
the div positons were off. </h1>


<script type="text/javascript">var neStepHeightList ="";</
script><script type="text/javascript">var EnhanceProjectName
="basicpage"; var neLayerAdjustValue ="1";</script>

<script type="text/javascript" src="EnhanceFolder/
norrisoftenhanceloader.js"></script></body>

</html>

Any ideas?

Thanks!

Steve
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to