Ask a Question related to Dreamweaver AppDev, Design and Development.
-
lawrie #1
popup image
I can dynamically link a larger image to a thumbnail by the 'open browser
window' behaviour .... but the size of the pop up window has to be pre-set.
Is there anyway to link to the larger image and have the widow hug the
image?
I think one of the justso picture window extension does this but not with
php
lawrie
lawrie Guest
-
image popup
I could us some insight in the following problem I'm having. I want to add a picture to a link that opens in a seperate window while the page... -
Image to load in larger popup
Hi guys, just wondering if anyone can help me. I have a datagrid control that pulls images into a template column using the following code ... -
roll over popup image
i have listed my inventory on my site using a simple repeated region. what i would like to do is pop open a small window when the mouse is rolled... -
Keep over image while showing popup menu
When I hover over a button that has a popup menu, I would like the button's over image to stay on when my mouse is over the popup menu. When it goes... -
I need an image to popup, when I rollover hotspots
Can someone tell me how to do this in Fireworks MX? I currently do it in Excel and link to a new page, which replaces the page I am on. The rest of... -
Joe Ruggeri #2
Re: popup image
Store the image dimensions in the database. Then base your popup size on the
wifth & height of the image.
- jr
"lawrie" <lawrie@nospamplease.com> wrote in message
news:d2m3h0$1v9$1@forums.macromedia.com...pre-set.> I can dynamically link a larger image to a thumbnail by the 'open browser
> window' behaviour .... but the size of the pop up window has to be> Is there anyway to link to the larger image and have the widow hug the
> image?
> I think one of the justso picture window extension does this but not with
> php
> lawrie
>
>
Joe Ruggeri Guest
-
lawrie #3
Re: popup image
"Joe Ruggeri" <joerugg@NOSPAM.jfmedia.com> wrote in message
news:d2u3rp$seg$1@forums.macromedia.com...
: Store the image dimensions in the database. Then base your popup size on
the
: wifth & height of the image.
:
: - jr
:
Just looked at the code for 'open browser window & should be able to put the
dimensions in dynamically.
thanks
lawrie:
lawrie Guest
-
David Powers #4
Re: popup image
Joe Ruggeri wrote:
There's no need to do that with PHP. Use getimagesize() instead. It does> Store the image dimensions in the database.
it all for you:
[url]http://www.php.net/manual/en/function.getimagesize.php[/url]
--
David Powers
Author, "Foundation PHP 5 for Flash" (friends of ED)
Co-author "PHP Web Development with DW MX 2004" (Apress)
[url]http://computerbookshelf.com[/url]
David Powers Guest
-
lawrie #5
Re: popup image
Using getimagesize is fine:
<?php
list($width, $height, $type, $attr) =
getimagesize("news_images/mr.green.jpg");
echo "<img src=\"news_images/mr.green.jpg\" $attr alt=\"getimagesize()
example\" />";
?>
However, I want to substitute dyanmic images and the following throws an
error:
<?php
list($width, $height, $type, $attr) =
getimagesize("news_images/$row_rs['image1_name']");
echo "<img src=\"news_images/$row_rs['image1_name']\" $attr
alt=\"getimagesize() example\" />";
?>
thanks for any help
lawrie
"David Powers" <dp@example.com> wrote in message
news:d2umpu$r87$1@forums.macromedia.com...
: Joe Ruggeri wrote:
: > Store the image dimensions in the database.
:
: There's no need to do that with PHP. Use getimagesize() instead. It does
: it all for you:
:
: [url]http://www.php.net/manual/en/function.getimagesize.php[/url]
:
: --
: David Powers
: Author, "Foundation PHP 5 for Flash" (friends of ED)
: Co-author "PHP Web Development with DW MX 2004" (Apress)
: [url]http://computerbookshelf.com[/url]
lawrie Guest
-
David Powers #6
Re: popup image
lawrie wrote:
It would help if you say what sort of error it produces. Just looking at> However, I want to substitute dyanmic images and the following throws an
> error:
>
> <?php
> list($width, $height, $type, $attr) =
> getimagesize("news_images/$row_rs['image1_name']");
> echo "<img src=\"news_images/$row_rs['image1_name']\" $attr
> alt=\"getimagesize() example\" />";
> ?>
your code, though, it's probabaly because there's no space between the
variable names and the rest of the strings. Try this:
list($width, $height, $type, $attr) =
getimagesize("news_images/{$row_rs['image1_name']}");
echo "<img src=\"news_images/{$row_rs['image1_name']}\" $attr
alt=\"getimagesize() example\" />";
In other words, surround $row_rs['image1_name'] with curly braces so
that the PHP engine can parse it correctly as a variable.
--
David Powers
Author, "Foundation PHP 5 for Flash" (friends of ED)
Co-author "PHP Web Development with DW MX 2004" (Apress)
[url]http://computerbookshelf.com[/url]
David Powers Guest
-
lawrie #7
Re: popup image
Spot on :)
thanks
lawrie
"David Powers" <dp@example.com> wrote in message
news:d30hh9$ji2$1@forums.macromedia.com...
: lawrie wrote:
: > However, I want to substitute dyanmic images and the following throws an
: > error:
: >
: > <?php
: > list($width, $height, $type, $attr) =
: > getimagesize("news_images/$row_rs['image1_name']");
: > echo "<img src=\"news_images/$row_rs['image1_name']\" $attr
: > alt=\"getimagesize() example\" />";
: > ?>
:
: It would help if you say what sort of error it produces. Just looking at
: your code, though, it's probabaly because there's no space between the
: variable names and the rest of the strings. Try this:
:
: list($width, $height, $type, $attr) =
: getimagesize("news_images/{$row_rs['image1_name']}");
: echo "<img src=\"news_images/{$row_rs['image1_name']}\" $attr
: alt=\"getimagesize() example\" />";
:
: In other words, surround $row_rs['image1_name'] with curly braces so
: that the PHP engine can parse it correctly as a variable.
:
: --
: David Powers
: Author, "Foundation PHP 5 for Flash" (friends of ED)
: Co-author "PHP Web Development with DW MX 2004" (Apress)
: [url]http://computerbookshelf.com[/url]
lawrie Guest



Reply With Quote

