Can someone please help me

Discussion in 'Programming' started by LexisHost, Jan 12, 2011.

  1. #1
    Can someone help me, I'm trying to create a link called "Compare all hosting plans" and once you click on that link a new window will popup comparing all packages. Just like Hostgator did if you visit the link below and click on "Compare all hosting plans" you guys will know what I'm talking about.

    http://www.hostgator.com/shared.shtml
     
    LexisHost, Jan 12, 2011 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    They are using a jQuery plugin called TinyBox

    This is the code that Hostgator use to make the box appear with the comparison page (compare.shtml).
    
    <link href="shared/css/tinybox.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" src="shared/js/tinybox.js"></script>
    
    <script type="text/javascript">
    function compare() {
    TINY.box.show('compare.shtml',1,525,600,1,0);
    return false;
    }
    </script>
    
    <div class="link"><img src="shared/img/magnifier.png" alt="Compare" /> <a href="#" onclick="compare();return false;"> Compare All Hosting Plans</a></div>
    
    Code (markup):
     
    Cash Nebula, Jan 13, 2011 IP
  3. LexisHost

    LexisHost Peon

    Messages:
    141
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, I found it.
     
    LexisHost, Jan 13, 2011 IP