mike hoy wrote:
> I know this is off topic, but it's more on topic than az drivers.. lol
>
> curious if anyone can fix this
>
> i have a script that displays the contents of a directory. nice little
> script all i have to do is drop items in and they show up in a list.
>
> the only problem i have is now I would like to specify the window size
> using javascript or php whichever is easier so the .swf files get viewed
> at the correct width and size window.
>
> this is what i have:
>
> <? //the path to your folder from your root dir
> $path = "/directory/directory/directory/";
> // open
> $dir_handle = @opendir($path) or die("Unable to open $path");
> //loop thru it all
> while ($file = readdir($dir_handle)) {
> if($file == "." || $file == ".." || $file == "index.php" )
> continue;
> echo "<a href=\"$file\" target='blank'>$file</a><br>";
> } //close
> closedir($dir_handle); ?>
>
> I'm guessing :
> "<a href=\"$file\" target='blank'>$file</a><br>"; needs
> javascript:void(0)"onclick="window.open('filename.ext','linkname','height=700,
> width=750,scrollbars=no')"
>
I would do something like:
<a href=\"$file\" onClick=\"window.open('./$file' ,'_blank',
'height=700,width=750');return false;\">$file</a>
From my reading that will allow no javascript aware browsers work as well.
More:
http://webmonkey.wired.com/webmonkey/98/03/index3a_page4.html?tw=programming
> somewhere in the code
>
> i've tried:
> to mash these two lines of code together but have no success so far.
> it worked fine when I added target="_blank"
> is there php code that will let me specify the width and height of the
> window?
> mike h
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss