This topic is locked

Mouse over photo in Properties template

9/13/2007 3:07:52 PM
PHPRunner General questions
M
mmponline author

The details page has the great feature of displaying a larger photo (imgmainPhoto) on mouse over the smaller ones.

$smarty->assign("row00firstphoto_value",htmlspecialchars(AddLinkPrefix("Photo1",$pic)));


Is there a way to limit the dimensions (height or width) on the imgmainPhoto. At the moment it shows the original size of the photo, resulting in some pictures displaying smaller and some larger.

<IMG id=imgMainPhoto src="%7B$row00firstphoto_value%7D">


Thanks for help!

J
Jane 9/17/2007

Stephan,
just add width or height attribute to the <img> tag:

<IMG id=imgMainPhoto src="%7B$row00firstphoto_value%7D" width=500 height=500>

S
safbwebmail 9/18/2007

The details page has the great feature of displaying a larger photo (imgmainPhoto) on mouse over the smaller ones.


$smarty->assign("row00firstphoto_value",htmlspecialchars(AddLinkPrefix("Photo1",$pic)));


Is there a way to limit the dimensions (height or width) on the imgmainPhoto. At the moment it shows the original size of the photo, resulting in some pictures displaying smaller and some larger.

<IMG id=imgMainPhoto src="%7B$row00firstphoto_value%7D">


Thanks for help!

S
safbwebmail 9/18/2007

Stephen,
Please elaborate on exactly where to put this code. Also will it work on thumbnails that are stored in the database when creating a thumbnail on the fly, or does it just work with file based images.
I have everything working with the images and thumbnails, and would love to implement this feature you are talking about. I was not able to get ibox working, just returned a blank box.
Thanks in advance,
Kerry

M
mmponline author 9/18/2007

This feature is implemented in the more phots part of the cars template as a standard feature. Have a look at this and copy the pages and events to your project. Takes some tweaking but there is no ready to go (unfortunately) to implement it in any project. Hopefully in future.
Hope you'll crack this somehow.