Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

image in html

Posted on 2000-04-26
6
Medium Priority
?
156 Views
Last Modified: 2010-05-18
Hi
i want to make an html file with image in it that will be opened to the full size of the broweser
how should i do that????
something like
<img src="..." ????>
0
Comment
Question by:ntdragon
  • 3
  • 3
6 Comments
 
LVL 33

Expert Comment

by:knightEknight
ID: 2752488
Do you mean you want the image to be the size of the screen?

<HTML>
<BODY>
<SCRIPT language='javascript'>
  var w=screen.width-10;
  var h=screen.height-15;
  top.moveTo(1,1);
  top.resizeTo(w,h);
  document.writeln("<IMG src='myimage.gif' width='"+w+"' height='"+h+"'>");
</script>
</body>
</html>
0
 
LVL 33

Accepted Solution

by:
knightEknight earned 20 total points
ID: 2752506
or even better is this:

<HTML>
<BODY>
<SCRIPT language='javascript'>
  var w=screen.width-5;
  var h=screen.height-5;
  top.moveTo(1,1);
  top.resizeTo(w,h);
</script>
<IMG src='myimage.gif' width='100%' height='100%'>
</body>
</html>
0
 
LVL 8

Expert Comment

by:jbirk
ID: 2752525
Just tell it to take up 100% of width and height:
<img src="agif.gif" width="100%" height="100%" border=0>

If you are wanting to change more than just one image, it may be more complicated.  Post you current html, and I can try to come up with a plan for stretching it.
-josh
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 8

Expert Comment

by:jbirk
ID: 2752526
jbirk changed the proposed answer to a comment
0
 
LVL 8

Expert Comment

by:jbirk
ID: 2752533
Kek beat me to it again!  :)
0
 
LVL 33

Expert Comment

by:knightEknight
ID: 2752788
just barely!  :)
I don't know why I didn't think of that the first time.  I guess I was just focusing on getting the window size to match the screen size.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question