thanks all who helped.
in case you are interested, i ended up with a very bottom line, yet working
solution:


        paSrc = eval (picVar+".src")
        picLH = 250 - eval (picVar+".height")   // 250 is the fixed height of the
container dynlayer

        insertPicture (picLH, paSrc);

function insertPicture (picLH, paSrc) {
        if (picLH == 0) picL.setHTML("<IMG src=\"" +paSrc+ "\" border=\"0\">")
        else

                picL.setHTML("\<IMG src=\"./image/pixel.gif\" height=\"" +picLH+ "\"
width=\"1\" border=\"0\">
<BR CLEAR=ALL><IMG src=\"" +paSrc+ "\" border=\"0\">")
                }
}

// pixel.gif is a 1*1 pixel gif with transparet background


"-j irka


[ps]
actually now that i look at my post, i think it would be easier to use
"padding-top" css property... ;)

::-----Original Message-----
::From: [EMAIL PROTECTED]
::[mailto:[EMAIL PROTECTED]]On Behalf Of
::Richard Bennett
::Sent: Tuesday, May 22, 2001 8:07 AM
::To: [EMAIL PROTECTED]
::Subject: Re: [Dynapi-Help] align IMG in a dynlayer
::
::
::If you are using Dynlayers, you can also use one of the layerpos
::extensions:
::../Henrik_Vaglin_Examples
::http://www.richardinfo.f2s.com/dynapi/php/examples.html
::
::
::
::----- Original Message -----
::From: "Williams, Chris" <[EMAIL PROTECTED]>
::To: <[EMAIL PROTECTED]>
::Sent: 22 May, 2001 05:00
::Subject: RE: [Dynapi-Help] align IMG in a dynlayer
::
::
::> Don't know if this helps....but this is a function I used to position a
::> calendar object next to an image no matter where that image was.
::> Perhaps you could adapt it for your purposes?
::>
::> function getImgOffset(offsettype) {
::> imgref = lyr10.doc.images["cal1"];
::> if (offsettype=='left') {
::>        if (is.ie) {
::>     os = imgref.offsetLeft + imgref.width + 10;
::>     while ((imgref = imgref.offsetParent) != null) {
::> os += imgref.offsetLeft;
::> }
::>
::> }
::> else if (is.ns){
::> os = imgref.x + lyr10.x + imgref.width + 10;
::> }
::> }
::> else if (offsettype=='top') {
::> if (is.ie) {
::> os = imgref.offsetTop - 15;
::> while((imgref = imgref.offsetParent) != null) {
::> os += imgref.offsetTop;
::> }
::> }
::> else if (is.ns){
::> os = imgref.y + lyr10.y - 15;
::> }
::> }
::> return os;
::> }
::>
::> Cheers
::>
::> Chris
::>
::>
::>
::>
::>
::>
::> -----Original Message-----
::> From: Michael Pemberton [mailto:[EMAIL PROTECTED]]
::> Sent: Tuesday, 22 May 2001 1:38 AM
::> To: [EMAIL PROTECTED]
::> Subject: Re: [Dynapi-Help] align IMG in a dynlayer
::>
::>
::> i think that the ing tage has an align parameter.  this should do the
::> trick.
::>
::> jirka wrote:
::>
::> > thanks for the tips. they work fine. but i forgot to tell you i am
::> working
::> > on a gallery and i am inserting about a 100 pictures different in
::> size.
::> > i think this will work:
::> > Image.top = dynlayer.h - picture.h
::> >
::> > but still am curious if it is possible to simply align it. i tried
::> > experimenting with layer.setBgImage(), but faced compatibility
::> problems...
::> > (using 2001.01.25)
::> >
::> > cau,
::> > :-j irka
::> >
::> > ::-----Original Message-----
::> > ::From: [EMAIL PROTECTED]
::> > ::[mailto:[EMAIL PROTECTED]]On Behalf Of
::> > ::Digital Strider
::> > ::Sent: Sunday, May 20, 2001 10:50 PM
::> > ::To: [EMAIL PROTECTED]
::> > ::Subject: RE: [Dynapi-Help] align IMG in a dynlayer
::> > ::
::> > ::
::> > ::Just put the image in another DynLayer.  Then place that with pixel
::> > ::perfection anywhere you want within its parentLayer.
::> > ::
::> > ::-----Original Message-----
::> > ::From: [EMAIL PROTECTED]
::> > ::[mailto:[EMAIL PROTECTED]]On Behalf Of
::> > ::[EMAIL PROTECTED]
::> > ::Sent: Sunday, May 20, 2001 1:44 PM
::> > ::To: [EMAIL PROTECTED]
::> > ::Subject: Re: [Dynapi-Help] align IMG in a dynlayer
::> > ::
::> > ::
::> > ::Whoops missed part of it.. not sure how to align it INSIDE another
::> > ::dynlayer..guess I only answered part of the question.. again
::> sorry...
::> > ::
::> > ::
::> > ::Vince Calendo
::> > ::
::> >
::> > _______________________________________________
::> > Dynapi-Help mailing list
::> > [EMAIL PROTECTED]
::> > http://lists.sourceforge.net/lists/listinfo/dynapi-help
::>
::> --
::> Michael Pemberton
::> [EMAIL PROTECTED]
::> ICQ: 12107010
::>
::>
::>
::>
::> _______________________________________________
::> Dynapi-Help mailing list
::> [EMAIL PROTECTED]
::> http://lists.sourceforge.net/lists/listinfo/dynapi-help
::>
::> _______________________________________________
::> Dynapi-Help mailing list
::> [EMAIL PROTECTED]
::> http://lists.sourceforge.net/lists/listinfo/dynapi-help
::>
::
::
::_______________________________________________
::Dynapi-Help mailing list
::[EMAIL PROTECTED]
::http://lists.sourceforge.net/lists/listinfo/dynapi-help
::


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to