Reply
Editing Fireworks .js to change top image
Old 03-31-2005, 03:13 PM Editing Fireworks .js to change top image
Junior Talker

Posts: 1
I have a .js file created by Fire works, and I just need to replace the top & bottom images in a pop-up menu. The file names are:

mmmenu1_150x15_top.gif
mmmenu1_150x15_bottom.gif

The .js file is large; it is the newest version of the .js created by Fireworks MX 2004 designed for popup menus.

Here is the .html:

<html>
<head>
<title>industry-image-test.gif</title>
<meta http-equiv="Content-Type" content="text/html;">
<!--Fireworks MX 2004 Dreamweaver MX 2004 target. Created Thu Mar 31 13:22:01 GMT-0500 (Eastern Standard Time) 2005-->
<script language="JavaScript">
<!--
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 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 mmLoadMenus() {
if (window.mm_menu_0401132112_0) return;
window.mm_menu_0401132112_0 = new Menu("root",150,15,"Verdana, Arial, Helvetica, sans-serif",9,"#000000","#153854","#9bd3e6","#cce9f2"," left","middle",3,0,1000,-5,7,true,true,true,5,false,true);
mm_menu_0401132112_0.addMenuItem("");
mm_menu_0401132112_0.addMenuItem("Retail","window. open('industry-retail.html', '_self');");
mm_menu_0401132112_0.addMenuItem("Financial&nbsp;S ervices","window.open('industry-financial.html', '_self');");
mm_menu_0401132112_0.addMenuItem("Healthcare","win dow.open('industry-healthcare.html', '_self');");
mm_menu_0401132112_0.addMenuItem("Real&nbsp;Estate ","window.open('industry-realestate.html', '_self');");
mm_menu_0401132112_0.addMenuItem("Law&nbsp;Firms", "window.open('industry-lawfirms.html', '_self');");
mm_menu_0401132112_0.addMenuItem("Call&nbsp;Center s","window.open('industry-callcenters.html', '_self');");
mm_menu_0401132112_0.addMenuItem("");
mm_menu_0401132112_0.bgImageUp="mmmenu1_150x15_up. gif";
mm_menu_0401132112_0.bgImageOver="mmmenu1_150x15_o ver.gif";
mm_menu_0401132112_0.hideOnMouseOut=true;
mm_menu_0401132112_0.bgColor='#ffffff';

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

//-->
</script>
<script language="JavaScript1.2" src="mm_menu.js"></script>
</head>
<body bgcolor="#ffffff" onLoad="MM_preloadImages('../My Documents/VerticalCorpWeb/images/nav-industry-over-new.gif');">
<script language="JavaScript1.2">mmLoadMenus();</script>
<a href="industry-home.html" target="_self" onMouseOut="MM_swapImgRestore();MM_startTimeout(); " onMouseOver="MM_showMenu(window.mm_menu_0401132112 _0,5,25,null,'industry');MM_swapImage('industry',' ','../My Documents/VerticalCorpWeb/images/nav-industry-over-new.gif',1);"><img name="industry" src="industry.gif" width="157" height="25" border="0" alt="IP-PBX Industry Solutions"></a></body>
</html>
jpell185 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 04-01-2005, 07:21 PM
Rufo's Avatar
Extreme Talker

Posts: 173
What exactly is the problem?

You may want to edit your post to wrap your code in [ HTML ] tags.
__________________
mp3blog.us
Rufo is offline
Reply With Quote
View Public Profile Visit Rufo's homepage!
 
Old 04-02-2005, 12:01 PM
hostyorkshire's Avatar
Super Talker

Posts: 129
Location: Barnsley, South Yorks
Quote:
Originally Posted by Rufo
What exactly is the problem?
Probably using fireworks to make code.

Whatever happened to notepad?

Andrew
www.hostyorkshire.com
hostyorkshire is offline
Reply With Quote
View Public Profile Visit hostyorkshire's homepage!
 
Reply     « Reply to Editing Fireworks .js to change top image
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.19787 seconds with 13 queries