Hi I have this piece of code that I would modify
<section id="imgTestata1" style="background-color:#f7f7f7; color:#ffffff; background-image:url(../asset/images/scatti/home1.jpg); padding-top:290px; padding-bottom:0px; background-position:Right top; background-size:cover;">
<div class="row-inner row-inner-full">
<div class="wpb_column vc_column_container vc_col-sm-12">
<div class="vc_column-inner ">
<div class="wpb_wrapper">
<div class="colored-box wpb_animate_when_almost_visible wpb_bottom-to-top" style="max-width:550px; padding:35px 45px 50px; margin-left:40px;">
<img src="../asset/images/logo_trasparente.png" style="width:100%" />
</div>
<div class="vc_spacer" style="height:40px"></div>
<div class="sticky_navigation_wrapper">
<div class="sticky_navigation">
<div class="sn_inner">
<a href="#wrapper">
<div class="to_top"><i class="fa fa-caret-up"></i></div>
</a>
<ul>
<li><a href="#innovazione">Innovazione</a></li>
<li><a href="#inside">What's inside</a></li>
<li><a href="#team">Our Team</a></li>
<li><a href="#features">Features</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
I want to add a javascript function that can allow me change the background image in the section named "imgTestata1" Thanks
Not sure if you want to change the image or scroll it (probably the first)? Anyway:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.