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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert I mages in a Map

Status
Not open for further replies.

luistsousa

Technical User
May 12, 2003
66
PT
Hello

I have tried with unsucess to make a script to do the follow:

I have a table in mysql with the columns name, pos_x and pos_y. Script will go to insert in the posítion (pos_x, pos_y) an image, with namee=name. I I click in a image, will go to open one link, depending on the image that will be click.
Somebody can help me?

Many Thank
Luis
 
Yes. Like a map with stations when I click execute a script.

Regards
 
I have a table like this:

NAME POS_X POS_Y
station1 34 65
station2 64 83
station3 26 61

And I have a image of a map. I want to put jpeg or gif image in the position(pos_x, pos_y), with the name down, of each station.
When I click in a station image, this will open php script, that receive the name of the station that is choice and show others datas about this.

REgards
 
I would first verify that your PHP installation supports the image manipulation functions.

Then you're going to have to create two scripts, one to generate the image, the other to generate the HTML page on which the image and its imagemap will reside.


In the image creation scripot, you're going to have to perform the various database fetches to get the workstation image information.

Then you're going to have to use imagecreatefromjpeg() ( to open the various image files.

Then use imagecopymerge() ( to place the workstation images into the map.

Then use imagejpeg() ( to output the combined image.


Then in the HTML output script you're going to have to fetch the workstation data again to be able to output the HTML image mapping tags.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top