473,395 Members | 1,335 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

image won't appear

This is my first time to post to this group, so, please be kind.

In my class, we have a project to create a new window. Mine works in IE with
an image, however, in Netscape the image will not appear. Is there someone
who can help me, or guide me?

http://www.kathypainter.com/iwa/js/W...ssignment.html

Thank you.
Kathy

Jul 20 '05 #1
4 1956


kathy painter wrote:
This is my first time to post to this group, so, please be kind.

In my class, we have a project to create a new window. Mine works in IE with
an image, however, in Netscape the image will not appear. Is there someone
who can help me, or guide me?

http://www.kathypainter.com/iwa/js/W...ssignment.html


You have

function newWindow()
{
var newWindow=open('','ashley','height=475,width=475') ;
newWindow.document.write("<img src=ashley1.jpg>");
}

If all you want is to open an image in the new window use
var newWindow = window.open('ashley1.jpg', 'ashley',
'height=475,width=475');

If you have reason to use document.write to write HTML to the new window
then don't forget the
newWindow.document.close();
after the last document.write

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2


kathy painter wrote:
This is my first time to post to this group, so, please be kind.

In my class, we have a project to create a new window. Mine works in IE with
an image, however, in Netscape the image will not appear. Is there someone
who can help me, or guide me?

http://www.kathypainter.com/iwa/js/W...ssignment.html


You have

function newWindow()
{
var newWindow=open('','ashley','height=475,width=475') ;
newWindow.document.write("<img src=ashley1.jpg>");
}

If all you want is to open an image in the new window use
var newWindow = window.open('ashley1.jpg', 'ashley',
'height=475,width=475');

If you have reason to use document.write to write HTML to the new window
then don't forget the
newWindow.document.close();
after the last document.write

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #3

"Martin Honnen" <Ma***********@t-online.de> wrote in message
news:3F**************@t-online.de...

Thank you Martin, it now works perfectly. I just couldn't see the forest
through the trees. I appreciate your input greatly.

Kathy
Jul 20 '05 #4

"Martin Honnen" <Ma***********@t-online.de> wrote in message
news:3F**************@t-online.de...

Thank you Martin, it now works perfectly. I just couldn't see the forest
through the trees. I appreciate your input greatly.

Kathy
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Roger Shrubber | last post by:
I have a page with images that the user can drag from one frame to another. I need them to see a "ghost image" of the image they are dragging, while the original stays put. I use the onmousemove...
5
by: Aaron | last post by:
I have a div with an image which needs to appear in it's bottom left. I currently have the padding top of the image set to 100%, which should move the image to the bottom of the the div, but for...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
3
by: Zahid Khan | last post by:
I need little help in my situation. I am reading a graphic file (jpg) from disk and then resizing it and save resized image. What happens, it gets blured, I want to retain same quality so that...
4
by: Jake | last post by:
Does cookieless session state (with the sessionid embedded into the url) interfere with the browser's retrieval of cached images from one session to the next? Does the sessionid embedded into the...
8
by: Gabriella | last post by:
Hi, I have the CSS class below, and the image (pro.gif) is not showing on my page. It is showing ONLY where's some text in the div, but all I need is the image itself. ..pro {background-image:...
9
by: shapper | last post by:
Hello, What is the best way to place an image and a text side by side using CSS? Basicaly what I am trying to do is to make the image and the text to appear as follows: Image My Text......
3
by: therio7 | last post by:
Anyone can help me with my code? If you look at my page http://www.vitrail-entete.com/tdj/quoi_de_neuf_test.php When you mouseover the thumbnails on each row all the larger images appear in...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.