PDA

View Full Version : Dynamic-FX Slide-In Menu (v 6.5) All won't float



Robin Church
01-25-2005, 05:40 PM
I really like the DFX slide-in menu, but can't seem to get it to work as a static menu. Whenever I set menuIsStatic="yes"; in ssmitems.js, and I scroll down in the page (or initially point to a spot not at the top of page) the menu bounces up & down, trying to move to the top of page. I tried using different values for YOffset and staticYOffset but it didn't help.

I'm using ColdFusion, but it's a simple site (ttp://www.manheimtownship.org). I currently have menuIsStatic set to "no" until I fix the problem.

I suspect it's a problem with frames. I'm not sure whether to add the (<HEAD>) code in the .cfm files or the .html files that are included in the .cfm files.

My index.cfm file defines the title and main frames:

<frameset border="false" rows="85,*" framespacing=0 frameborder="no">

<frame name="title_frame" src="title_frame.cfm" marginwidth=0 marginheight=0 scrolling="no" frameborder=0 noresize>

<frame name="main" src="main.cfm" marginwidth=0 marginheight=0 scrolling="auto" frameborder=0 >

</frameset>

I currently have the <Head> code in the .cfm files, and specify the "main" as the target frame.

Here's my ssmitems.js:

<!--

/*
Configure menu styles below
NOTE: To edit the link colors, go to the STYLE tags and edit the ssm2Items colors
*/
YOffset=20; // no quotes!!
XOffset=0;
staticYOffset=20; // no quotes!!
slideSpeed=20 // no quotes!!
waitTime=100; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
menuBGColor="black";
menuIsStatic="no"; //this sets whether menu should stay static on the screen
menuWidth=150; // Must be a multiple of 10! no quotes!!
menuCols=2;
hdrFontFamily="verdana";
hdrFontSize="1";
hdrFontColor="white";
hdrBGColor="#170088";
hdrAlign="left";
hdrVAlign="center";
hdrHeight="15";
linkFontFamily="Verdana";
linkFontSize="1";
linkBGColor="white";
linkOverBGColor="#FFFF99";
linkTarget="_top";
linkAlign="Left";
barBGColor="green";
barFontFamily="Verdana";
barFontSize="1";
barFontColor="white";
barVAlign="center";
barWidth=7; // no quotes!!
barText="MENU"; // <IMG> tag supported. Put exact html for an image to show.

///////////////////////////

// ssmItems[...]=[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header
// ssmItems[0]=["General"] //create header
// ssmItems[0]=["About Us", "about_us.cfm", "_new"] //create in new window
ssmItems[0]=["About Us", "about_us.cfm", "main"]
ssmItems[1]=["Accessory Dwellings", "reacdwell.cfm", "main"]
ssmItems[2]=["Admin &amp; Finance", "admin_fin.cfm", "main"]
ssmItems[3]=["Calendar", "calendar.cfm", "main"]
ssmItems[4]=["Code Compliance", "code_comp.cfm", "main"]
ssmItems[5]=["Contact", "contact.cfm", "main", 1, "no"]// 2-col row
ssmItems[6]=["Directory", "contact_tele.cfm", "main",1]
ssmItems[7]=["Fire &amp; Emergency", "fire_emerg.cfm", "main"]
ssmItems[8]=["Golf", "golf.cfm", "main"]
ssmItems[9]=["History", "history.cfm", "main"]
ssmItems[10]=["Home Occupation", "rehomeocc.cfm", "main"]
ssmItems[11]=["Home Page", "main.cfm", ""]
ssmItems[12]=["Leaf &amp; Snow Removal", "leaf_snow.cfm", "main"]
ssmItems[13]=["Mini Golf", "minigolf.cfm", "main"]
ssmItems[14]=["Museums", "museums.cfm", "main"]
ssmItems[15]=["Parks &amp; Recreation", "Parks_rec.cfm", "main"]
ssmItems[16]=["Parks", "parks.cfm", "main"]
ssmItems[17]=["Park Rules", "park_rules.cfm", "main"]
ssmItems[18]=["Planning &amp; Zoning", "pzoning.cfm", "main"]
ssmItems[19]=["Police", "Police.cfm", "main"]
ssmItems[20]=["Public Works", "pworks.cfm", "main"]
ssmItems[21]=["Recreation", "rec.cfm", "main"]
ssmItems[22]=["Recycling", "pworks.cfm#recycle", "main"]
ssmItems[23]=["Services", "tservices.cfm", "main"]
ssmItems[24]=["Smart Strides", "wnew.cfm#smartstride", "main"]
ssmItems[25]=["Taxes", "taxes.cfm", "main"]
ssmItems[26]=["Virus Info", "antivirus.cfm", "main"]
ssmItems[27]=["Voter Info", "voter_info.cfm", "main"]
ssmItems[28]=["What's New", "wnew.cfm", "main"]
buildMenu();

//-->

Any help or insight is GREATLY appreciated!!

Robin Church
01-25-2005, 05:59 PM
I just discovered a winning combination of YOffset=1; and staticYOffset=40;

For some reason this works now, but I haven't a clue why.