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 » » help with an expanding table in html Page [1]  
MOODY
All American
9700 Posts
user info
edit post

i have a table created and had this working before, but messed it up and can't get it back for some reason.

one element will have a plus_sign.gif that will expand onclick. i can't get it working though. here is the javascript:

Quote :
"<script type="text/javascript">
<!--
function toggle(){

var e = document.getElementById("expand");
var x = document.getElementById("expand2");
if(e.style.display=='none'){
e.style.display='block';
x.style.display= 'none';
}else{
e.style.display='none';
x.style.display='block';
}
}
-->
</script>"


my mind is so caught up on all the other stuff that i can't even think of how to call the script to do what i want it to do.

here is where the function should start: <img src="images/Plus.gif" onclick="toggle();"/>

i've completely forgotten what i need to do to call what should be inserted though.

essentially it's a show/hide image and i had it working and now it's all screwed from something i did...

any help?

7/22/2006 9:27:25 PM

MOODY
All American
9700 Posts
user info
edit post

currently...when i click the first plus, it opens a blank page with the bottom table (it's like a legend)

the full source is here: http://www4.ncsu.edu/~cnmoody2/manager1.html all the images and css are stripped, so just look at the source if you'd like to try to help.

thanks guys.

[Edited on July 22, 2006 at 10:01 PM. Reason : link]

7/22/2006 10:00:39 PM

MOODY
All American
9700 Posts
user info
edit post

nevermind...fixed it last night

7/24/2006 8:36:05 PM

ZiP
All American
18939 Posts
user info
edit post

free thread

I never pay more than $5 for a Kit Carson

-ZiP!-

7/26/2006 12:34:41 AM

 Message Boards » Tech Talk » help with an expanding table in html 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.38 - our disclaimer.