473,609 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1960


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','he ight=475,width= 475');
newWindow.docum ent.write("<img src=ashley1.jpg >");
}

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

If you have reason to use document.write to write HTML to the new window
then don't forget the
newWindow.docum ent.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','he ight=475,width= 475');
newWindow.docum ent.write("<img src=ashley1.jpg >");
}

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

If you have reason to use document.write to write HTML to the new window
then don't forget the
newWindow.docum ent.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
3037
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 event to keep the ghost image under the mouse pointer. There are three problems: (1) if the ghost image is dragged so it is partially off the edge of the screen, scrollbars appear. This not only looks bad, it can cause the page to autoscroll...
5
11481
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 some strange reason, there is still space below the image which I can't get rid of. I've set the image margins to 0 and it does nothing, so it's not the margins. The stranger thing is, if I reduce the height of the enclosing div to 326px, the space...
14
11068
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 window.open function? I would prefer not to create a separate HTML page. So far all I have is the basic var cwin = window.open('images/KJV-THANKS.gif', 'Thanks', 'width=243,height=420,'); cwin.focus();
3
12403
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 small image won't be blur? any tips or idea or technique? Thanks in Advance.
4
2683
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 url effectively limit client-side image caching to the lifetime of the session? Thanks Jake
8
2385
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: url(/Backpage/Images/pro.gif); display: inline; } Am I doing something wrong?
9
38894
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... XXXXX ---------------
3
2454
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 the top image holder (the one in the first row). I'd like to have the images appear in the large image holder just above their thumbnail set Any idea ?
0
8139
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8091
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8579
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8232
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7024
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4032
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4098
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2540
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1686
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.