Results 1 to 3 of 3

Thread: Image Thumbnail Viewer II script issue

  1. #1
    Join Date
    Nov 2007
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Thumbnail Viewer II

    hello, how to make default picture:
    Im using this way:
    echo "<div id=\"loadarea\" style=\"background-color:#ABCAFF; min-height:300px;border:2px solid red; margin:0; padding:0;\">Images goes there.. </div>";
    echo "<div style=\"float:left\">";
    $n=1;
    for($i=1;$i<6;$i++){
    if (!empty($myrow['image'.$i.''])) {$img=$myrow['image'.$i.''];
    echo "[<a href=\"http://www.myweb.de/images/$img\" rel=\"enlargeimage::click\" rev=\"loadarea\">".$n; $n++; echo "</a>]";}
    }

    I can check if there is image1 in mysql, and how to load it first?

  2. #2
    Join Date
    Nov 2007
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Thumbnail Viewer II script issue

    1) Script Title: Image Thumbnail Viewer II script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...thumbnail2.htm

    3) Describe problem: I need to display default first image,

    Im using such code:
    PHP Code:
    echo "<div id=\"loadarea\" style=\"background-color:#ABCAFF; min-height:300px;border:2px solid red; margin:0; padding:0;\">Nuotraukos </div>";
     echo 
    "<div style=\"float:left\">";
    $n=1;
    for(
    $i=1;$i<6;$i++){
    if (!empty(
    $myrow['image'.$i.''])) {$img=$myrow['image'.$i.'']; 
    echo 
    "[<a href=\"http://www.tipsas.lt/skelbimai/images/$img\" rel=\"enlargeimage::click\"  rev=\"loadarea\">".$n$n++; echo "</a>]";}

    I need $myrow['image1'] to be loaded automatically first, or if there is now such image, then display onother default image default.jpg.

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Code:
     . . . px solid red; margin:0; padding:0;\">Images goes there.. </div>";
    echo "<div style=\"floa . . .
    Put whatever code you like in place of the red part.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •