SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Member
    Join Date
    Mar 2006
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Image Thumbnail Viewer

    Has anyone of you used this script before?

    I need to know how to add in the code that will enable the webpage to show pictures from different id.
    http://www.dynamicdrive.com/dynamici...humbnail2.htm#

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,187
    Mentioned
    191 Post(s)
    Tagged
    2 Thread(s)

    image script

    The link you posted seems to be broken.

  3. #3
    SitePoint Member
    Join Date
    Mar 2006
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  4. #4
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,187
    Mentioned
    191 Post(s)
    Tagged
    2 Thread(s)

    image array

    If I understand your question, you can add how many and what ever images you want to the "dynimages" array, with or without links.
    HTML Code:
    //Specify image paths and optional link (set link to "" for no link):
    var dynimages=new Array()
    dynimages[0]=["me_smiling.jpg",""]
    dynimages[1]=["beach_house.jpg",""]
    dynimages[2]=["http://www.old_school.com/school_logo.gif", "http://www.old_school.com"]
    dynimages[3]=["design_art.png", "./portfolio/index.html"]
    Just make sure each additional image used increments the dynimages array index by 1.
    Note* you may want to get permission from old_school.com before hot-linking to their logo.

  5. #5
    SitePoint Member
    Join Date
    Mar 2006
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I want to integrate the following codes into the 'Image Thumbnail Viewer II',
    any idea how to do this?


    if($i == '2')
    {
    $Image2 = "photos.gif";

    if(!empty($a1[image]))
    {
    $MyImages = explode("|", $a1[image]);

    $ShowInfo .= "<table valign=top align=center width=\"500\" height=50>\n<tr>\n\t<td align=center valign=top width=\"500\" height=50>";

    while(list(,$v) = each($MyImages))
    {
    $ShowInfo .= "<a href=\"info.php?id=$_GET[id]&i=$_GET[i]&f=$v\"><img src=\"re_images/$v\" width=50 height=50 border=0></a>&nbsp;&nbsp;&nbsp;\n\n\t";
    }

  6. #6
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,187
    Mentioned
    191 Post(s)
    Tagged
    2 Thread(s)

    adding code to script

    That code doesn't look compatible with the thumbnail viewer script.
    There is no $a1[image] array.
    Is "image" a constant or a variable coming from somewhere?

  7. #7
    SitePoint Member
    Join Date
    Mar 2006
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It is a property listing website.

    I want to show each property listing photos when user clcik on each property.

    http://www.propertybytube.com/info.php?id=4&i=2

  8. #8
    SitePoint Member
    Join Date
    Mar 2006
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have managed to solve this problem.

    Thanks.

    Have a look at the result

    www.propertybytube.com


Bookmarks

Posting Permissions

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