
willydoit
User
May 18, 2009, 5:47 AM
Post #1 of 4
(1463 views)
Shortcut
|
|
How to link from images in new window
|
Can't Post
|
|
Hi all, I have just about got my detail pages put together but have a small problem, I am using the code below to display the images down a left hand column on the page which is workling fine, the only problem is they dont habve hyperlinks to full size version which I would like to have open in a new window (would prefer them to display larger when hovered over but that can be sorted later but would be interested to know if anyone has already sussed out how to achieve it) I have copied the code below, if someone could advise on how this should be altered to provide the link in a new window, or even edit the code if it's easier I would appreciate it. Also the description tag does not display below the images, I would also like to include this if possible. Thanks in advance. <?php foreach ($serviced_accommodationRecord['uploads'] as $upload): ?> <?php if ($upload['hasThumbnail']): ?> <img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /><br/><p></p> <?php elseif ($upload['isImage']): ?> <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /><br/> <?php else: ?> <a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/> <?php endif ?> <?php endforeach ?>
(This post was edited by willydoit on May 18, 2009, 5:54 AM)
|