We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Menus on the webpages
Topic Started: Jun 11 2011, 05:56 PM (464 Views)
mihandj
Member
[ * ]
Board Address: Private
Board Software: ZetaBoards
Description: I need a code that would allow to add a website menu to a webpage in the webpage maker (menu would appear on all pages) and all changes, made on the manu later, would take affect on all webpages as well, without the need of copying/pasting the menu to every webpage. This code could be useful for those, that have a lot of webpages on websites on their boards. Also, it would make working on the webpages easier, because it would be 1 simple effective edit on the menu when another webpage would be added, instead of editing every single webpage everytime a new link would need to be added to it.
Edited by mihandj, Jun 11 2011, 06:00 PM.
Offline Profile Goto Top
 
Quozzo
Member Avatar
By the blood of Sanguinius!
[ *  *  *  *  * ]
That's the purpose of PHP, with HTML the only option is to apply those changes with JS which could be turned off by anyone and so will not see any menus, but as you can't use PHP on ZB, try this:
Code: Above the Board
 
<script type='text/javascript'>
var menu = "<a href='#'>Linkify</a><a href='#'>Quick, look here</a>";
</script>

Code: Include this in the webpages you want the menu to appear
 
<script type='text/javascript'>
document.write(menu);
</script>

edit the menu HTML to whatever you want the menu to be.
Offline Profile Goto Top
 
mihandj
Member
[ * ]
Does this look good to you?

Posted Image

It does look good to me. I just need a second opinion.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
It looks like a menu to me, so I think you accomplished what you wanted. :)
Offline Profile Goto Top
 
mihandj
Member
[ * ]
Yes I did. This can be marked as completed. :D
Edited by mihandj, Jun 12 2011, 03:32 PM.
Offline Profile Goto Top
 
Roby-ZNR
Member Avatar
Efficacy
[ *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic