Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

guys i need to know..

Status
Not open for further replies.

coldfused

Technical User
Jan 27, 2001
2,442
US
guys i need to know if there is anything i can do to this code to make the imagemap scale with the browser window?

<HTML>
<HEAD>
<TITLE>promaintenance4u.com</TITLE>
</HEAD>
<BODY bgcolor=&quot;#DCDADB&quot; BODY MARGINWIDTH=&quot;0&quot; MARGINHEIGHT=&quot;0&quot; LEFTMARGIN=&quot;0&quot; RIGHTMARGIN=&quot;0&quot; TOPMARGIN=&quot;0&quot; BOTTOMMARGIN=&quot;0&quot; SCROLL=&quot;NO&quot;>
<center>
<br>
<map name=&quot;FPMap0&quot;>
<area href=&quot; shape=&quot;rect&quot; coords=&quot;41, 175, 293, 190&quot;>
<area href=&quot; shape=&quot;rect&quot; coords=&quot;62, 197, 160, 210&quot;></map><img border=&quot;0&quot; src=&quot; usemap=&quot;#FPMap0&quot; width=&quot;840&quot; height=&quot;588&quot;>


</BODY>
</HTML>

it basically just a get flash page...need it to scale exact fit in the browser window..

thanks in advance!!


if ya wana have a look..
e.gif


carlsatterwhite@endangeredgraphics.com
 
I think what you are asking is how to have the image always in the middle for example???

You would put everything in a table set to 100%. Although the table will still remain the same size as the image, it wouldn't get smaller than the size of the image.

You could use the <div></div> tag and set the align=center to center all the code in the tag.

Something tells me you already know this though and are really asking something else! :cool:

Hope it helps anyway!

 
where would i place the div tags in the code..and if i do this will it allow the pic to scale with the browser? you say it will stay the same size does that mean when the window is scaled that the pic will crop instead of scale?
e.gif


carlsatterwhite@endangeredgraphics.com
 
Put the div tag around any code you want included in the center.

The picture will not resize, only the window. However, if the window is at least as big as the image the image will stay centered or left or wherever

The image will stay centered the widow will just close around it (cut the edges off as it gets smaller)

 
This is easy to do with css, but it won't work in NN4.x...
Code:
<html>
<head>
<style type=&quot;text/css&quot;>
body {
margin: 0px 0px;
}
.fullsize {
height: 99%;
width: 100%;
}
</style>
</head>
<body>
<img class=&quot;fullsize&quot; src=&quot;yourimage.gif&quot; />
</body>
</html>

The only problem is that your image map probably won't work when the image is resized...
 
dangit man..i can't beleive there is no darn way to get this to scale and continue to work..would you guys have any other ways of getting this to work..can i just use the pic and have the textlinks written in html?.can i use some java?.
what do i need to do?.

here is the link..
it is just a get flash page..any other suggestions or alternative route to take?
e.gif


carlsatterwhite@endangeredgraphics.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top