Second page -image show and hide
The second page idea is I want to show and hide images when users click the button (so this page is design for user have interactive with this web site).
On the assessment 1, the image just as a image display on the second page, without any interaction. so, on the final website, I am find some very useful JQuery sources about the show and hide. below is the code and the script.
-----------------------------------------------------------------
<div class="image-show">
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<button id="showr">Show</button>
<button id="hidr">Hide</button>
<div class="images" ><img src="images/p1.png"></div>
<script>
$( "#showr" ).click(function() {
$( "div" ).first().show( "fast", function showNext() {
$( this ).next( "div" ).show( "fast", showNext );
});
});
$( "#hidr" ).click(function() {
$( "div" ).hide( 1000 );
});
</script>
-------------------------------------------------------------------
I use image to instead the text. However, I have a problem when I click the “hide” button, all about <div>on the website will hide.
therefore, I am think about use another code to instead the <div>.
I use <h7> to instead the <div>, after that on the website view this is work very well.
However, on the html code it is seem have some problem,but i cannot solve it .
But, I have new problem, that is the edit shows that are all error on this part. I have text in many ways, finally I am keep use <h7> this is the only best way I can think about.
Maybe I need do more work and research on it, I plan do more in the future.