Need help with interactive divs

Discussion in 'CSS' started by Zohia, Apr 13, 2006.

  1. #1
    This is a bit tricky but I'd really like to find a way to get round it.

    Imagine a cell table with another layout table inside, this one with only two cells displayed in columns.
    I'd like to have a div inside each of these last two cells/columns, so that links to the left div would load different texts inside the right div.

    They have something like it here:
    http://www.dyn-web.com/dhtml/scroll/scroll-rel.html

    I've tried using it but came up with this:
    http://adopteumporquinho.tripod.com/divs/adoptados.htm

    It works offline on my computer, I'm not sure if it doesn't work online due to license issues.

    The difference between what I have and what I want is the third column. I know how to put a scroll bar inside div 2 (at column 2), and don't need the third column with that nifty scrollbar.

    Any ways to get round this or do it another way?

    Sorry if it was a bit confusing, do let me know if you need further detail!

    Thanks in advance,
    Joana
     
    Zohia, Apr 13, 2006 IP
  2. Slapyo

    Slapyo Well-Known Member

    Messages:
    266
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #2
    My guess would be to create your list of links, they would fire off a javascript, that will get passed an arguement so it knows what to load, that would change the innerhtml of the <div> you wanted the text in.
     
    Slapyo, Apr 13, 2006 IP