Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-03-2010, 05:48 PM   PM User | #1
river226
New to the CF scene

 
Join Date: Aug 2010
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
river226 is an unknown quantity at this point
seperate global file for dropdown menu

I have been looking for a way to have one file for my dropdown menu in the same way that i can put all my styles and other stuff in a separate js and css file. obviously for easy maintenance and changing, does anyone know of a way i can do this?
river226 is offline   Reply With Quote
Old 10-03-2010, 06:06 PM   PM User | #2
DrDOS
Senior Coder

 
Join Date: Sep 2010
Posts: 1,146
Thanks: 10
Thanked 148 Times in 148 Posts
DrDOS is infamous around these parts
Yes, there certainly are ways to do it. Some are much easier and more stable than others. Do you have any server side languages available, such as PHP or SSI? They will work much better than a pure javascript solution. But if you do need to use javascript you can use innerHTML to put your menu where you want it on the page. Also you can just have a menu made up as a file or you can generate from an array. The array is easier to edit and change. But it gets more complicated for higher lever menus.
DrDOS is offline   Reply With Quote
Old 10-03-2010, 06:08 PM   PM User | #3
river226
New to the CF scene

 
Join Date: Aug 2010
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
river226 is an unknown quantity at this point
could i get some links to guides for this?
river226 is offline   Reply With Quote
Old 10-03-2010, 06:35 PM   PM User | #4
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,812
Thanks: 9
Thanked 681 Times in 675 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
Here's a good tutorial for php includes.
SB65 is offline   Reply With Quote
Users who have thanked SB65 for this post:
river226 (10-03-2010)
Old 10-03-2010, 06:38 PM   PM User | #5
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,678
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Quote:
Do you have any server side languages available, such as PHP or SSI?
Quote:
could i get some links to guides for this?
It'd be easier if you say the answer to the above one.
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 10-03-2010, 06:41 PM   PM User | #6
river226
New to the CF scene

 
Join Date: Aug 2010
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
river226 is an unknown quantity at this point
Sorry, i asked the non specific question cause all worked for me
river226 is offline   Reply With Quote
Reply

Bookmarks

Tags
css, dropdown, html, menu, separate

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:09 AM.


Advertisement
Log in to turn off these ads.