homepage Welcome to WebmasterWorld Guest from 54.237.95.6
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Home / Forums Index / Browsers / Firefox Browser Usage and Support
Forum Library, Charter, Moderators: incrediBILL

Firefox Browser Usage and Support Forum

    
Dreamweaver Timeline Not working in Firefox 2
Timeline Problem
danadesigns




msg:3686189
 1:55 am on Jun 29, 2008 (gmt 0)

I am very new to this so bear with me...I have created a photo slide show using Dreamweaver CS3. It works in IE 5.2 for Mac and in Opera 9.2 but not in Firefox or Safari. Here is the link to the page:

< Sorry, no personal links >

Here is the code: (Hope I've included everything)

function MM_timelinePlay(tmLnName, myID) { //v1.2
//Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004 Macromedia, Inc. All rights reserved.
var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
tmLn = document.MM_Time[tmLnName];
if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID
if (myID == tmLn.ID) { //if Im newest
setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
fNew = ++tmLn.curFrame;
for (i=0; i<tmLn.length; i++) {
sprite = tmLn[i];
if (sprite.charAt(0) == 's') {
if (sprite.obj) {
numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
keyFrm=1;
for (j=0; j<sprite.values.length; j++) {
props = sprite.values[j];
if (numKeyFr != props.length) {
if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
else sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
} else {
while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
if (firstTime fNew==sprite.keyFrames[keyFrm-1]) {
if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
else sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
} } } } }
} else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
if (fNew > tmLn.lastFrame) tmLn.ID = 0;
} }
}

function MM_timelineGoto(tmLnName, fNew, numGotos) { //v2.0
//Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004 Macromedia, Inc. All rights reserved.
var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,lastKeyFr,propNum,theObj;
if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
tmLn = document.MM_Time[tmLnName];
if (numGotos != null)
if (tmLn.gotoCount == null) tmLn.gotoCount = 1;
else if (tmLn.gotoCount++ >= numGotos) {tmLn.gotoCount=0; return}
jmpFwd = (fNew > tmLn.curFrame);
for (i = 0; i < tmLn.length; i++) {
sprite = (jmpFwd)? tmLn[i] : tmLn[(tmLn.length-1)-i]; //count bkwds if jumping back
if (sprite.charAt(0) == "s") {
numKeyFr = sprite.keyFrames.length;
firstKeyFr = sprite.keyFrames[0];
lastKeyFr = sprite.keyFrames[numKeyFr - 1];
if ((jmpFwd && fNew<firstKeyFr) (!jmpFwd && lastKeyFr<fNew)) continue; //skip if untouchd
for (keyFrm=1; keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]; keyFrm++);
for (j=0; j<sprite.values.length; j++) {
props = sprite.values[j];
if (numKeyFr == props.length) propNum = keyFrm-1 //keyframes only
else propNum = Math.min(Math.max(0,fNew-firstKeyFr),props.length-1); //or keep in legal range
if (sprite.obj != null) {
if (props.prop2 == null) sprite.obj[props.prop] = props[propNum];
else sprite.obj[props.prop2][props.prop] = props[propNum];
} }
} else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
}
tmLn.curFrame = fNew;
if (tmLn.ID == 0) eval('MM_timelinePlay(tmLnName)');
}

What is the problem? I look forward to learning from everyone and appreciate any help.

Thanks,
Dana

[edited by: tedster at 9:00 am (utc) on June 29, 2008]

 

BaseVinyl




msg:3686191
 2:24 am on Jun 29, 2008 (gmt 0)

Works great for me

danadesigns




msg:3686302
 1:06 pm on Jun 29, 2008 (gmt 0)

Thanks for taking the time to look at it. It's still not working for me. I'm on a Mac (10.4.9) using Firefox 2.0. This code is in a page full of code. Could there be something in the rest of the code that might be interfering with this script when it's on the server? How can I show you this so you can see what I'm seeing?

Anyone that can help will have my undying gratitude!

tedster




msg:3686443
 6:18 pm on Jun 29, 2008 (gmt 0)

This earlier thread [webmasterworld.com] discusses some of the problems that can go on. The issue most likely lies in Dreamweaver's javascript coding, and not in the Firefox browser.

Autogenerated scripts can be a real bugaboo cross-browser. Have you updated your CS3 with Jan 08 download from Adobe? [adobe.com...]

danadesigns




msg:3686488
 7:41 pm on Jun 29, 2008 (gmt 0)

I just got the new software about 2 weeks ago. Should I still have to update it?

tedster




msg:3686656
 3:34 am on Jun 30, 2008 (gmt 0)

That depends when the software you got was created. The update was Jan 2008, but if you bought CS3 on disk, it might well be older than that. Can't hurt to check.

And there's no guarantee the javascript issue will be fixed, either - unfortunately. Dreamweaver javascript has long been bloated and less than rock solid cross-browser.

At the last PubCon, Scott Feguette [pubcon.com], product manager for Adobe, talked about radical changes coming in future Dreamweaver releases. The base code that Adobe inherited from MacroMedia has always been lacking in the script library area, unless your happy just serving to IE and FF people on Windows.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Browsers / Firefox Browser Usage and Support
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved