2

I'm trying to get my webpage to use the kind of color box that is demoed on this website here. http://www.jacklmoore.com/colorbox/example2/. (Outside HTML ajax Example).

In their code for this, they have:

$(".ajax").colorbox(); 

targeting:

<p> <a class='ajax' href="../content/ajax.html" title="Homer Defined"> Outside HTML (Ajax) </a> </p> 

My question is, I want the colorbox to display another page I have, when I click this Icon span on my page.

<span id="pause"> <i class="fa fa-pause"></i> </span> 

I've used on() to make it so when it's clicked it runs a function.

$("#pause").on("click", function() { game.pause(); }); 

Where as game.pause(); will create this effect, but I'm not sure how to make it happen, because I am not using a link like the examples.

2
  • 1
    Can you provide a fiddle? Commented Feb 10, 2014 at 2:08
  • Oh, sorry I would have. I figured it out and then forgot to check back here for answers :). Commented Feb 13, 2014 at 23:55

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.