Topic awaiting preservation: I'm horrible at DHTML, and I need some help :) |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: Yes |
posted 02-06-2002 20:42
ok here goes, I've made a function that can toggle an item's display property on and off. Now I want it when I click on something it switches everything off and then makes visible only one of them. It worked untill I hacked some code to make everything not display before it sets the one it wants to display. I don't think I'm explaining this too well, hopefully my code will help: code: function toggle( targetId ){
|
Paranoid (IV) Inmate From: Yes |
posted 02-06-2002 20:51
never mind never mind, sometimes it just takes my posting a question like this to figure out where I screwed up. I forgot the ' ' around the objects. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 02-06-2002 21:38
I know you've figured out the problem, but here's a tip anyway... |
Paranoid (IV) Inmate From: Yes |
posted 02-06-2002 22:42
Thanks for the tip slime. I have a feeling that when I get this site done and post it for review it's gonna need a LOT of simplifying |
Paranoid (IV) Inmate From: Yes |
posted 02-06-2002 23:23
Ok another problem code: <table id="coreyDos" style="display: none; etc. etc. etc.">
|
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 02-07-2002 01:29
Post some code or a URL |
Paranoid (IV) Inmate From: Yes |
posted 02-07-2002 05:51
http://wind.prohosting.com/thedorm/temp3.html |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 02-07-2002 16:07
404's... I'll try later... |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 02-07-2002 19:27
It's working fine for me (IE6). |
Paranoid (IV) Inmate From: Yes |
posted 02-07-2002 23:01
Yeah, I musta fixed it just before you tried. It was a problem with not using block. |