Marking an area on a picture by choosing at a selection list

Hello,
I was wondering if it is possible to mark a picture dynamic:
I have already a map and some COORDS - if you click on the shape, it links to another page:
<area shape="rect" coords="143,139,149,148" href="f?p=&APP_ID.:44:&SESSION.::::P44_FILE:20" alt="T 19">
Now I have a lot of this COORDS and it is very difficult to find them on the map. What I want to make is a select list or sth. like this, to choose the name of the area you want to find and it marks you this on the map with a cross.
Has anybody an idea how this could work or how this could be done??
Thank you soooo much,
LISA

Hi Lisa,
This may work (I don't have the stuff you have to set this up to test it!):
1 - Create a javascript array on your page, something like:
&lt;script type="text/javascript"&gt;
var crosses = new Array (
new Array(0, 123, 345, "f?p=&APP_ID.:44:&SESSION.::::P44_FILE:1"),
new Array(1, 234, 567, "f?p=&APP_ID.:44:&SESSION.::::P44_FILE:2"),
etc
&lt;/script&gt;This contains an ID (which would match the values on your select list), the top and left pixels where you want the cross to appear within the map area and the href value for the link
2 - On your page, create an A tag with an ID of "CROSS" and a style attribute of "display:none". The text between the opening and closing A tags would be your X
3 - Create a javascript function that can be called by your select list (your select list's definition should include an attribute of onclick="javascript:setCross();" to call it). The javascript function will then check the value of the select list (using $x('P1_LIST').value), find it in the crosses array, get the corresponding values and then set the position of the A tag and display it. Something like:
&lt;script type="text/javascript"&gt;
function setCross()
var sel = $x('P1_LIST').value;
var t = crosses[sel][1]; // the top
var l = crosses[sel][2]; // the left
var h = crosses[sel][3]; // the href
var a = $x('CROSS');
var m = $x('MAP_ID');
a.style.position = "absolute";
a.style.zIndex = 99;
a.style.top = m.clientTop + t;
a.style.left = m.clientLeft + l;
a.href = h;
a.style.display = "block";
&lt;/script&gt;The theory is that you can position a tag anywhere on the page using left and top settings - but you need to position within the map area, so you have to get its top and left as well. As the A tag would sit over your map, the user can no longer click on the map to trigger the link - the A tag, therefore, needs to have the link as well.
You may have to tweak/play with this to get it to work on your page. This is all theory, of course, but I think it should work ok.
Andy

Similar Messages

  • When I attempt to open iphoto, I get the loading icon in the working space/picture area.  If I try to reinstall ilife '11, will I lose any pictures?  Where, on the hard drive, are all my pictures actually stored?

    When I attempt to open iphoto, I get the loading icon in the working space/picture area.  If I try to reinstall ilife '11, will I lose any pictures?  Where, on the hard drive, are all my pictures actually stored?

    You won't lose anything because you have a back up, right?
    Most Simple Back Up
    Drag the iPhoto Library from your Pictures Folder to another Disk. This will make a copy on that disk.
    Slightly more complex:
    Use an app that will do incremental back ups. This is a very good way to work. The first time you run the back up the app will make a complete copy of the Library. Thereafter it will update the back up with the changes you have made. That makes subsequent back ups much faster. Many of these apps also have scheduling capabilities: So set it up and it will do the back up automatically. Examples of such apps: Chronosync or DejaVu . But are many others. Search on MacUpdate
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • My iphone 4G has 1165 photos and NONE of them can be seen in the DCIM. None of my videos either. The folder is empty. Where the heck are all my pictures?

    With my old 3GS I could connect the phone and navigate to a folder that contained all my pictures and copy them off or view them. Now with my iphone 4G, I connect the phone, navigate to the DCIM folder and it's empty! WTH? Where are all my pictures? I hate having to use itunes because it's performamce is beyond terrible. It takes several minutes to even start and when I click on anything in itunes and I have to wait 20 seconds or more before it responds, then I can click on the next thing wait 20 seconds or more, and so on. Every other application I have is ripping fast. It's horrible. Is apple deliberately making this a giant pain!? Where are all my pictures and video?

    The DCIM folder is for your Camera Roll.  The pics synced from iTunes will not show up there, only pics taken with the iPhone.

  • Hi there, I pay for extra iCloud space online. However I cannot seem to find any of my photos or account? As my iPod/iPhone only hold 1000 pictures, where are the previous pictures? And how can I access them?

    Hi there, I pay for extra iCloud space online. However I cannot seem to find any of my photos or account? As my iPod/iPhone only hold 1000 pictures, where are the previous pictures? And how can I access them?

    You cannot use iCloud Storage to suppliment your iPad. They are mainly used to backup iPad.
    Free up space on iPad
    Settings>General>Usage>Storage>Delete what is not needed to free up space on iPad.

  • Why do i have a question mark instead of the app picture. It wont let me use the app either.

    Why do i have a question mark instead of the app picture. It wont let me use the app either.

    Where is your Calculator application located? Before you can put it into the Dock you need to remove the Question Mark. Select it with the mouse and drag it out of the until it "poofs" away. Now locate Calculator and drag its icon into the Dock.

  • CS5.5 - Go to previous or next visible item in time ruler (keyframe, marker, work area beginning or

    The
    Go to previous or next visible item in time ruler (keyframe, marker, work area beginning or end)
    J & K
    Does not work at all here.
    Perhaps I am misunderstanding the nature of this feature but from reading the text in the manual I would come to expect
    that hitting i.e. J&K - would go the next visible item in the ruler be that a Keyframe or Marker etc... However, when I hit K timeline takes me to the end of the composition and J to the beginning. And I have a lot of markers set.
    Any Ideas
    Thanks

    It works on layer markers and keyframes, but not comp markers. Furthermore, it will also not work, if index items have been scrolled out of view or are shy even if the property streams and their keyframes are otherwise visible. This has never been any different, but it's quite annoying.
    Mylenium

  • HT201302 When I am trying to import pictures from my iphone to PC, I get the message'No new pictures of videos were found on this device'. There are lots of pictures which i can see on the iphone. I have a 4S. Is there a way to get around that?

    When I am trying to import pictures from my iphone to PC, I get the message'No new pictures of videos were found on this device'. There are lots of pictures which i can see on the iphone. I have a 4S. Is there a way to get around that?

    It sounds like you are using an application to import. You can do it manually.
    Start > Computer (on the right) > scroll to the bottom and you will see your iPhone under Portable Devices > Open it and you will see a Drive, open that and there will be a DCIM folder. That is where your photos will be (There may be other folders each holding photos).

  • Are all the pictures in Events in the master photos?  Are they duplicates?

    Are all the pictures in Events in the master photos?  Are they duplicates? I need to clean up my events list.

    Here's how iPhoto works.
    Every Photo is in the Library. There are two ways of looking at the Library: Events View and Photos view. There is no duplication here. These are just two doors into the same room, as it were, two ways of showing you the exact same data.
    The Library contains your Master photos.
    Everything else: Albums, Smart Albums, Folders, Slideshows etc simply reference items in the Library. Again there is no duplication, just the same data viewed in different ways. So the photo you see in an Album is the same photo that's in the Event or Photos view of the Library.
    This is like iTunes. Every track is in the Library, each playlist just contains a link to the track.
    To delete from iPhoto: Drag the items from the Library (either Events or Photos View, doesn't matter) to the iPhoto Trash. Empty it, then empty the System Trash.

  • My albums show 342 pictures (80 hidden)  What does this mean and where are the other pictures?

    Iphoto album shows 342 pictures (80 hidden) in upper rt hand corner?  Where are the hidden pictures? and how add them back into the album?

    in iPhoto view menu ==> Click on Hidden
    LN

  • The color of my screen is wrong.  All the blues are bronze and pictures look they are in negative form.

    I was wondering if anyone can help me.  Like I said I got on the computer yesterday and the color is all wrong.  Darks are light and lights are dark.  Pictures of people for example seem to be in a negative form like the old cameras before the film was developed.

    there are two solutions to this: the first (longer one) is if you open up System Preferences, go to Universal Access, and turn display from 'White on Black' to 'Black on White'.
    the easy way to do it is just press control + option + command (the three buttons to the left of the spacebar) and the number 8 all at the same time.

  • I have a problem. I updatet to 5.0 and then Itunes can not find the phone and on the screen on the phone there are only a picture of an usb cabel and a logo for Itunes.

    After updating Itunes can not find the phone and on the phone screen there are only a picture of an USBcabel and a Itunes logo. What can I do???

    Try this previous correctly answered discussion
    https://discussions.apple.com/message/11029862#11029862

  • Clickable areas on a picture (map) ?

    Hi,
    I have a map of a country on the left and a panel on the right.
    I want to make the cities on the map clickable so that when a user clicks on one of them, the details of the city is displayed on the right panel.
    1) How do i render certain areas of a picture (map) clickable ?
    2) what about the interaction with the right panel ? how do i do that ?
    Thanks for helping, i am a beginner.

    From a very high-level, a solution could be:
    Start with a Canvas control for your map.  We want this because a Canvas supports absolute positioning.
    Set the map image to be the Canvas background: canvas.setStyle( "backgroundImage", urlToImage );
    Use a Canvas for each clickable map city using cooridates (x,y) for absolute positioning over each city.
    Set the data of each canvas-city to be the city name or some other identifier.
    When you click on a canvas set an application variable of the city name/identifier using a "click" event listener.
    Bind the right panel's display to the "current city" application variable.
    Is that what you were looking for?

  • Making a new preset after adjustments i've make no check mark boxes are checked

    I'm on Lightroom 4.3
    OSX 10.6.8
    When ever I make a photo adjustment and want to save it as a preset all the check mark boxes aren't there I have to manually check the boxes I want saved. I have the adjustment switch on when I click new preset. It use to have the adjustments I've made already checked. This is for my friend. When I use lightroom and save a preset the check mark boxes are there. Any Suggestions? Thanks

    Do you see the two buttons at the bottom of the dialog box <Check all> and <Check None> ?

  • I updated my iphone to ios 7.1.1 and after that my contact photo when i call or call others to me is a small cycle of that picture i choose ... How can i make a big picture when i call my contant and when others call me ?

    I updated my iphone to ios 7.1.1 and after that my contact photo when i call or call others to me is a small cycle of that picture i choose ... How can i make a big picture when i call my contant and when others call me ?

    It's not clear why Apple made this change; speculation (which is not really allowed in these forums) is that it was done to protect the privacy of the caller.

  • I downloaded Vtok to my new iTouch but half my contacts are random letters and numbers and there are no profile pictures.  I tried reinstalling the app but the same thing happened.  Any suggestions?

    I downloaded Vtok to my new iPod touch but half the contacts came up as random letters and numbers and there are no profile pictures.  I tried reinstalling the app but the same thing happened.  Any suggestions?

    Go to the developer's support site.
    iOS: Troubleshooting applications purchased from the App Store

Maybe you are looking for

  • Defining provisioning in Shared Serv ices to use XMLA

    Hello everybody: I have managed to connect Reporting Services SSRS 2008 R2 with Essbase 11.1.1.2 using XMLA with APS. I have used the administrator user. But when I try to connect to Essbase (creating a new connection) with another user, it doesn't w

  • How to made plugin using flex3 application

    Hi   All, I am working on transitiom plug-in for  premiere pro cs3 ,using  premiere pro cs3 SDK. now i am developing plugins by using adobe flex3 ,application name is transition viewer in which when click on thumbnail play the transition on  the text

  • How do I wrap a path around a part of another path?

    I want to weave a line (using a brush that looks like a chain) around another path but I don't know how to move just portions of the line below the path while keeping other portions above it.

  • Number of Distributions

    I'm starting to roll out ZSM 7.01 HP4 and have almost all my apps tested and tweaked and sent to my first site, locally of course. I currently have three distributions based on functions, "Images", "MSI", "nonMSI". A concern I have is each of these d

  • When trying to download update 7.0.1 it just keeps spinning.

    The update never completes downloading