Using mouseover to switch tabs
Here we use the mouseover event to switch between tabs. This event can, for example, be used in the following type of product presentation setups:
Lorem ipsum dolor
Consectetur adipiscing elit. Curabitur tempus, massa at facilisis aliquet, urna metus interdum felis, sit amet adipiscing justo neque eget risus.
Nullam ut ligula id dolor dapibus aliquam.
Maecenas molestie
Lacus ut blandit malesuada, sem magna varius enim, eu mattis elit justo in quam. Curabitur in magna. Nam luctus aliquet ante. Nam ut nunc. Quisque ligula nunc, molestie non, gravida sit amet, consequat eu, lectus. Proin aliquet nulla eget massa. Vestibulum ac dolor a tortor porta commodo.
In hac habitasse platea dictumst
Quisque mattis gravida est. Vestibulum orci nisl, egestas vel, pharetra quis, auctor nec, lectus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus sodales massa quis nunc. Sed velit risus, feugiat ut, pharetra a, venenatis et, arcu.
HTML coding
You should notice that the tabs tool is not dependent upon any specific HTML structure. This example uses img tags as tabs and panes have no specific root element:
The styling is defined with the following CSS file.
JavaScript coding
The configuration is again very simple. We set up things as usual with the event configuration option set to mouseover: