Author |
Topic |
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 28 October 2001 : 12:53:34
|
Perhaps semi-off topic, but for me it's important... I have a DHTML menu on my site and because of an update on the software that's used to create those menus I now have to insert a copyright statement on all pages. My site doesn't use a database nor ASP, so I'm wondering if it would be wise to use SSI (and make them ASP pages) for this or just to add the code in the HTML everywhere.
Any tips?
Roland
|
|
heptite
Average Member
USA
547 Posts |
Posted - 28 October 2001 : 14:25:00
|
Includes are the way to go, either with .shtm or .shtml or using .asp. Much the same way the forum as a top and bottom includes, you do the same thing on your site.
Sue
Additional support files - http://www.snitz.info
|
|
|
Doug G
Support Moderator
USA
6493 Posts |
Posted - 28 October 2001 : 15:45:15
|
Most DHTML menus use a separate .js file, if your's does can't you just add the necessary code there?
My real question is what kind of menuing system author would dump this on his or her users? If the requirement wasn't there in the past you shouldn't have to update any existing pages, and it seems to me the author should be doing all the work, not you.
====== Doug G ====== |
|
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 29 October 2001 : 03:43:08
|
quote:
Most DHTML menus use a separate .js file, if your's does can't you just add the necessary code there?
My real question is what kind of menuing system author would dump this on his or her users? If the requirement wasn't there in the past you shouldn't have to update any existing pages, and it seems to me the author should be doing all the work, not you.
====== Doug G ======
Good point. The thing is as long as the users use menus created with a version before 4.1 we don't have to include the copyright info on our pages, but we have to if we want to stay up-to-date and have newer and better menus.
If I were to insert the copyright info in the .JS file it wouldn't show in the source code if someone would look at it. I think that's why he wants the users to put it in their pages. That's a lot of work and I'm not going to do it. It's easy to do with the forums (just add it in inc_footer.asp) but my site has no way of easy inserting it in every page.
Guess I'll have to go complain on his forums (which @#%!@ (_|_) btw) about all the time this'll take me.
Thanks for your replies & help.
Roland
|
|
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 29 October 2001 : 14:13:20
|
Question:
I changed my .HTM file to .ASP and replaced the current JavaScript links by <!#INCLUDE FILE="inc_top.asp" --> where inc_top.asp is a new file and it's located in a different folder than the forums. In inc_top.asp I placed this code: <script language="JavaScript" src="/menu/popblank.js" type="text/javascript"></script> <script language="JavaScript" src="/menu/forummenu.js" type="text/javascript"></script> <Layer Name="DboX" style="position:absolute" visibility="hide"></Layer> <!-- Pop-Up DHTML menu is © by Anoxy Software - http://popup.jscentral.com [Do not remove this copyright notice] -->
This code works when I insert it directly into the pages but not when I include it. What did I do wrong? I don't know much about ASP so any help would be appreciated
Thanks, Roland
http://www.frutzle.com |
|
|
Cyber Paladin
New Member
55 Posts |
Posted - 29 October 2001 : 14:20:41
|
If you copied that include statement directly then the syntax is a little off:
You have: <!#INCLUDE FILE="inc_top.asp" --> Should be <!--#include file="inc_top.asp"-->
That's probably causing it not to show up.
|
|
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 29 October 2001 : 14:30:01
|
Sorry, I made a typo there... I have <!--#INCLUDE FILE="inc_top.asp"--> in my HTML.
I can't figure out what I'm doing wrong here. I've tried renaming inc_top.asp to inc_top.htm but that didn't help either.
Thanks though
Roland
http://www.frutzle.com |
|
|
Doug G
Support Moderator
USA
6493 Posts |
Posted - 29 October 2001 : 16:49:56
|
You said the include file is in a different folder, but you don't specify the path to that folder in your include statement.
If you use #include file="path" the path will be an absolute disk path or a relative path, relative to the including page.
You can use <!--#include virtual="/folder/file"--> to include files relative to the root of your web rather than a physical disk path.
====== Doug G ====== |
|
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 30 October 2001 : 03:40:28
|
Hi Doug,
The problem isn't in the include code... I just replaced the code in inc_top.asp by some regular text and that shows on the page. However, the menu codes don't seem to be accepted. I've tried getting help at the support forum of the software guy but no luck so far...
Well I have to go offline and do some work now.
Thank you all for your help. I appreciate it. |
|
|
|
Topic |
|