Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nyroModal or other popup with image map #262

Open
jasondarnell915 opened this issue Aug 4, 2016 · 1 comment
Open

nyroModal or other popup with image map #262

jasondarnell915 opened this issue Aug 4, 2016 · 1 comment

Comments

@jasondarnell915
Copy link

I'm currently seeing if there is any way to code an image popup that has two different sections of it mapped to two different urls. The image would need to popup when the page loads. Here is what I have so far for code, any help is greatly appreciated. I commented out the section that is mapping the image since it was breaking it, the image is just a sample image and the links sample links.

<title></title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="http://www.jacklmoore.com/colorbox/jquery.colorbox.js"></script>

 <map name="location-map" id="location-map">
<script>

// $(document).ready(function() {
//if($('#location-map')) {
// $('#location-map area').each(function() {
//var id = $(this).attr('id');
// $(this).mouseover(function() {
// $('#overlay'+id).show();
//
// });

         //   $(this).mouseover(function() {
          //      $('#overlay'+id).show();
          //      
          //  });

      //  });
   // }

// });

  function openColorBox(){
    $.colorbox({iframe:true, width:"800", height:"400", href: "/images/Lighthouse.jpg"});

}

  setTimeout(openColorBox, 5000);
</script>
@jasondarnell915
Copy link
Author

jasondarnell915 commented Aug 4, 2016

code.txt

Here is the code I have so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant