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.

How to code multiple links to similar a page?

Featured Replies

Hi folks,

I've got what I think is a relatively simple problem;

 

I have a ul with multiple li links that I want to point to a page with an iframe. The only difference between each is the destination iframe url. What is the best way to code this? I have a total of 16 li links and would prefer not to have a webpage for each.

 

 

http://www.bjmarine.net/newsite/index.html shows a set of 4 li in a ul on the left hand side under featured boats which currently each link to a different page with an iframe. This is an example of what I want to streamline.

 

I am familiar with Java and C#, but it's been a while and would really like some help.

 

Thanks for your input in advance!

Denis

That could be a job for a php script ... short description:

 

- you have a database + a table that stores this information;

- you have a php script that builds the ul > li > link (s) by reading info from the database and echo-ing to the html;

(links are like >> bjmarine.net/newsite/used/feature.php?id=1)

- you have the feature.php that generates the html (including the iframe) by querying the database again but this time for a single record;

 

If you don't want to use php+mysql you could use javascript+xml but that's another story :)

  • Author

Thanks for the input. I'm trying to do this as simply as possible because it's the only instance of an issue like it across the site and I have no php experience.

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.