Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Slashdot Menu: In Two Frames?

  1. #1
    Join Date
    Aug 2012
    Posts
    6
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Slashdot Menu: In Two Frames?

    1) Script Title:
    Slashdot

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamicindex1/slashdot.htm

    3) Describe problem:
    Is there a way to have the slashdot menu in two separate frames?

    Here is the example that I'm working with http://www.optimalinc.com/preview/131.html. The first section "Engineering Services" works great. However, if I try to put it into another frame "Case Studies FEA/CFD/CAE" I cannot get the same expand/collapse effect.

    Any suggestions would be greatly appreciated.

    Respectfully,
    tribangle
    Last edited by tribangle; 08-15-2012 at 01:41 AM.

  2. #2
    Join Date
    Aug 2012
    Posts
    6
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    I'm thinking something like a separate id for each menu...

    <div id="my_menu1" class="sdmenu">
    <div>

    and

    <div id="my_menu2" class="sdmenu">
    <div>

  3. #3
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    Here's a thought, you could switch the id's to classes and have the same CSS for both of them still.
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  4. The Following User Says Thank You to bernie1227 For This Useful Post:

    tribangle (08-14-2012)

  5. #4
    Join Date
    Aug 2012
    Posts
    6
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by bernie1227 View Post
    Here's a thought, you could switch the id's to classes and have the same CSS for both of them still.
    Thank you for the response. Unfortunately, I'm really green at this and am confused by the suggestion. Sorry for getting lost so soon in the chain.

  6. #5
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    Alright, so change all the id= tags to class= retaining the name inside.
    Code:
    <div id="id">
    To:
    Code:
    <div class="id">
    Then, in the CSS, when there is for example
    Code:
    #id
    Change the sharp to a dot
    Code:
    .id
    If that makes sense
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  7. The Following User Says Thank You to bernie1227 For This Useful Post:

    tribangle (08-14-2012)

  8. #6
    Join Date
    Aug 2012
    Posts
    6
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    I think I see the light.

    Code
    <div class="sdmenu1">

    <div class="sdmenu2">

    CSS
    .sdmenu1
    .sdmenu2

  9. #7
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    That's right, however the advantage of this, is that you can do it with only one CSS class, ie, only .slashdot1, and that CSS will reference both of them, you can then put the positioning inline if your so inclined.
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  10. The Following User Says Thank You to bernie1227 For This Useful Post:

    tribangle (08-14-2012)

  11. #8
    Join Date
    Aug 2012
    Posts
    6
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Bernie - Thank you so much for the advice! I will give it a small rewrite and let you know how it goes.

    I really appreciate the help. I've been having fun figuring it out, but was really stumped on this one.

    Respectfully,
    Joe

  12. #9
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    Remember, you can apply styles inline if you need individual styles.
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  13. #10
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    And if you want to close the thread, You can set the thread to resolved by editing the post, gong to advanced options and set the prefix to resolved.
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

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
  •