my current site works fine under 1.5. But once I recode for 2.2 the
rollover image swaps no longer work for the Divs:

storyButtonDiv, studioButtonDiv, contactButtonDiv, and ftpButtonDiv,
as they do here:

http://www.nathanlang.com/storytelling.html

again, they work fine under 1.5, but 2.2 is doing something completely
different in the was it addresses these divs referenced above

On Apr 18, 2:17 pm, Sam Sherlock <[email protected]> wrote:
> Hi Nathan,
>
> are these two questions related I imagine so?
> is there an example of this online?
>
> I looked at your site using the previous version of swfobject - this is how
> its supposed to work
> can you upload the revised version with swfobject 2?
>
> looking at the code below (glancing really since email has reformatted it)
>
>    - I notice that you have 2 script sources for swfobject.
>    - you have AC_RunActiveContent.js which you should remove.
>    - you have calls to embed within the body of the document
>
> moving the calls to embed swf into the head of your document may resolve the
> issue
>  - S
>
> On 16 April 2011 23:02, nathan <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hello All.... Just a quick ? I have since recoded my .swf's for use
> > under swfobject 2.2 since it is not backwards compatible. It looks as
> > though things work as they should, expect none of the rollover image
> > swaps work any longer. Any ideas why not???? here is some of the code:
>
> > <!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 name="generator" content="HTML Tidy for Linux (vers 6 November
> > 2007), seewww.w3.org"/>
> > <meta name="verify-v1" content="MVqeYN/RBRULc4a8GSl8x7pPoIGXG
> > +pBdgmnCdXePjs="/>
> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
> > <title>Nathan Lang | Young, Hip, Versatile Storyteller</title>
> > <meta name="Description" content="Nathan Lang is a storyteller with a
> > young, hip, warm and conversational approach, His state-of-the-art
> > fully-digital ISDN voiceover studio is available to book him at
> > 347.446.7587"/>
> > <meta name="Keywords" content="nathan
> > lang,ISDN,voiceovers,commercial,promos,narrations,african-american
> > sound,20s-30s,NYC,young,storyteller"/>
> > <link href="index/favicon.ico" rel="shortcut"/>
> > <link href="favicon.ico" rel="shortcut"/>
> > <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></
> > script>
> > <script src="SpryAssets/SpryEffects.js" type="text/javascript"></
> > script>
> > <style type="text/css">
> > @font-face {
> >  font-family: "Clarendon";
> >  src: url(http://www.nathanlang.com/resources/Clarendon/ClareBol.otf)
> > format("opentype"); }
> > h1 { font-family: "Clarendon", serif }<!-- body{font:100% "Clarendon
> > Bold";background:#666666;margin:0;padding:0;text-
> > align:center;color:#000000;margin-left:110px;margin-top:110px;margin-
> > right:0px;margin-bottom:0px;background-color:#000000;}
> > .oneColFixCtr #container{
> >        width:746px;
> >        background:#000000;
> >        height:361px;
> >        position:absolute;
> >        z-index:2;
> > }
> > #storyButtonDiv{position:absolute;left:132px;top:419px;width:
> > 132px;height:24px;z-index:3;}
> > #studioButtonDiv{position:absolute;left:330px;top:419px;width:
> > 132px;height:24px;z-index:4;}
> > #contactButtonDiv{position:absolute;left:520px;top:419px;width:
> > 132px;height:24px;z-index:5;}
> > #ftpButtonDiv{
> >        position:absolute;
> >        left:694px;
> >        top:419px;
> >        width:132px;
> >        height:24px;
> >        z-index:6;
> > }
> > #blankConRoDiv{position:absolute;left:112px;top:192px;width:
> > 543px;height:39px;z-index:7;}
> > #blankStuRoDiv{position:absolute;left:270px;top:245px;width:
> > 509px;height:38px;z-index:8;}
> > #blankFtpRoDiv{position:absolute;left:212px;top:291px;width:
> > 446px;height:43px;z-index:8;}
> > #blankStoRoDiv{position:absolute;left:138px;top:207px;width:
> > 378px;height:27px;z-index:10;}
> > #TwitterDiv{position:absolute;left:780px;top:479px;width:18px;height:
> > 18px;z-index:10;background-color:#000000;}
> > #BloggerDiv{position:absolute;left:809px;top:479px;width:18px;height:
> > 18px;z-index:11;background-color:#000000;}
> > #FacebookDiv{position:absolute;left:838px;top:479px;width:18px;height:
> > 18px;z-index:12;background-color:#000000;}
> > #CopyrightDiv{position:absolute;left:108px;top:479px;width:
> > 144px;height:18px;z-index:13;background-color:#000000;}
> > #copyrighthomeDiv{position:absolute;left:306px;top:479px;width:
> > 47px;height:18px;z-index:14;background-color:#000000;}
> > #copyslashDiv{position:absolute;left:356px;top:479px;width:10px;height:
> > 18px;z-index:15;background-color:#000000;}
> > #aboutmeDiv{position:absolute;left:367px;top:479px;width:72px;height:
> > 18px;z-index:16;background-color:#000000;}
> > #copyslashDiv2{position:absolute;left:444px;top:479px;width:
> > 10px;height:18px;z-index:17;background-color:#000000;}
> > #theworkDiv{
> >        position:absolute;
> >        left:456px;
> >        top:479px;
> >        width:72px;
> >        height:18px;
> >        z-index:17;
> >        background-color:0;
> > }
> > #copyintouchDiv{
> >        position:absolute;
> >        left:654px;
> >        top:479px;
> >        width:112px;
> >        height:18px;
> >        z-index:3;
> > }
> > #apDiv1{position:absolute;left:125px;top:237px;width:377px;height:
> > 27px;z-index:6;}
> > #apDiv2{position:absolute;left:134px;top:268px;width:377px;height:
> > 27px;z-index:5;}
> > #apDiv3{position:absolute;left:121px;top:299px;width:378px;height:
> > 27px;z-index:7;}
> > h1,h2,h3,h4,h5,h6 {
> >        font-family: Clarendon Bold;
> > }
> > #studioImageDiv {
> >        position:absolute;
> >        left:110px;
> >        top:110px;
> >        width:746px;
> >        height:361px;
> >        z-index:1;
> > }
> > -->
> > </style>
> > <script type="text/javascript">function
> > MM_effectAppearFade(targetElement,duration,from,to,toggle)
> > {Spry.Effect.DoFade(targetElement,
> > {duration:duration,from:from,to:to,toggle:toggle});}</script>
> > <script type="text/javascript">
> > if((navigator.userAgent.indexOf('iPhone')!=-1)||
> > (navigator.userAgent.indexOf('iPod')!=-1)||
> > (navigator.userAgent.indexOf('iPad')!=-1))
> > {document.location="mobile/";}
> > function MM_preloadImages() { //v3.0
> >  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
> >    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
> > i<a.length; i++)
> >    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j+
> > +].src=a[i];}}
> > }
>
> > function MM_swapImgRestore() { //v3.0
> >  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i+
> > +) x.src=x.oSrc;
> > }
>
> > function MM_findObj(n, d) { //v4.01
> >  var p,i,x;  if(!d) d=document;
> > if((p=n.indexOf("?"))>0&&parent.frames.length) {
> >    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
> >  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
> > x=d.forms[i][n];
> >  for(i=0;!x&&d.layers&&i<d.layers.length;i++)
> > x=MM_findObj(n,d.layers[i].document);
> >  if(!x && d.getElementById) x=d.getElementById(n); return x;
> > }
>
> > function MM_swapImage() { //v3.0
> >  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
> > for(i=0;i<(a.length-2);i+=3)
> >   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
> > x.oSrc=x.src; x.src=a[i+2];}
> > }
> > </script>
> > </head>
> > <body class="oneColFixCtr" onload="MM_preloadImages('index/indexImages/
> > ftp_ro.jpg','index/indexImages/contact_ro.jpg','index/indexImages/
> > storyteller_ro.jpg','index/indexImages/studio_ro.jpg','index/
> > indexImages/nathanedwardsplashstudio.jpg')">
> > <script type="text/javascript" src="swfobject.js"></script>
> > <script type="text/javascript">var flashvars = {};var params = {};var
> > attributes = {};attributes.id =
> > "storyButtonDiv";swfobject.embedSWF("index/btnStorytelling.swf",
> > "storyButtonDiv", "132", "24", "9.0.0");</script>
> > <div id="storyButtonDiv"
> > onmouseover="MM_swapImage('BlankStorytellingRollover','','index/
> > indexImages/storyteller_ro.jpg',1)"
> > onmouseout="MM_swapImgRestore()"><a href="http://www.nathanlang.com/
> > storytelling.html <http://www.nathanlang.com/%0Astorytelling.html>"
> > target="_parent"></a></div>
> > <div id="studioButtonDiv"
> > onmouseover="MM_swapImage('BlankStudioRollover','','index/indexImages/
> > studio_ro.jpg','studioimage','','index/indexImages/
> > nathanedwardsplashstudio.jpg',1)" onmouseout="MM_swapImgRestore()"><a
> > href="http://www.nathanlang.com/studio.html"; target="_parent"
> > onmouseover="MM_swapImage('BlankStudioRollover','','index/indexImages/
> > studio_ro.jpg',1)" onmouseout="MM_swapImgRestore()">
> > <script type="text/javascript">var attributes = {};attributes.id =
> > "studioButtonDiv";swfobject.embedSWF("index/btnStudio.swf",
> > "studioButtonDiv", "132", "24", "9.0.0", false, flashvars, params,
> > attributes);</script></a></div>
> > <div id="contactButtonDiv"
> > onmouseover="MM_swapImage('BlankContctRollover','','index/indexImages/
> > contact_ro.jpg',1)" onmouseout="MM_swapImgRestore()"><a href="http://
> >www.nathanlang.com/contact.php" target="_parent"><script type="text/
> > javascript">var flashvars = {};var params = {};var attributes =
> > {};attributes.id = "contactButtonDiv";swfobject.embedSWF("index/
> > btnContact.swf", "contactButtonDiv", "132", "24", "9.0.0", false,
> > flashvars, params, attributes);</script></a></div>
> > <div id="ftpButtonDiv"
> > onmouseover="MM_swapImage('blankFTProllover','','index/indexImages/
> > ftp_ro.jpg',1)" onmouseout="MM_swapImgRestore()"><a href="http://
> >www.nathanlang.com/ftp.html" target="_parent"><script type="text/
> > javascript">var flashvars = {};var params = {};var attributes =
> > {};attributes.id = "ftpButtonDiv";swfobject.embedSWF("index/
> > btnFtp.swf", "ftpButtonDiv", "132", "24", "9.0.0", false, flashvars,
> > params, attributes);</script></a></div>
> > <div id="blankStoRoDiv"><img src="index/indexImages/
> > NewBnlkStoryRO.jpg" alt="blank storytelling rollover"
> > name="BlankStorytellingRollover" width="379" height="27"
> > id="BlankStorytellingRollover"/></div>
>
> > Thanks so much for any help!!!!
>
> > --
> > 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.

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