Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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 ...
    3. 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...
    4. 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...
    5. 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...
  3. #2

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

    Joe Ruggeri Guest

  4. #3

    Default 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

  5. #4

    Default Re: popup image

    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]
    David Powers Guest

  6. #5

    Default 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

  7. #6

    Default Re: popup image

    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]
    David Powers Guest

  8. #7

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139