html - I am trying to display text over image on more info click -


i trying display text on image on more info click , hide text image on hide info button click.

i developing website in razor. trying display text on image on more info click , hide text image on hide info button click.

<style>     .portfolioimage {         position: relative;         overflow: hidden;     }      .portfolioimage .footerbar {         position: absolute;         width: 100%;         height: 100%;         position: absolute;                   left: 0;         margin-top: -200px;         border-radius: 5px;            }      .portfolioimage:hover .footerbar {         margin-top: 0px;         background-color: #ffb268;         opacity: 0.8;     }      .footerbar {         -webkit-transition: 0.7s ease;         transition: 0.7s ease;     }     </style>  <div class="thumbnail" style="padding:0px;height:200px">     <div class="portfolioimage" id="portfolioimage@(i)">         <div class="footerbar" id="footerbar@(i)">             <table class="table rate-info">                 <tr>                     <td>first passenger fare</td>                 </tr>             </table>         </div>         <div id="image_frame@(i)" class="image_frame">             <img alt="100%x200" data-src="@(url.content("~/images/van/"+vanimg+".png"))" src="@(url.content("~/images/van/" + vanimg + ".png"))" data-holder-rendered="true" style="height: 200px; width: 100%; display: block;">         </div>     </div>                                   <div class="col-sm-2">         <a id="btncollapseshow@(i)" name="btncollapse@(i)" onclick="showhiderates('@(i)','show')" style="color:#4285f4;font-size:small;cursor:pointer;" class="btnexpand" title="@global.translate("more info")">  &#43; </a>         <a id="btncollapsehide@(i)" name="btncollapse@(i)" onclick="showhiderates('@(i)','hide')" style="color:#4285f4;font-size:small;cursor:pointer;display:none;" class="btnexpand" title="@global.translate("hide info")">  &#8211; </a>     </div>  function showhiderates(_cellindex, _showhide) {             var _image_frame = "#image_frame" + _cellindex;     var btncollapseshow = "#btncollapseshow" + _cellindex;     var btncollapsehide = "#btncollapsehide" + _cellindex;      if (_showhide == "show") {         $(btncollapseshow).css({ "display": "none" });         $(btncollapsehide).css({ "display": "block" });         // $(_image_frame).addclass("portfolioimage footerbar").css('margin-top','+200');              } else {         $(btncollapseshow).css({ "display": "block" });         $(btncollapsehide).css({ "display": "none" });         // $(_image_frame).removeclass("footerbar");         } } 


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -