On Jul 23, 10:32 am, Vincent Polite <[email protected]>
wrote:
> OK.  I've looked at your code and am ready to offer a couple of suggestions.
>
> 1.  Do you have the ability to affect anything besides that limited div of
> space?  You mentioned you can't get at the <head>, was curious if you had
> access to the rest of the body of HTML.
>
> I ask this because ultimately we want to make sure that swfobject and the
> DOM are properly loaded and we try to defer as much in the way of latency
> issues as we can.  So, if you can just define the altcontent div, load
> swfobject.js as early as you can in the process, define your SWFLoad
> function as early as possible, and then invoke your javascript routines as
> late as you can in the web page, that may provide some assistance.
>
> 2.  I noticed that you did have the jQuery library as well as SWFObject.  I
> do not know what, if any collisions occur between SWFObject's DOMReady event
> injection and jQuery's, but I would like to suggest that instead of using
> SWFObject's version, try the jQuery analog, which for you would be something
> like:
>
> $(document).ready(function() {}); where you replace function with your
> SWFLoad reference either as an actual function definition or calling it
> after the fact.
>
> Note that a shortcut exists where if you just do $(<function>); that the
> function is automatically bound to the document.ready event.
>
> Please try this, and publish the result.
>
> Optional:  Another interesting thing to try would be to add an alert('I am
> ready') to your onload/document ready function.  It would be interesting to
> see if the forced human delay gives FF3.5 time to write to screen properly.
>
> Optional Part 2:  The next thing to do would be to add an alert('embedding
> SWF') to see if it is reaching the javascript that is attempting to embed
> the object.  Putting this alert just before your embed call would assure you
> that the function call is not getting lose for some reason.
>
> Vincent

1) Unfortunately I only have access to that area, it's as high up as I
can place it.

2) I tried doing this but it broke in all browsers so I took it back
down. I'm not that familiar with jQuery so maybe I did it wrong?

here is what i had:

<!-- swfobject2.2 -->
<script type="text/javascript" src="http://content.guess.com/swfobject/
swfobject.js"></script>

                <script type="text/javascript">
$(document).ready(SWFLoad() {



var SWFLoad = function() {
                        var flashvars = {};
                        var params = {};
                        params.menu = "false";
                        params.quality = "high";
                        params.wmode = "transparent";
                        params.bgcolor = "#ffffff";
                        params.allowfullscreen = "false";
                        params.allowscriptaccess = "always";
                        var attributes = {};
                        attributes.id = "shoes";
                        
swfobject.embedSWF("http://content.guess.com/GuessCanada/Landing/
Shoes/2009-07-07/shoesCA.swf", "altContent", "666", "522", "9.0.0",
false, flashvars, params, attributes);
};

 });


                </script>

<div id="altContent">
                        <a href="http://shop.guess.com/ProductListing.aspx?
page=GRID&browse=1&root_category|46=Women&category|cat_47|
2816=Tees&rpt=  &pt=ProductListing.aspx"><img src="http://
content.guess.com/GuessCanada/Landing/Shoes/2009-07-07/
shoesStaticImage.jpg" alt="GUESS shoes"   title="GUESS shoes"
border="0" /></a></p><p><h4>Our web site is designed for Flash enabled
browsers. If you would like   the full experience please install the
latest Flash player by clicking <a   href="http://www.adobe.com/go/
getflashplayer">here.</a></h4></p>
                </div>
<!-- End swfobject2.2 -->






Optional Part 2: I added the alert at the begining of the function,
and then moved it to after teh EmbedSWF call and it popped up, so it
is def. going through the script:

<script type="text/javascript">
var SWFLoad = function() {
                        var flashvars = {};
                        var params = {};
                        params.menu = "false";
                        params.quality = "high";
                        params.wmode = "transparent";
                        params.bgcolor = "#ffffff";
                        params.allowfullscreen = "false";
                        params.allowscriptaccess = "always";
                        var attributes = {};
                        attributes.id = "shoes";
                        
swfobject.embedSWF("http://content.guess.com/GuessCanada/Landing/
Shoes/2009-07-07/shoesCA.swf", "altContent", "666", "522", "9.0.0",
false, flashvars, params, attributes);
alert('Please close this window. This is temporarily testing the
website');
};
swfobject.addDomLoadEvent(SWFLoad);
                </script>



But still a blank screen in FF 3.0.7




--~--~---------~--~----~------------~-------~--~----~
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