TechArena Community

TechArena Community (
-   Software Development (
-   -   Using highslide to view images (

HiSpeed 18-11-2009 08:55 PM

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 } ?>

CitricAcid 18-11-2009 09:05 PM

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 ?>"/>

HiSpeed 18-11-2009 09:08 PM

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).

fellah 18-11-2009 09:19 PM

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.

All times are GMT +5.5. The time now is 12:52 AM.