Results 1 to 3 of 3

Thread: Setting target for Pop-It Menu

  1. #1
    Join Date
    Oct 2010
    Location
    Saint Petersburg, FL
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Setting target for Pop-It Menu

    1) Script Title: Pop-It Menu

    2) Script URL (on DD):
    Pop-It Menu - http://www.dynamicdrive.com/dynamicindex1/popit.htm
    CSS Layout - http://www.dynamicdrive.com/style/la...1-fixed-fixed/

    3) Describe problem:
    Im using the pop it menu (here at Dynamic Drive)
    with a 2 column fixed layout w/ a header and footer [Dynamic Drive: CSS Fixed Layout #2.1- (Fixed-Fixed)]


    I change the layout slightly (purple portion was added).

    <div id="contentwrapper">
    <div id="contentcolumn"; style="#ff0000; color : #ffffff; padding : 4px; width :740px; height : 398px; overflow : auto;">
    <div class="innertube
    ">
    <b>Content Column: <em>Fixed</em></b>
    </div></div>


    Problem I am having is that I cannot figure how to get my various pages to open up in the content column of my CSS. How do I target items in my menu (which I have placed in the left column of the page) to open in the content column?
    Bear in mind I am pretty much a neophite when it comes to all this...

    Thanks

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    One way to do this is first to place an IFRAME inside the content column, such as:

    Code:
    <iframe name="myframe" style="width:100%;height:400px"></iframe>
    Then for the links inside pop it menu, add a target attribute inside them to target this iframe, for example:

    Code:
    linkset[0]+='<a href="http://www.javascriptkit.com" target="myframe">JavaScript Kit</a>'
    linkset[0]+='<a href="http://www.codingforums.com" target="myframe">Coding Forums</a>'
    "
    "
    DD Admin

  3. #3
    Join Date
    Oct 2010
    Location
    Saint Petersburg, FL
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks, that worked great!
    MUCH APPRECIATED
    Last edited by BellyGrooves; 10-07-2010 at 03:14 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •