Debt Help | Loans | Personal Loans | Loans | Loans
HTML/JavaScript help [Archive] - ZGeek

PDA

View Full Version : HTML/JavaScript help


deevil
04-10-2003, 05:58 AM
Hello everybody,

I have a question for all of you familiar with HTML/Javascript, that sort of thing. I am a pisspoor web designer who gets all of my "ideas" etc. by stealing from other websites, but alas, I can't find a site to rip off this from.

I would like to have content on a page "scroll open" to reveal more content (on that same page, under that heading) when the user clicks on the topic. I'm sure I've seen this done before, and I just can't find any examples of it anywhere. Could some of you lend me your expertise?

for example you'd have

blah1

blah2

blah3

-----------------------------------------

user would click blah1 and get

blah1
fkljasdlfjsdlfjlj dfljadkl;fjlasdkjfldk afjldjsf' l;jflasdj ff'adsjldfjldasj f
jlfsajdlfj asdlfjklasdfj klasdj fljsdakfljsdfkl;jka dlkjdf l
asdjlfjal;sd fjlasjfldjfl;dfj lasdfjk
djf
alsdfjlajsldfjlasdjflajsd fljasdf
asdjfl;
asdfjasd

blah2

blah3

----------------------------------------

Thanks in advance!

Asmodeus
04-10-2003, 06:31 AM
http://www.dynamicdrive.com/dynamicindex1/navigate1.htm

http://www.dynamicdrive.com/ is a resource for a lot of that kind of stuff. always cool things to pick through there.

deevil
04-10-2003, 06:40 AM
Great link, thank you!:banana:

Rod
04-10-2003, 07:01 AM
If I read you requirements correctly,
I think you just need to use the anchor <a> tag.

deevil
04-10-2003, 07:50 AM
As I said, a great link, very useful. Exactly the sort of script I needed and it was implemented well. However, can you think of any reason why the folding tree structure will not work unless the page is refreshed?

On first visit to the page, no amount of clicking produces a result (this includes the sample page, not just my own implementation). However, if I click on refresh, the tree does work?!:confused:

Asmodeus
04-10-2003, 08:02 AM
no clue, worked fine first time around for me.

BlueBoy
04-10-2003, 11:54 AM
I'm using Mozilla and it didn't work the first time either.