Topeka
Junior Member
Posts: 94
Topeka said 0 great things
|
Post by Topeka on Dec 13, 2009 19:16:36 GMT -8
I saw the scrolling menu made by Cyborg. which is what you placed your navtree, threadlog in. (used to?) uh.. this v. wormocodes.com/index.cgi?board=codedb&action=display&thread=135And i was wondering if you can change the position of the floating box? Like make it go to right side of the window. and/or make the y position be in the middle of the page? ( i know how to change the amount of pixels it is from the top. to make it look like its in the middle, but if you shrink or enlarge your entire window it will still be that many pixels away from the top. so is there a way to make it proportionally to the middle of the page? or pixels away from the bottom?) Im a noob at scripting now. -.- I've changed and figured everything i could think of that would make it work, by just adding and subtracting thinks to the script. And all failed lol. So, If its just something you need to change in the code to change the position, (y and/or x position). you could just tell me what i need to change (that will change the position on the forum).? It might make it more understanding to me what i've done wrong. But you dont have to. And if its something that you have to completely re-write. welp. Explaining it would probably be alot of work. so, dont even worry about that if you need to re-write. im not someone to ask someone else to go out of there way for things. So, its up to you if you want to or not. ~Topeka o, just a fyi. When you first go on the site w/ this floating box. Before scrolling at all, or moving down a page. The text you have in the box will be shown about like 100px down the page. But the moment you scroll. the text will jump up to about 50px and stay there when scrolling. and it will always happen at each page. um. example of what i mean. Look at the floating "Blooooooooooooop example!" text on the left side of the page on my site topekatrail.proboards.com/index.cgiIf you dont scroll right when you get on, You notice its down the page a bit. Then when you scroll. it will jump about half way up to the top of the page and then will always stay there till you navigate to another page. Yeah, i know it gets in the way of the navtree and such, but thats why ima asking for positions. Idk if theres a way to fix that and what not. but, its just an observation of it. Thanks
|
|
|
Post by Wormopolis on Dec 14, 2009 2:37:53 GMT -8
find this line:
window.onscroll = changeMenuPos;
right after it put:
changeMenuPos();
as for location, if you want the menu box to show up on the right side, find the DIV element the menu will end up in and add
align="right" inside of its tags.
vertical spacing is a bit more complicated, but can be done. are you wanting a certain percentage of the screen height?
|
|
Topeka
Junior Member
Posts: 94
Topeka said 0 great things
|
Post by Topeka on Dec 14, 2009 16:07:46 GMT -8
Adding that only changes the right align inside the floating box. I would like the floating box itself to be right side of entire window.
yes, Making it like 50% of screen so it is always shown in the middle of the page. Or even making it be at the bottom of the forum. instead of 20px down from the top. you make it 20px up from the bottom.
nice, That fixed the sudden jump when first scrolling.
|
|
|
Post by Wormopolis on Dec 15, 2009 5:22:31 GMT -8
put the align="right" into:
<td id="SideTab" valign="top">
and change the width="1000" to 100% or 90%
also look at the code thread agin. I made a change that will allow you to vertically adjust where the menu posts.
|
|
Topeka
Junior Member
Posts: 94
Topeka said 0 great things
|
Post by Topeka on Dec 15, 2009 14:10:09 GMT -8
from your edited code, it no longer floats(it just shows in the header), and the hidden_content in the <span id="hidden_content"> </span> is no longer showing for anyone not just guests.
might be confilicting w/ another code. but im not seeing what code it is atm.
|
|
|
Post by Wormopolis on Dec 15, 2009 19:01:56 GMT -8
I lost a ) somehow...
change this:
posperc=(parseInt(startPos)/100.00*document.body.clientHeight;
to this:
posperc=(parseInt(startPos)/100.00)*document.body.clientHeight;
|
|
Topeka
Junior Member
Posts: 94
Topeka said 0 great things
|
Post by Topeka on Dec 16, 2009 11:57:51 GMT -8
yup. that fixed it. its working great. Thanks a bunch. didnt really learn much seeing is how you had to re-write the code a bit haha. but i did learn a little, so thanks.
|
|
|
Post by Wormopolis on Dec 16, 2009 12:02:31 GMT -8
well in order to do the height thing I kinda had to do a major change. Cyborg basically setup a static 50 pixels in there.
if you are looking to learn to write a code, just let me know what you are stuck on.
|
|
Topeka
Junior Member
Posts: 94
Topeka said 0 great things
|
Post by Topeka on Dec 17, 2009 17:51:35 GMT -8
eh. im just learning basic crap. trying to learn and write simple scripts, and seeing what to do to edit ones already made to make them work to my standards. So basicly ill be asking you why a simple if; else table wont work or why a simple function script wont work when i press the button to run the function. just easy things, that a beginner would be learning. >.< lol. thanks though, and thanks for the help above.
|
|
|
Post by Wormopolis on Dec 17, 2009 18:02:21 GMT -8
no worries. I do my best to help.
|
|