How can i make my menu follow when i Scroll down?

admin

Administrator
Staff member
I want to know how to make my menu follow scrollable. <br />
<br />
<br />
this is the html code for my menu. <br />
<br />
<br />
<br />
<br />
////////////////////////////////////<br />
// Editable properties START here //<br />
////////////////////////////////////<br />
<br />
<br />
{<br />
effect = "Fade(duration=0.7);Alpha(style=0,opacity=88);Shadow(color='#777777', Direction=135, Strength=5)"<br />
}<br />
else<br />
{<br />
effect = "Shadow(color='#777777', Direction=135, Strength=5)" // Stop IE5.5 bug when using more than one filter<br />
}<br />
<br />
<br />
timegap=500// The time delay for menus to remain visible<br />
followspeed=5// Follow Scrolling speed<br />
followrate=40// Follow Scrolling Rate<br />
suboffset_top=10;// Sub menu offset Top position <br />
suboffset_left=10;// Sub menu offset Left position<br />
<br />
style1=[// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.<br />
<br />
"navy",// Mouse Off Font Color<br />
"ccccff",// Mouse Off Background Color<br />
"ffebdc",// Mouse On Font Color<br />
"4b0082",// Mouse On Background Color<br />
"000000",// Menu Border Color <br />
12,// Font Size in pixels<br />
"normal",// Font Style (italic or normal)<br />
"bold",// Font Weight (bold or normal)<br />
"Verdana, Arial",// Font Name<br />
4,// Menu Item Padding<br />
"arrow.gif",// Sub Menu Image (Leave this blank if not needed)<br />
,// 3D Border & Separator bar<br />
"66ffff",// 3D High Color<br />
"000099",// 3D Low Color<br />
"Purple",// Current Page Item Font Color (leave this blank to disable)<br />
"pink",// Current Page Item Background Color (leave this blank to disable)<br />
"arrowdn.gif",// Top Bar image (Leave this blank to disable)<br />
"ffffff",// Menu Header Font Color (Leave blank if headers are not needed)<br />
"000099",// Menu Header Background Color (Leave blank if headers are not needed)<br />
]<br />
<br />
<br />
<br />
addmenu(menu=[// This is the array that contains your menu properties and details<br />
"mainmenu",// Menu Name - This is needed in order for the menu to be called<br />
20,// Menu Top - The Top position of the menu in pixels<br />
200,// Menu Left - The Left position of the menu in pixels<br />
,// Menu Width - Menus width in pixels<br />
1,// Menu Border Width <br />
,// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"<br />
style1,// Properties Array - this is set higher up, as above<br />
1,// Always Visible - allows the menu item to be visible at all time (1=on/0=off)<br />
"left",// Alignment - sets the menu elements text alignment, values valid here are: left, right or center<br />
effect,// Filter - Text variable for setting transitional effects on menu activation - see above for more info<br />
,// Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)<br />
1, // Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)<br />
,// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)<br />
,// Position of TOP sub image left:center:right<br />
,// Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)<br />
,// Right To Left - Used in Hebrew for example. (1=on/0=off)<br />
,// Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)<br />
,// ID of the div you want to hide on MouseOver (useful for hiding form elements)<br />
,// Reserved for future use<br />
,// Reserved for future use<br />
,// Reserved for future use<br />
,"Home","http://www.swap.rules.it",,"SWAP Skaters",1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"<br />
,"SWAP&nbsp;Skaterz&nbsp;&nbsp;","show-menu=swap",,"",1<br />
,"Stuff&nbsp;&nbsp;","show-menu=stuff",,"",1<br />
,"Other&nbsp;&nbsp;","show-menu=other",,"",1<br />
])<br />
<br />
addmenu(menu=["swap",<br />
,,120,1,"",style1,,"left",effect,,,,,,,,,,,,<br />
,"Friends","show-menu=friends",,,1<br />
,"Links","show-menu=links",,,1<br />
])<br />
<br />
<br />
addmenu(menu=["friends",<br />
,,75,1,"",style1,,"left",effect,,,,,,,,,,,,<br />
,"Show All","http://www.swap-friends.owns.it",,,0<br />
])<br />
<br />
<br />
addmenu(menu=["links",<br />
,,110,1,"",style1,,"left",effect,,,,,,,,,,,,<br />
,"Changed4Ever","http://www.changed4ever.com target=yourframe",,,1<br />
,"SSP","http://www.SSP.rocks.it target=yourframe",,,2<br />
,"Show All","http://www.swap-Links.owns.it",,,0<br />
])<br />
<br />
<br />
<br />
addmenu(menu=["stuff",,,120,1,,style1,0,"left",effect,0,,,,,,,,,,,<br />
,"Dynamic Drive DHTML","http://www.dynamicdrive.com/ target=yourframe",,,1<br />
,"The Free Site","http://www.thefreesite.com target=yourframe",,,0<br />
])<br />
<br />
<br />
addmenu(menu=["other",,,140,1,,style1,0,"left","randomdissolve(duration=0.5);Shadow(color='#999999', Direction=135, Strength=5)",0,,,,,,,,,,,<br />
,"Contact SWAP","swap.rules.it",,"Contact SWAP",1<br />
])<br />
<br />
<br />
dumpmenus() <br />
<br />
<br />
<br />
<br />
Please if someone can, please reply with my html code scrollable. Thanx:)<!--content-->not sure about your code, but gohere (<!-- m --><a class="postlink" href="http://www.google.com.au/search?q=floating+menus&ie=UTF-8&oe=UTF-8&hl=en&meta=">http://www.google.com.au/search?q=float ... l=en&meta=</a><!-- m -->) and you will find links to a lot of menus that work the way your looking for :P<!--content-->you can use<br />
<div style="position:fixed"></div><br />
but IE has yet to catch up to it. i'd use it anyway, because IE7 is just around the corner (if the little birds are to be believed), and anyway that's the easiest way to do it that is actually SUPPOSED to be supported by browsers. i expect all future browsers to support it at some point soon enough.<!--content-->you could do this to your menu, as you scroll up and down it follows...<br />
<br />
Floating... (<!-- m --><a class="postlink" href="http://http://www.dynamicdrive.com/dynamicindex1/staticmenu3.htm">http://http://www.dynamicdrive.com/dyna ... cmenu3.htm</a><!-- m -->) <br />
<br />
=:O<!--content-->http://members.aol.com/grassblad/dHTML/scrollDiv.html<!--content-->
 
Back
Top