This Forum has been archived there is no more new posts or threads ... use this link to report any abusive content
==> Report abusive content in this page <==
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I make something load invisible on a page and then appear using HTML?
10-13-2012, 09:34 PM
Post: #1
How can I make something load invisible on a page and then appear using HTML?
For instance, Twitter users... on the sidebar where you can minimize and then restore the Trending Topics list or Following list without actually loading a new web page. The module is just built in. Any help?
That's a good answer to the first person, but how would I think set up a link to display it on the page?

Ads

Find all posts by this user
Quote this message in a reply
10-13-2012, 09:42 PM
Post: #2
 
There are a couple of parts to this. The simple part is making the component not display initially. That is done with 'style="display:none"' as an attribute on the component.

Later, while handling some sort of event, you use Javascript to change the style of the component to perhaps "display:block".

Ads

Find all posts by this user
Quote this message in a reply
10-13-2012, 09:42 PM
Post: #3
 
I answered a question that is kind of like this one. The way to set it up is the same though, so have a look at this:
http://answers.yahoo.com/question/index;...717AAfK52l

Good lucik with it.
Find all posts by this user
Quote this message in a reply
10-13-2012, 09:42 PM
Post: #4
 
Simple example solution:

<div id="mydiv" style="display:none">I'm hidden at first</div>
<a href="#" onclick="document.getElementById('mydiv' ).style.display='block';">Click to show</a>
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)