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 |
|||
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 |
|||
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. |
|||
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> |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)