need some html work done.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fucksakes
    Shit... Fuck! What the Hell?
    • Dec 2003
    • 7567

    #1

    need some html work done.

    I am trying to make a "more info" link open up a table under a set of cells of a toplist that will show more info of a site. I seen pimproll do this in the members area but couldn't break the code up and make it work myself
  • potter
    Confirmed User
    • Dec 2004
    • 6559

    #2
    Would something as simple as this work?

    Code:
    <a href="#" onclick="document.getElementById(infodiv).style.display = 'block';return false;" title="">more info</a>
    
    <div id="infodiv" style="display: none;">stuff</div>

    Comment

    • Fucksakes
      Shit... Fuck! What the Hell?
      • Dec 2003
      • 7567

      #3
      possibly.. will test it in a sec.. thanks

      Comment

      • potter
        Confirmed User
        • Dec 2004
        • 6559

        #4
        oops, sorry - forgot quotes around the id. should be

        Code:
        <a href="#" onclick="document.getElementById('infodiv').style.display = 'block';return false;" title="">more info</a>
        
        <div id="infodiv" style="display: none;">stuff</div>

        Comment

        • Fucksakes
          Shit... Fuck! What the Hell?
          • Dec 2003
          • 7567

          #5
          almost.. now here is where i get picky..

          I need it the open link to turn into a close link.

          also possibly something less dramatic when opening.. more like sliding open.. like a garage door coming down. but this will be a table opening the detail.. and click the link again.. and it closes.

          Comment

          Working...