You are here: Re: getting image to work... « HTML « IT news, forums, messages
Re: getting image to work...

Posted by SpaceGirl on 10/09/05 13:57

joshkotecha@gmail.com wrote:
> I'm trying to solve a problem with iframe and image.
> I've set up 3 column layout where the left and right column
> are fixed size. I need a gif/jpg to pop up in the middle column
> and the picture needs to dictate the size of the middle column.
>
> I tried to setup an iframe for the middle. This sort of works.
> I change the src of the iframe using javascript.
>
> The problem is that the picture doesn't fit the middle column. I get
> scroll bars -- this is what I don't want. If I made the center a <img
> src="mypic1.jpg" id="pic" name="pic"></img> the picture shows up. But I
> can't get the src name in javascript. I keep getting NaN or undefined.
> I'm doing
> mypix = document.getElementByID("pic").src. This works with iframe,
> but doesn't work with image.

Btw...

<img ... />

or

<img ... >

You dont close <img> tags unless you are doing XHTML.


--


x theSpaceGirl (miranda)

# lead designer @ http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #
# this post (c) Miranda Thomas 2005
# explicitly no permission given to Forum4Designers
# to duplicate this post.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация