Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    I’ve no idea what the dermandar.com stuff is doing. If you can launch a panoramic image by having javascript open an url, then you just need to add something like onmousedown="launchPano(event)" to your <img> tag.

    Then in the function definition of launchPano(event) the coordinates clicked in the window are available as event.clientX and event.clientY, from that your code can determine which hotspot was clicked and open the corresponding url.

    Thread Starter asteadman

    (@asteadman)

    Thanks for the feedback.

    I cannot get the panoramic image to open as a url. The dermandar.com embed code basically adds the panoramic image with a play button in the centre that when pressed launches the full screen panoramic.

    What I think I need is a Java function with the embed code then pass it a variable and run the script but with limited java knowledge I wouldn’t know how to do this. For example:

    JAVA Function:
    <div id=”dmd_pano_(variable)” style=”width: 960px; height: 150px;”></div>
    <script type=”text/javascript”>
    var dmdEmbeds = dmdEmbeds || [], variable_w=’960′, variable_h=’738′;
    (function(){ dmdEmbeds.push(‘variable‘);})();
    </script>
    <script type=”text/javascript” src=”http://static.dermandar.com/js/embed.js?v=94.84.65″></script&gt;

    Then the area map code:
    <area shape=”rect” coords=”130,35,1,53″ callFunction(variable)>

    Like you said it is hard when you do not know what their code is doing. I have asked their support team for help with this. I’m guessing that I would not require their first <div> tag as this places an image on page which I would not require.

    Moderator bcworkz

    (@bcworkz)

    The teaser image with play button seems to be a fundamental part of their scheme. Unless you can find what function call actually launches the full panorama, the location map hot spot approach seems doomed.

    However, it appears you can control the teaser image embed size. Is there a lower limit? What if you embedded really small teaser images, and absolutely located them on top of your location map where the hot spots are? I hope this wacky idea bears some fruit for you, good luck!

    Thread Starter asteadman

    (@asteadman)

    The issue there is still how to get the click on the image map to call all of that code and how to use the div tags on the image map in the area tag.

    I don’t usually but for now I will give up. In future I may write my own code to call my own panoramic images hosted on my own site.

    thanks for the feedback 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Image maps – Use JAVA script?’ is closed to new replies.