I’ve created a html page which consists of a div section in the body tag.
How do I change the contents of inner divs based on an event in another in vb.net winform(eg: when a button is pressed)?
<div id="magazine">
<div style="background-image:url(pages/01.jpg);"></div>
<div style="background-image:url(pages/02.jpg);"></div>
<div style="background-image:url(pages/03.jpg);"></div>
<div style="background-image:url(pages/04.jpg);"></div>
<div style="background-image:url(pages/05.jpg);"></div>
<div style="background-image:url(pages/06.jpg);"></div>
<div style="background-image:url(pages/07.jpg);"></div>
<div style="background-image:url(pages/08.jpg);"></div>
</div>
Suppose I want to replace it with
<div id="magazine">
<div style="background-image:url(pages/01.jpg);"></div>
<div style="background-image:url(pages/02.jpg);"></div>
<div style="background-image:url(pages/03.jpg);"></div>
<div style="background-image:url(pages/04.jpg);"></div>
</div>
in general some code example or something similar is helpful to explain problems and solutions. 😉
If you’re searching for how to react on different browsers you’ll be finding some very good articles with the keyword ‘browser sniffing’. Check wikipedia too! Note that there are a lot of different approaches in both css and javascript.