User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » how can i make a menu slide out (JS) Page [1]  
BigMan157
no u
103354 Posts
user info
edit post

i'm trying to get a menu to slide out instead of just pop out

i've tried the following and it doesn't really work at all


function toggle(targetId) {
target = document.getElementById(targetId);
if (target.style.display == "none"){
target.style.display="";
for(i=0;i<=200;i++) {
setTimeout("slide(i, target)",100)
}
} else {
for(i=200;i>=0;i--) {
setTimeout("slide(i, target)",100)
}
target.style.display="none";
}
}

function slide(incr, target) {
target.style.height=incr+'px';
}


i've also tried just making the for loop larger (i>=20000) and then incrementing when i is divisible by 100 and that worked even worse

any thoughts on how to accomplish this?

7/15/2006 12:30:39 AM

BigMan157
no u
103354 Posts
user info
edit post

7/15/2006 12:53:46 PM

dweedle
All American
77386 Posts
user info
edit post

that shits just clicks and whistles

7/15/2006 1:04:38 PM

BigMan157
no u
103354 Posts
user info
edit post

STAY OUT OF TECH TALK DWEEDLE

7/15/2006 7:08:16 PM

quagmire02
All American
44225 Posts
user info
edit post

http://www.dynamicdrive.com/dynamicindex1/index.html

7/15/2006 7:36:47 PM

BigMan157
no u
103354 Posts
user info
edit post

sweet, what i was looking for is in there

now to butcher it horribly to make it work the way i want it to

7/15/2006 9:18:39 PM

quagmire02
All American
44225 Posts
user info
edit post

heh...been there, do that on a regular basis

7/15/2006 10:51:12 PM

HaLo
All American
14263 Posts
user info
edit post

^^isn't that exactly what JS is in the first place

7/15/2006 11:07:10 PM

 Message Boards » Tech Talk » how can i make a menu slide out (JS) Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.