Author |
Topic |
|
Therion93
Junior Member
USA
263 Posts |
Posted - 04 March 2001 : 20:21:37
|
Anyone familiar with the popout sidebar menu please read.
I'm working on a site that I want to include the sidebar menu in. I want to implement it basically the same way that has been done in MODS for snitz.
I have a file named top.asp which is used as an include file. I need to know what code from inc_top.asp I need to include in my top.asp to use the popout_script.asp and popout_menu.asp pages on my site. I know I will need to change color codes etc, but I've been trying for 3 hours to get this to work the way it does with snitz (as include files) and I just can't seem to get it.
Any help is appreciated.
Thanks!
Therion93 Because Legends Never Die! - Kiss-Forever.Net - HuwR's SR4 Release Mysteries & Magic - Mysteria Magicka - Richard Kinser's SR4 Release |
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 04 March 2001 : 20:34:31
|
you will need the style definitions.
the include poput_script should be between the < head > and < /head > tags, and popout_menu should be in the main body of the page
|
|
|
Therion93
Junior Member
USA
263 Posts |
Posted - 04 March 2001 : 23:20:46
|
Grrrr, I'm getting nowhere fast.
Therion93 Because Legends Never Die! - Kiss-Forever.Net - HuwR's SR4 Release Mysteries & Magic - Mysteria Magicka - Richard Kinser's SR4 Release |
|
|
Therion93
Junior Member
USA
263 Posts |
Posted - 04 March 2001 : 23:41:53
|
Getting object expected error on line 88 which appears to be:
if (IE) {winY = document.body.scrollTop;var NM=document.all('ssm').style}
Therion93 Because Legends Never Die! - Kiss-Forever.Net - HuwR's SR4 Release Mysteries & Magic - Mysteria Magicka - Richard Kinser's SR4 Release |
|
|
Therion93
Junior Member
USA
263 Posts |
Posted - 04 March 2001 : 23:57:53
|
Getting closer...I think.
I put all the style definitions in the .css file for my site. The menu shows up, completely, not hidden to the side. Whenever I touch the menu with the mouse I get object errors saying ssm is not defined.
Therion93 Because Legends Never Die! - Kiss-Forever.Net - HuwR's SR4 Release Mysteries & Magic - Mysteria Magicka - Richard Kinser's SR4 Release |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
|
Therion93
Junior Member
USA
263 Posts |
Posted - 05 March 2001 : 00:17:34
|
Richard,
That's where I started. I want to use it as an include like on the MODed forums. Hmmmm perhaps I'm going about this wrong...time for more experimentation.
Therion93 Because Legends Never Die! - Kiss-Forever.Net - HuwR's SR4 Release Mysteries & Magic - Mysteria Magicka - Richard Kinser's SR4 Release |
|
|
Therion93
Junior Member
USA
263 Posts |
Posted - 05 March 2001 : 00:54:04
|
WAAAAHOO! Ok now I have the menu working, I just don't know how to make it appear in the center (vertically). It doesn't matter where I put the include line, the menu starts clear up at the top.
What I did was this:
I went to the script site Richard mentioned and had it generate the code for me just as if I was going to use it as is. (It generates .js files).
I put the style information in my site.css file. Surrounded the resulting two scripts with <script language="JavaScript"> & </script> tags, and renamed them to popout_menu.asp and popout_script.asp
Now as I said, everything is working except WHERE I want the menu to show up.
Any ideas?
By the way, click the Mysteria Magicka link in my signature to see what I'm talking about.
Therion93 Because Legends Never Die! - Kiss-Forever.Net - HuwR's SR4 Release Mysteries & Magic - Mysteria Magicka - Richard Kinser's SR4 Release
Edited by - Therion93 on 05 March 2001 01:05:35 |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 05 March 2001 : 01:19:53
|
these 2 lines:
YOffset=190; // no quotes!! staticYOffset=190; // no quotes!!
control how far down the page the menu will be. (mine are 190, yours will probably be different, 20 if I remember correctly.) |
|
|
Therion93
Junior Member
USA
263 Posts |
Posted - 05 March 2001 : 01:40:06
|
quote:
these 2 lines:
YOffset=190; // no quotes!! staticYOffset=190; // no quotes!!
control how far down the page the menu will be. (mine are 190, yours will probably be different, 20 if I remember correctly.)
Where would I be without you and Huw?
This also means that now I can put the include line in my mm_top.asp file and it will always show where it's supposed to (just like in the MODed forums)!
THANK YOU SIR!
Therion93 Because Legends Never Die! - Kiss-Forever.Net - HuwR's SR4 Release Mysteries & Magic - Mysteria Magicka - Richard Kinser's SR4 Release
Edited by - Therion93 on 05 March 2001 01:40:45 |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 05 March 2001 : 01:59:28
|
you're welcome. |
|
|
Therion93
Junior Member
USA
263 Posts |
Posted - 05 March 2001 : 02:46:07
|
Ok, a couple more items and I'll be one very happy camper.
1) Evidently, the css for my site is overriding the css defined foo the script. Is it possible to reduce the link font size in the script without affecting the link font size in my regular pages? I tried using the size parameter in the script but it doesn't work.
2)As you know, on this particular site I am using your release of the forums. I would like to include my menu bar there too. I am guess that all I have to do is:
a) copy the css (for the script) in between the <head> and </head> in inc_top.asp
b) add the include lines for popout_menu.asp and popout_script.asp to inc_top.asp to the head section.
Am I on the right track?
Update I took a chance that I might actually be starting to understand this stuff, and followed my own instructions for #2. Guess what? It worked! I'm starting to scare myself
Still perplexed about #1 though. Same thing happens when I added it to the forums. Links & font stuff changed to that of the forums instead of whats defined in the cs for the script. wierd.
Therion93 Because Legends Never Die! - Kiss-Forever.Net - HuwR's SR4 Release Mysteries & Magic - Mysteria Magicka - Richard Kinser's SR4 Release
Edited by - Therion93 on 05 March 2001 02:59:30
Edited by - Therion93 on 05 March 2001 03:19:53 |
|
|
MaXimuS
Starting Member
5 Posts |
Posted - 06 March 2001 : 17:33:30
|
Well it's good to see that people actually use my scripts :) I would just like to tell you Therion that you are using an old version of my script. I have just completed a new version that works in NS6 and also has some misc fixes. It also runs off of .js files so you can include them in any page and only have to edit the one .js file to edit all the pages. With .js files you don't need to use includes so that may fix some of your problems.
-Peace out.
|
|
|
Therion93
Junior Member
USA
263 Posts |
Posted - 06 March 2001 : 23:31:32
|
Cool! Thanks for the update Maximus!
Therion93 Because Legends Never Die! - Kiss-Forever.Net - HuwR's SR4 Release Mysteries & Magic - Mysteria Magicka - Richard Kinser's SR4 Release |
|
|
Therion93
Junior Member
USA
263 Posts |
Posted - 07 March 2001 : 02:26:19
|
It would be cool if you could nest menus 1 level like in your static menu I.
Therion93 Because Legends Never Die! - Kiss-Forever.Net - HuwR's SR4 Release Mysteries & Magic - Mysteria Magicka - Richard Kinser's SR4 Release |
|
|
|
Topic |
|