Jump to content

Omid

Members
  • Posts

    6
  • Joined

  • Last visited

    Never

About Omid

  • Birthday 07/11/1990

Contact Methods

  • Website URL
    http://www.neekiran.com

Profile Information

  • Gender
    Not Telling

Omid's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. wooow... it did have something to do with php... it was in a echo"" ... lol... ;D
  2. YUP ;D;D thats it.... thanks
  3. uhm... no i hadn't but i did now and still not working :S thanks anyways tho
  4. Hi folks, I have been working on a new script and i have met the same problem a couple of times and i've decided to ignore them until now  ;D. I have a php script and in the echo part, i have a link. I'm trying to get the link to open in a new window by using javascript but it doesnt work. [code]echo "<li><a href='javascript:newwindow()'>Edit</a></li>";[/code] and i have [code]<SCRIPT language="JavaScript"> function newwindow() { window.open('inc/menu.php?cmd=edit&id=$id','jav','width=300,height=200,resizable=no'); } </SCRIPT>[/code] in the <head> section. Any help would be appreciated. Thanks ;D
  5. hi again, sorry i think i was not specific on my question here's my code: [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--] <div style="width:700px;">      <?php        foreach (glob("picture_library/*.jpg") as $filename) {            if (filesize($filename) > 0) {                $image = exif_thumbnail($filename, $width, $height, $type);                if ($image === false)                    list($image, $type, $width, $height) = makethumb($filename);                   $width = 100;                $height = 100;                   echo '<a class=pic href="' . $filename .                    '"><img style="width:' . $width . '" src="' . $filename . '" width="' .                    $width . '" height="' . $height . '"></a>'."\n";            }        }    function makethumb($fn,$rt=true)    {        $w = 100;        $h = 100;        list($ow, $oh, $type, $attr) = getimagesize($fn);        if ($ow < $oh) {            $w = 100;            $h = 100;        }        $tn = imagecreatetruecolor($w, $h);        $img = imagecreatefromjpeg($fn);        imagecopyresampled($tn, $img, 0, 0, 0, 0, $w, $h, $ow, $oh);        if ($rt) {            return (array($tn, $type, $w, $h));        } else {               header('Content-type: ' .image_type_to_mime_type($type));            imagejpeg($tn);        }    } ?><br> </div> </div> <div class="Bottom"> Copyright 2005 - 2006 ### Ltd. All rights reserved. </div> </center> </body>[/quote] this code views all my images in the picture_library folder. I used to float: left; code in my style sheet and that aligned the images horizontally, but the problem with that was, in firefox, the pictures were not in the div. It's not easy to explain so i'll give you a link so you can check it out if you have firefox: with float:left; style: [a href=\"http://www.###.com/pictures2.php\" target=\"_blank\"]http://www.###.com/pictures2.php[/a] without style:[a href=\"http://www.###.com/pictures.php\" target=\"_blank\"]http://www.###.com/pictures.php[/a] Any help about this would be really appreciated.
  6. Hi, [a href=\"http://www.###.com/pictures.php\" target=\"_blank\"]http://www.###.com/pictures.php[/a] if you take a look at this page, you'll see that the images are aligned vertically. I want to have these images aligned horizontally within the div, without using the float script. any help would be appreciated.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.