two sets of javascript?

Ask a Question related to Macromedia Fireworks, Design and Development.

  1. #1

    Default Re: two sets of javascript?

    mello:

    I would need to see the code to comment.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
    ANSWERS
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "mellocello" <webforumsuser@macromedia.com> wrote in message
    news:bhj1k8$iha$1@forums.macromedia.com...
    > I have pages that were created using FW4 and now are updated and revised
    using roundtrip editing from DWMX to FWMX and back to DWMX.
    >
    > When examining the JavaScript inside of the HTML document there seems to
    be two versions of JavaScript (one for NN4 and one for IE) to control the
    images and rollovers imported from FW.
    > When I update the images via updating PNG file the javascript does not
    update correctly.
    > One set of javascript code updates and the other doesn't.
    >
    > Why is there two sets of script? Am I missing something?
    >
    >
    >
    >
    >
    >

    Murray *TMM* Guest

  2. Similar Questions and Discussions

    1. Converting between character sets
      If I have a column with the word Dürer in it can I use the Convert function to convert it to Durer by down-shifting into a 7 bit character set?! --...
    2. Why did Photoshop CS quit suddenly in the middle of making sets? Action sets
      G4/450/dual/OSX33/1gigRAM/45gigHD/Photoshop CS Does anyone know why Photoshop CS quit suddenly in the middle of making Action sets, saying I had...
    3. CS quit suddenly in the middle of making Action sets Action sets,
      G4/450/dual/OSX33/1gigRAM/45gigHD/Photoshop CS Does anyone know why Photoshop CS quit suddenly in the middle of making Action sets, saying I had...
    4. Array subtraction, like sets
      Hey there, what is a nice way of doing what this looks like it should do: @a=(,,); @b=(,); @c=@a-@b; and have @c == (); Is there a good...
    5. merging found sets????
      Hi all I'm hoping you can help out... I've got 2 databases - each containg list of people going to various events one database is members...
  3. #2

    Default Re: two sets of javascript?

    The code is attached
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>haha noard</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script language="JavaScript">
    <!--
    <!--

    <!--
    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_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_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];}
    }
    //-->
    function mmLoadMenus() {
    if (window.mm_menu_0314114643_0) return;
    window.mm_menu_0314114643_0 = new Menu("root",228,18,"Arial, Helvetica, sans-serif",12,"#2c2c69","#e1e1f2","#e1e1f2","#2c2c69", "left","middle",3,0,800,-5,7,true,true,true,0,true,true);
    mm_menu_0314114643_0.addMenuItem("P&nbsp;to&nbsp;B &nbsp;(Text)","window.open('../Shuttle%20Bus%20Schedule7apr.doc', '_blank');");
    mm_menu_0314114643_0.addMenuItem("P&nbsp;to&nbsp;R ","window.open('../flash/Rosslynbus.exe', '_blank');");
    mm_menu_0314114643_0.addMenuItem("Printable&nbsp;B us&nbsp;Schedules","window.open('../transit/bus_Apr02.pdf', '_blank');");
    mm_menu_0314114643_0.addMenuItem("Metrobus&nbsp;Re placement&nbsp;Route","window.open('../temp/Mass Transit Route Map.ppt', '_blank');");
    mm_menu_0314114643_0.addMenuItem("Metrobus&nbsp;Re placement&nbsp;Route&nbsp;Schedule","window.open(' ../temp/Metro Shuttle.xls', '_blank');");
    mm_menu_0314114643_0.hideOnMouseOut=true;
    mm_menu_0314114643_0.menuBorder=1;
    mm_menu_0314114643_0.menuLiteBgColor='#ffffff';
    mm_menu_0314114643_0.menuBorderBgColor='#2c2c69';
    mm_menu_0314114643_0.bgColor='#555555';
    window.mm_menu_0314120057_1 = new Menu("root",195,18,"Arial, Helvetica, sans-serif",12,"#2c2c69","#e1e1f2","#e1e1f2","#2c2c69", "left","middle",3,0,800,-5,7,true,true,true,0,true,true);
    mm_menu_0314120057_1.addMenuItem("A&nbsp;F&nbsp;Ai m&nbsp;Points","window.open('../MsgBoard/AimPoints0303.doc', '_blank');");
    mm_menu_0314120057_1.addMenuItem("Bldg&nbsp;&nbsp; Evacuation&nbsp;Procedures","window.open('..Evacua tionProcedures.doc', '_blank');");
    mm_menu_0314120057_1.addMenuItem("Safe&nbsp;Room&n bsp;Procedures","window.open('../SafeRoomproc.htm', '_blank');");
    mm_menu_0314120057_1.hideOnMouseOut=true;
    mm_menu_0314120057_1.menuBorder=1;
    mm_menu_0314120057_1.menuLiteBgColor='#ffffff';
    mm_menu_0314120057_1.menuBorderBgColor='#2c2c69';
    mm_menu_0314120057_1.bgColor='#555555';
    window.mm_menu_0314115458_1 = new Menu("root",80,18,"Arial, Helvetica, sans-serif",12,"#2c2c69","#e1e1f2","#e1e1f2","#2c2c69", "left","middle",3,0,800,-5,7,true,true,true,0,true,true);
    mm_menu_0314115458_1.addMenuItem("View&nbsp;Events ","window.open('../Msgboard/msglist.asp', '_blank');");
    mm_menu_0314115458_1.addMenuItem("Add&nbsp;An&nbsp ;Event","window.open('../Msgboard/msgfill.asp', '_blank');");
    mm_menu_0314115458_1.hideOnMouseOut=true;
    mm_menu_0314115458_1.menuBorder=1;
    mm_menu_0314115458_1.menuLiteBgColor='#ffffff';
    mm_menu_0314115458_1.menuBorderBgColor='#2c2c69';
    mm_menu_0314115458_1.bgColor='#555555';
    window.mm_menu_0314120532_2 = new Menu("root",132,18,"Arial, Helvetica, sans-serif",12,"#2c2c69","#e1e1f2","#e1e1f2","#2c2c69", "left","middle",3,0,800,-5,7,true,true,true,0,true,true);
    mm_menu_0314120532_2.addMenuItem("BBQ&nbsp;Grill&n bsp;Safety","window.open('../BBQGrillSafety.htm', '_blank');");
    mm_menu_0314120532_2.addMenuItem("Safety&nbsp;Day& nbsp;2002","window.open('../safetydaypackage.doc', '_blank');");
    mm_menu_0314120532_2.addMenuItem("Fire&nbsp;Preven tion","window.open('../fireprevention.ppt', '_blank');");
    mm_menu_0314120532_2.addMenuItem("Other&nbsp;Safet y&nbsp;Recalls","window.open('http://www.cpsc.gov/cpscpub/prerel/prerel.html', '_blank');");
    mm_menu_0314120532_2.hideOnMouseOut=true;
    mm_menu_0314120532_2.menuBorder=1;
    mm_menu_0314120532_2.menuLiteBgColor='#ffffff';
    mm_menu_0314120532_2.menuBorderBgColor='#2c2c69';
    mm_menu_0314120532_2.bgColor='#555555';

    mm_menu_0314120532_2.writeMenus();
    } // mmLoadMenus()

    //-->

    </script>
    <script language="JavaScript1.2" src="images/mm_menu.js"></script>
    <script language="JavaScript1.2" src="mm_menu.js"></script>
    <script language="JavaScript" type="text/JavaScript">
    <!--
    <!--

    <!--
    function MM_reloadPage(init) { //reloads the window if Nav4 resized
    if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
    else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    }
    function mmLoadMenus() {
    if (window.mm_menu_0314114643_0) return;
    window.mm_menu_0314114643_0 = new Menu("root",145,18,"Arial, Helvetica, sans-serif",12,"#2c2c69","#e1e1f2","#e1e1f2","#2c2c69", "left","middle",3,0,800,-5,7,true,true,true,0,true,true);
    mm_menu_0314114643_0.addMenuItem("P&nbsp;to&nbsp;B &nbsp;","window.open('../Msgboard/shuttle0403.htm', '_blank');");
    mm_menu_0314114643_0.addMenuItem("P&nbsp;to&nbsp;R ","window.open('../Flash/Rosslynbus.exe', '_blank');");
    mm_menu_0314114643_0.addMenuItem("Printable&nbsp;B us&nbsp;Schedules","window.open('../transit/bus-may01.pdf', '_blank');");
    mm_menu_0314114643_0.hideOnMouseOut=true;
    mm_menu_0314114643_0.menuBorder=1;
    mm_menu_0314114643_0.menuLiteBgColor='#ffffff';
    mm_menu_0314114643_0.menuBorderBgColor='#2c2c69';
    mm_menu_0314114643_0.bgColor='#555555';
    window.mm_menu_0314120057_1 = new Menu("root",195,18,"Arial, Helvetica, sans-serif",12,"#2c2c69","#e1e1f2","#e1e1f2","#2c2c69", "left","middle",3,0,800,-5,7,true,true,true,0,true,true);
    mm_menu_0314120057_1.addMenuItem("A&nbsp;F&nbsp;Ai m&nbsp;Points","window.open('../MsgBoard/AimPoints0303.doc', '_blank');");
    mm_menu_0314120057_1.addMenuItem("Bldg&nbsp;&nbsp; Evacuation&nbsp;Procedures","window.open('../EvacuationProcedures.doc', '_blank');");
    mm_menu_0314120057_1.addMenuItem("Safe&nbsp;Room&n bsp;Procedures","window.open('../SafeRoomproc.htm', '_blank');");
    mm_menu_0314120057_1.hideOnMouseOut=true;
    mm_menu_0314120057_1.menuBorder=1;
    mm_menu_0314120057_1.menuLiteBgColor='#ffffff';
    mm_menu_0314120057_1.menuBorderBgColor='#2c2c69';
    mm_menu_0314120057_1.bgColor='#555555';
    window.mm_menu_0314115458_1 = new Menu("root",80,18,"Arial, Helvetica, sans-serif",12,"#2c2c69","#e1e1f2","#e1e1f2","#2c2c69", "left","middle",3,0,800,-5,7,true,true,true,0,true,true);
    mm_menu_0314115458_1.addMenuItem("View&nbsp;Events ","window.open(../Msgboard/msglist.asp', '_blank');");
    mm_menu_0314115458_1.addMenuItem("Add&nbsp;An&nbsp ;Event","window.open('../Msgboard/msgfill.asp', '_blank');");
    mm_menu_0314115458_1.hideOnMouseOut=true;
    mm_menu_0314115458_1.menuBorder=1;
    mm_menu_0314115458_1.menuLiteBgColor='#ffffff';
    mm_menu_0314115458_1.menuBorderBgColor='#2c2c69';
    mm_menu_0314115458_1.bgColor='#555555';
    window.mm_menu_0314120532_2 = new Menu("root",132,18,"Arial, Helvetica, sans-serif",12,"#2c2c69","#e1e1f2","#e1e1f2","#2c2c69", "left","middle",3,0,800,-5,7,true,true,true,0,true,true);
    mm_menu_0314120532_2.addMenuItem("BBQ&nbsp;Grill&n bsp;Safety","window.open('../BBQGrillSafety.htm', '_blank');");
    mm_menu_0314120532_2.addMenuItem("Safety&nbsp;Day& nbsp;2002","window.open('../safetydaypackage.doc', '_blank');");
    mm_menu_0314120532_2.addMenuItem("Fire&nbsp;Preven tion","window.open('../temp/fireprevention.ppt', '_blank');");
    mm_menu_0314120532_2.addMenuItem("Other&nbsp;Safet y&nbsp;Recalls","window.open('http://www.cpsc.gov/cpscpub/prerel/prerel.html', '_blank');");
    mm_menu_0314120532_2.hideOnMouseOut=true;
    mm_menu_0314120532_2.menuBorder=1;
    mm_menu_0314120532_2.menuLiteBgColor='#ffffff';
    mm_menu_0314120532_2.menuBorderBgColor='#2c2c69';
    mm_menu_0314120532_2.bgColor='#555555';

    mm_menu_0314120532_2.writeMenus();
    } // mmLoadMenus()

    //-->

    MM_reloadPage(true);
    //-->
    </script>


    mellocello webforumsuser@macromedia.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139