Note that there are some explanatory texts on larger screens.

plurals
  1. POShow hide div in one area
    primarykey
    data
    text
    <p>I have been looking all day to try and find something that matches what I want but I cant find anything anywhere.</p> <p>I want to create a show hide div that shows / hides the div in one fixed area.</p> <p>I want a gallery of thumbs on half my page and in the other half of the page I want to display the full profile associated to that thumb, so when i click on another thumb the previous thumb's div disappears and the new thumbs div appears in its place.</p> <p>I am looking to achieve something like this: (just how the text appears on the left hand side when you click on a thumb) <a href="http://www.tcsdigitalworld.com/team" rel="nofollow">http://www.tcsdigitalworld.com/team</a></p> <p>I have already achieved something simular on another website where the image swaps but I want to add text to this and show more content such as a profile. You can see what I have done there here: <a href="http://www.dansiop.com/epbs/index.php/brides/gowns/paloma-blanca.html" rel="nofollow">http://www.dansiop.com/epbs/index.php/brides/gowns/paloma-blanca.html</a></p> <p>If anyone can point me in the right direction I would really appreciate it.</p> <p>Many thanks</p> <p>UPDATE: Thank you all for your input but I am a bit of a massive n00b when it comes to javascript.</p> <p>I have tried doing all of these on the site that I want it to go on and I cant get any of them working. I can get some of them working at some point but not as it should.</p> <p>The closest I got it working was using the sample that Ernestas Stankevičius offered</p> <p>But as you can see it isnt quite working as when I click on the thumb they disappear - it doesnt do it on the link above but it does on my site. I am also not sure where I place what content to make it work.</p> <p>Where do I place the thumb src and where do i place the profile content, main image etc?</p> <p>I call this is my header:</p> <pre><code>&lt;script&gt; $(document).ready(function(){ $('.thumb').click(function(){ $('#main').fadeOut(500).html($(this).children('.bla').html()).fadeIn(200); }) }); &lt;/script&gt; </code></pre> <p>I set this in my css (not what I want in the end but its a start as you sugested:</p> <pre><code>#main { color: red } .bla { display: none } .thumb { cursor: pointer; background-color: blue; height: 100px; width: 100px; margin: 5px } </code></pre> <p>and I use this html:</p> <pre><code>&lt;div id="main"&gt;sdfsdfsdf&lt;/div&gt; &lt;div class="thumb"&gt; &lt;div class="bla"&gt;asdasdasd1&lt;/div&gt; &lt;/div&gt; &lt;div class="thumb"&gt; &lt;div class="bla"&gt;asdasdasd2&lt;/div&gt; &lt;/div&gt; &lt;div class="thumb"&gt; &lt;div class="bla"&gt;asdasdasd3&lt;/div&gt; &lt;/div&gt; &lt;div class="thumb"&gt; &lt;div class="bla"&gt;asdasdasd4&lt;/div&gt; &lt;/div&gt; </code></pre> <p>Just to clarify, when I click on the thumbs the text changes as I want it to but the thumbs disappear (not as I want it to)</p> <p>Thanks in advance.</p> <p>Dan</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload