Using highslide to view images
I have pictures that are inside the tag <a> </ a>. I can see it is in the input tag that is hidden. When I click on an image I have an event 'onclick' which activates and supports setting the image (but not all, than that are not hidden). Is it possible to take into account the hidden images? I use 'highslide' to a kind of image galleries.
HTML Code:
<a href="<?php echo $server.$image ?>" class="highslide" title="" onclick="return hs.expand(this, config1)">
<?php if ($compt_image == 1) {?>
<!--<img src="images/figures/one.jpg" />-->
<input type="hidden" name="one" value="<img src='images/figures/one.jpg'>">
<?php }else if ($compt_image == 2){?>
<!--<img src="images/figures/two.jpg" border="none" />-->
<input type="hidden" name="two" value="<img src='images/figures/two.jpg'>">
<?php }else if ($compt_image == 3){?>
<!--<img src="images/figures/three.jpg" border="none" />-->
<input type="hidden" name="three" value="<img src='images/figures/three.jpg'>">
<?php }else if ($compt_image == 4){?>
<!--<img src="images/figures/four.jpg" border="none" />-->
<input type="hidden" name="four" value="<img src='images/figures/four.jpg'>">
<?php }else if ($compt_image == 5){?>
<img src="images/figures/five.jpg" border="none" />
<?php }else if ($compt_image == 6){?>
<img src="images/figures/six.jpg" border="none" />
<?php }else if ($compt_image == 7){?>
<img src="images/figures/seven.jpg" border="none" />
<?php }else if ($compt_image == 8){?>
<img src="images/figures/eight.jpg" border="none" />
<?php }else if ($compt_image == 9){?>
<img src="images/figures/nine.jpg" border="none" />
<?php } ?>
</a>
Re: Using highslide to view images
Its not even how it hide its comments, in addition to nCode is not terrible, for else if it is possible than use a switch, but in addition its architecture is not that good
Changes the name of your pictures to 1, 2, 3 .....
and even
PHP Code:
<?php $c = 5; ?>
<img src="images/figures/<?php echo $c ?>"/>
Re: Using highslide to view images
Yeah well thanks of architecture! Yes it is commented out but my tests early! In fact thanks to view an image visible, but I can return multiple images in this or other (return also hide images).
Re: Using highslide to view images
Use Highslide Editor. The Highslide Editor is a visual tool that lets you configure most of the numerous Highslide options without writing code, and upload the results directly to your web server. This is not only a great help, but also it saves time for professionals who don't have to read through the API documentation to get things done.