473,807 Members | 2,820 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

resizing my image and map

1 New Member
i have a image in my website that i have used with a map

i want the image to resize when the browser size changes but i want to map to still work (resize too)..

I know this is probably very basic, but can anyone help me with this?

see my webpage code below.

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <script>
  5.  
  6. /*
  7. Preload images script
  8. By JavaScript Kit (http://javascriptkit.com)
  9. Over 400+ free scripts here!
  10. */
  11.  
  12. var myimages=new Array()
  13. function preloadimages(){
  14. for (i=0;i<preloadimages.arguments.length;i++){
  15. myimages[i]=new Image()
  16. myimages[i].src=preloadimages.arguments[i]
  17. }
  18. }
  19.  
  20.  
  21. //Enter path of images to be preloaded inside parenthesis. Extend list as desired.
  22. preloadimages("http://www.discountglassllc.com/Auto.jpg","http://www.discountglassllc.com/Commercial.jpg","http://www.discountglassllc.com/heavy.jpg", "http://www.discountglassllc.com/Home.jpg", 
  23.  
  24. "http://www.discountglassllc.com/mirrors.jpg", "http://www.discountglassllc.com/Residential.jpg", "http://www.discountglassllc.com/semi.jpg")
  25.  
  26. </script>
  27. <title>Welcome to Discount Glass</title>
  28. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  29. </head>
  30.  
  31. <body><center>
  32. <img src="Home.jpg" width="800" height="936" border="0" usemap="#menu"> 
  33. <map name="menu" id="menu">
  34. <area shape="rect" coords="514,253,617,273" href="residential.html" target="_self">
  35.   <area shape="rect" coords="514,284,618,304" href="auto.html" target="_self">
  36.   <area shape="rect" coords="514,222,581,242" href="index.html" target="_self">
  37.   <area shape="rect" coords="514,253,617,273" href="#">
  38.   <area shape="rect" coords="514,315,639,338" href="commercial.html" target="_self">
  39.   <area shape="rect" coords="514,348,664,367" href="heavy.html" target="_self">
  40.   <area shape="rect" coords="514,379,664,401" href="semi.html" target="_self">
  41.   <area shape="rect" coords="514,410,664,432" href="mirrors.html" target="_self">
  42.   <area shape="rect" coords="537,460,643,499" href="mailto:teresa@discountglassllc.com">
  43.   <area shape="rect" coords="33,645,145,728" href="http://www.iga.org/" target="_blank">
  44.   <area shape="rect" coords="37,749,145,802" href="http://www.glass.org/" target="_blank">
  45.   <area shape="rect" coords="191,694,356,759" href="#">
  46.   <area shape="rect" coords="367,690,498,761" href="#">
  47.   <area shape="rect" coords="561,645,654,706" href="#">
  48.   <area shape="rect" coords="545,718,669,751" href="#">
  49.   <area shape="rect" coords="522,761,691,807" href="#">
  50. </map></center>
  51. </body>
  52. </html>
  53.  
Dec 3 '09 #1
0 1840

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2700
by: Alex Hopson | last post by:
I'm using the code below to loop through some images and resize each image twice, once to create a thumbnail and once to create a small image. The page stops loading around the 38th image out of 40+. Not always the same place but it's either 38th or 39th image, which I find strange as it's not consistent. At first I thought it was a timeout problem so I added - set_time_limit(0); and ignore_user_abort (true); to prevent it timing out,...
2
11261
by: Clyde Ellul | last post by:
Hi there. I need to write a simple program that reads a GIF image from an input stream, resizes it, then writes it back to an output stream in the same format (GIF). (JPEG input/output is good too, but GIF is preferrable). JAI can do this sort of but can't write to GIF format. Also, it looks too complicated for what I need; I'm a bit in a hurry... Is there a simple way of doing what I want? Is there a free,
10
2340
by: riki | last post by:
Hi, i have a big problem...i'm using one jscript for resizing of all of my pics in popUp...in main html i'm having many little pics and clicking on them they open in popUp and resize to larger version of the same pic. now, it works fine and sometimes when i click on little one it doesn't resize well... this is the code: main.html
5
4732
by: Jim | last post by:
I've heard that resizing images through PHP (either GD2 or ImageMagick) is a processor intensive exercise. I'm setting up a site where users will be uploading up to 10 images along with the details of their product. For each image uploaded (max 500Kb), I'll be resizing it to create a small, medium and large version after which I'll discard the original. My worry is that as the site becomes more popular, the processor time spent resizing...
1
2128
by: Ron Vecchi | last post by:
I am using asp.net to upload an image and then perform resizing on it and saving the different sizes to file. The resized images were coming up and being displayed in the bowser fine but the image sizes are a lot bigger(in file size) than the actual image being uploaded. The actual image being uploaded was around 22000bytes The smaller resized image is 120000bytes Also on the web when the resized image is displayed it starts out with a...
10
4165
by: David W. Simmonds | last post by:
I have a DataList control that has an Image control in the ItemTemplate. I would like to resize the image that goes into that control. I have a series of jpg files that are full size, full resolution (ie. large). I have a database that contains references to the pictures. Currently I have to resize the jpgs manually, and then point the ImageUrl property at that jpg using databinding. This works fine. I would like to avoid the resizing step...
6
2266
by: tomasio | last post by:
Dear NG, years have passed and I am still more designer than programmer. I build a new version of my website which has a few nasty bugs, especially on my startpage: Resizing text brakes the dotted lines which I use as visual border on the left and right edge of the page layout and thus produces an unwanted white gap above the enlarged text. Viewing the page with IE shows this behaviour even without changing the font size.
8
3693
by: berkshire | last post by:
Hi, Anyone know of a script out there that can resize images and not sacrifice image quality? I've been using phpthumb (http://phpthumb.sourceforge.net/) but when compared to an image resized in photoshop it's products are not as good (yeah I upped the image quality and tried out some filters - no luck). Tutorials or scripts online preferred are preferred, but if you know of a way to change the settings on phpthumb to maintain the...
10
7082
by: mishrarajesh44 | last post by:
hii all, I am facing a problem currently.. i have a script for image uploading and resizing.. the image uploading takes place properly for every size images.. but, the resizing works for only small sized iamages.. for eg. resizing takes place for 70 kb sized images but fails for 600kb or more.. my code is below..
14
3732
anfetienne
by: anfetienne | last post by:
hi.....i have this script (below #1) that is linked to another php file SimpleImage.php (#2) im trying to get it to work on my uploaded images but it keeps coming up errors.....i haven't altered anything except for: $image->load('picture.jpg'); $image->resize(546,403); $image->save('picture2.jpg'); I put the variables i need in there within " " instead of ' ' and i always get a error message.....am i doing something or cant...
0
9720
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
10626
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...
0
10112
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9193
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...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6879
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
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...
1
4330
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
2
3854
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.