Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Width of images on target frame

Reply
Thread Tools

Width of images on target frame

 
 
Eustace
Guest
Posts: n/a
 
      08-19-2009
I have 2 frames/columns in the document. The 1 frame includes links to
images that target the second frame, for example:

<a target="main" href="1/scan_01.jpg">scan_1</a>

Is there a way to specify that the images width will be that of the
second frame?

emf

--
It ain't THAT, babe! - A radical reinterpretation
http://www.geocities.com/itaintme_babe/itaintme.html
 
Reply With Quote
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      08-19-2009
Eustace wrote:

> I have 2 frames/columns in the document.


How much is a frame divided by a column? What do you _really_ mean by "/" or
by your question as a whole? Is there a URL, and if not, why didn't you
upload your document so that it has a URL?

> The 1 frame includes links to
> images that target the second frame, for example:
>
> <a target="main" href="1/scan_01.jpg">scan_1</a>


So you open a jpeg image somewhere.

> Is there a way to specify that the images width will be that of the
> second frame?


Hardly, because the document you open is a jpeg image. You cannot use any
HTML or CSS on it.

What you could do is to have href="1/scan_01.html" and to create (statically
or dynamically) the HTML file so that it contains the jpeg image in some
dimensions.

Then again, why don't you create the image in the desired size in the first
place?

--
Yucca, http://www.cs.tut.fi/~jkorpela/

 
Reply With Quote
 
 
 
 
dorayme
Guest
Posts: n/a
 
      08-20-2009
In article <h6ghm5$4im$(E-Mail Removed)>, Eustace <(E-Mail Removed)> wrote:

> I have 2 frames/columns in the document. The 1 frame includes links to
> images that target the second frame, for example:
>
> <a target="main" href="1/scan_01.jpg">scan_1</a>
>
> Is there a way to specify that the images width will be that of the
> second frame?
>


Yes, you can make an HTML doc with a bare minimum to specify the image
and have that load. You would make the image the width of the element it
is in, say it is a DIV and you would have no margin or padding on BODY.
You would make the DIV (or the image) the width of the frame it is going
into.

Don't know the width of the latter in advance? Just make the image 100%
wide.

If you give a URL and say what about the rendering you absolutely do not
want changed, I am sure useful suggestions will be made here for you.

--
dorayme
 
Reply With Quote
 
Eustace
Guest
Posts: n/a
 
      08-21-2009
On 2009-08-19 23:53 dorayme wrote:
> In article <h6ghm5$4im$(E-Mail Removed)>, Eustace <(E-Mail Removed)> wrote:
>
>> I have 2 frames/columns in the document. The 1 frame includes links to
>> images that target the second frame, for example:
>>
>> <a target="main" href="1/scan_01.jpg">scan_1</a>
>>
>> Is there a way to specify that the images width will be that of the
>> second frame?
>>

>
> Yes, you can make an HTML doc with a bare minimum to specify the image
> and have that load. You would make the image the width of the element it
> is in, say it is a DIV and you would have no margin or padding on BODY.
> You would make the DIV (or the image) the width of the frame it is going
> into.
>
> Don't know the width of the latter in advance? Just make the image 100%
> wide.
>
> If you give a URL and say what about the rendering you absolutely do not
> want changed, I am sure useful suggestions will be made here for you.


I know I could make an html and assign whatever width I want to the jpg.
The problem is that this solution is not practical because there are
1725 JPGs. And the webpage is not on the web, at least for now it is
intended to be used from a DVD.

emf

--
It ain't THAT, babe! - A radical reinterpretation
http://www.geocities.com/itaintme_babe/itaintme.html
 
Reply With Quote
 
dorayme
Guest
Posts: n/a
 
      08-21-2009
In article <h6lu6c$i26$(E-Mail Removed)>, Eustace <(E-Mail Removed)> wrote:

> On 2009-08-19 23:53 dorayme wrote:
> > In article <h6ghm5$4im$(E-Mail Removed)>, Eustace <(E-Mail Removed)> wrote:
> >
> >> I have 2 frames/columns in the document. The 1 frame includes links to
> >> images that target the second frame, for example:
> >>
> >> <a target="main" href="1/scan_01.jpg">scan_1</a>
> >>
> >> Is there a way to specify that the images width will be that of the
> >> second frame?
> >>

> >
> > Yes, you can make an HTML doc with a bare minimum to specify the image
> > and have that load. You would make the image the width of the element it
> > is in, say it is a DIV and you would have no margin or padding on BODY.
> > You would make the DIV (or the image) the width of the frame it is going
> > into.
> >
> > Don't know the width of the latter in advance? Just make the image 100%
> > wide.
> >
> > If you give a URL and say what about the rendering you absolutely do not
> > want changed, I am sure useful suggestions will be made here for you.

>
> I know I could make an html and assign whatever width I want to the jpg.
> The problem is that this solution is not practical because there are
> 1725 JPGs. And the webpage is not on the web, at least for now it is
> intended to be used from a DVD.
>


It is still a bit difficult to know exactly what you are wanting. There
are ways to make boxes shrink fit to content, you do not need to know
the sizes in advance. But I am not quite sure what you are wanting from
your description. A URL of something or other might help, a test one of
your best shot?

--
dorayme
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use one frame to change images in another frame. Leoa Javascript 7 06-20-2007 05:04 AM
How to make change one frame size (width) when I clicked a button on anothoer frame? ABC ASP .Net 0 06-28-2006 03:37 AM
Textbox width scaling to width of data not width of page? AndrewF ASP .Net 1 10-10-2005 04:38 PM
target form field in iframe w/in frame from other frame starman7@hotmail.com Javascript 2 05-27-2005 10:25 AM
[XML Schema] Including a schema document with absent target namespace to a schema with specified target namespace Stanimir Stamenkov XML 3 04-25-2005 09:59 AM



Advertisments