jquery-balloons

All,

 I am using  jquery-balloons and  having trouble hiding the balloons onpage load .  Everything else seems to be working fine.  Thanks in advance .
<head>
   <script src="https://urin.github.io/jquery.balloon.js/js/jquery-1.10.1.min.js"></script>
    <script src="https://urin.github.io/jquery.balloon.js/js/jquery.tile.js"></script>
    <script src="https://urin.github.io/jquery.balloon.js/js/jquery.balloon.js"></script>
<script>
$(function() {
  $('#tdr').showBalloon({ ... }).toggle(
    function(){ $(this).hideBalloon(); },
    function(){ $(this).showBalloon(); }
  );
  });
</script>
</head>

<body>
  <script>
      
  $(function() {
        var shown = true;                        
        $("#tdr > img").on("mouseover", function() {            
          shown ? $(this).hideBalloon() : $(this).showBalloon();
          shown = !shown;      
        })
            .showBalloon({
          position: "right",
          offsetX: 50,
          offsetY: 50,
          tipSize: 20,
          css: {
            maxWidth: "40em",
            fontSize: "90%",
            backgroundColor: "#efefef"
          }
        });            
      });
  </script>
 <div id="tdr">
      <img src="img/questionmark.png" id="tdr" class="sample8-2"  title="Based on rolling 30 day TDR %<br />A - Performing above TDR Goal<br/> B - Performing at TDR Goal<br/>C -Performing below TDR Goal" /></div>
</body>
UpperdeckerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

skijCommented:
Try this:
<!doctype html>
<html lang="en">
<head>
   <script type="text/javascript" src="https://urin.github.io/jquery.balloon.js/js/jquery-1.10.1.min.js"></script>
   <script type="text/javascript" src="https://urin.github.io/jquery.balloon.js/js/jquery.tile.js"></script>
   <script type="text/javascript" src="https://urin.github.io/jquery.balloon.js/js/jquery.balloon.js"></script>
</head>
<body>
  <script type="text/javascript" >
  $(function() {
        $("#tdr > img").hover(
          function() {
           $(this).showBalloon({
             position: "right",
             offsetX: 50,
             offsetY: 50,
             tipSize: 20,
             css: {
               maxWidth: "40em",
               fontSize: "90%",
               backgroundColor: "#efefef"
             }
           });    
          }, function() {
            $(this).hideBalloon(); 
          }
        );
      });
  </script>
 <div id="tdr">
      <img src="img/questionmark.png" id="tdr" class="sample8-2"  alt="Based on rolling 30 day Goal" title="Based on rolling 30 day Goal" />
 </div>
</body>
</html>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
UpperdeckerAuthor Commented:
Works great! thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
jQuery

From novice to tech pro — start learning today.