Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can I create a pull down menu that accesses one list?

Featured Replies

I have created a pull down menu and have it all arranged how I want it to display. The menu is on a lot of pages and rather than me having to update them all is there a way I can link the pull down menu to a centralised list of menu titles and their links?

 

Any ideas would be great

I have created a pull down menu and have it all arranged how I want it to display. The menu is on a lot of pages and rather than me having to update them all is there a way I can link the pull down menu to a centralised list of menu titles and their links?

 

Any ideas would be great

 

I dont get what oyur saying fully, Try looking up 'PHP INCLUDES' hope this helps

 

pete

  • Author

I kind of get what php includes does, however I need to link it remotely to my list that will be updated weekly.

 

Here is my code I use for the pulldown menu

 

"<table cellspacing="0" cellpadding="0" width="603" border="0">

<tbody>

<tr>

<td width="603" height="34"><img height="34" alt="" src="http://www.propstore.com/content/propstorecollection/dropdown/dropdownimage_01.jpg" width="603" /></td>

</tr>

</tbody>

</table>

<table cellspacing="0" cellpadding="0" width="603" border="0">

<tbody>

<tr>

<td width="233" height="38" rowspan="2"><img height="38" alt="" src="http://www.propstore.com/content/propstorecollection/dropdown/dropdownimage_02.jpg" width="233" /></td>

<td bgcolor="#23469a" height="32">

<div align="center">

<form style="MARGIN: 0px" name="jump">

<select name="menu">

<option value="http://www.propstore.com/aliens.htm" selected="selected">Aliens</option>

<option value="http://www.propstore.com/gladiator.htm">Gladiator</option>

<option value="http://www.propstore.com/redplanet.htm">Redplanet</option>

<option value="http://www.propstore.com/superman.htm">Superman</option>

</select><input onclick="location=document.jump.menu.options[document.jump.menu.selectedIndex].value

" type="button" value="GO" />

</form>

</div>

</td>

<td width="232" height="38" rowspan="2"><img height="38" alt="" src="http://www.propstore.com/content/propstorecollection/dropdown/dropdownimage_04.jpg" width="232" /></td>

</tr>

<tr>

<td height="6"><img height="6" alt="" src="http://www.propstore.com/content/propstorecollection/dropdown/dropdownimage_05.jpg" width="138" /></td>

</tr>

</tbody>

</table>"

 

The part that has the "<option vlaue" is the area i assume i would need the php includes i just don't know how to link it to the php i created.

 

Is this any clearer for you guys?

Save the entire snippet of code in a separate file (let's call it navmenu.html) - not just the option value part. Then, where that code was on your original HTML page, put this:

 

<?php include("navmenu.html"); ?>

 

As long as your web host supports PHP, you're good to go.

 

Whenever you want to update your nav menu list, just update the navmenu.html file and it will automatically change on all of your pages (assuming you've put the above code on all the relevant pages). :)

Save the entire snippet of code in a separate file (let's call it navmenu.html) - not just the option value part. Then, where that code was on your original HTML page, put this:

 

<?php include("navmenu.html"); ?>

 

As long as your web host supports PHP, you're good to go.

 

Whenever you want to update your nav menu list, just update the navmenu.html file and it will automatically change on all of your pages (assuming you've put the above code on all the relevant pages). :)

 

to save any hastle use <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> just in case, (inside all pages)

  • Author

hmm tried it with the hole code that runs the pull down menu and just get a blank section in the drop down

  • Author

damn server does not use php :(

 

What else can I do??

 

Thanks for all your input so far

asp includes - same thing, but with asp

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.