Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 03-22-2006, 07:39 PM hidden visible
Novice Talker

Posts: 5
Trades: 0
I have built a page where I can make text visible when clicking a graphic. There are 4 graphics and 4 different tables. Problem is that the only way to get rid of the previous table is to click that graphic again. Can someone help me to have the table disappear when the next ID (graphic) is clicked? Thanks.
webjustice is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-22-2006, 07:46 PM Re: hidden visible
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
have a function that hides all the elements before showing the one clicked
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-23-2006, 02:55 AM Re: hidden visible
Novice Talker

Posts: 5
Trades: 0
what would that look like?
webjustice is offline
Reply With Quote
View Public Profile
 
Old 03-23-2006, 04:49 PM Re: hidden visible
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.candsdesign.co.uk/article...nus/drop-down/

click on the show code link to see how I do it

function called CollapseAll() in the javscript
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-23-2006, 09:39 PM Re: hidden visible
Novice Talker

Posts: 5
Trades: 0
Thanks for your help chris. I still am not getting it.

Where do I call the collapse() and do I have to put ' javascript functions copy and past in to an external .js _ file. If so where is that stored..... Thanks again and I will use the same thread from now on. I thought I was in this one but was in the other.... I am seeing how these forums work now.
webjustice is offline
Reply With Quote
View Public Profile
 
Old 03-24-2006, 04:16 AM Re: hidden visible
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
well you will need to recode the functions to suit your element IDs (or recode your IDs)

the call to collapse the elements would go before the show code, in my case the show function is called ToggleSub() and the element IDs go into the array
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to hidden visible
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.59017 seconds with 12 queries