SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 32 of 32
  1. #26
    SitePoint Wizard donboe's Avatar
    Join Date
    Jun 2010
    Location
    Netherlands
    Posts
    2,068
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That sounds like a great idea Pullo. That way other people can use something similar as well. I hope I can ask you one last question though? I have one separate page (blog) within this website outside of the system we have now. The page has the same layout but will open in a separate window when the tab is clicked. What I would like is that when you open that page is that the content pane slides open on page load! Is that possible?
    “Good artists copy, great artists steal” (Pablo Picasso - 1934)

  2. #27
    Grüße aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,890
    Mentioned
    211 Post(s)
    Tagged
    12 Thread(s)
    Good morning,

    Are you asking how to have the animation happen on page load (as opposed to the pane simply being open already)?

  3. #28
    SitePoint Wizard donboe's Avatar
    Join Date
    Jun 2010
    Location
    Netherlands
    Posts
    2,068
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That is indeed what I mean. As soon as the page is open the panel should slide open!
    “Good artists copy, great artists steal” (Pablo Picasso - 1934)

  4. #29
    Grüße aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,890
    Mentioned
    211 Post(s)
    Tagged
    12 Thread(s)
    No problemo!

    I have updated the demo: http://hibbard.eu/blog/pages/sliding...h-backgrounds/

  5. #30
    SitePoint Wizard donboe's Avatar
    Join Date
    Jun 2010
    Location
    Netherlands
    Posts
    2,068
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Works as a charm Pullo. You made me a happy person. Thanks a lot
    “Good artists copy, great artists steal” (Pablo Picasso - 1934)

  6. #31
    SitePoint Wizard donboe's Avatar
    Join Date
    Jun 2010
    Location
    Netherlands
    Posts
    2,068
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Pullo. Is there any way to avoid that the panel is sliding when you click a certain button while you are already on that page. Here is a link to the site I'm working on.

    Thank you so much in advance.
    “Good artists copy, great artists steal” (Pablo Picasso - 1934)

  7. #32
    Grüße aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,890
    Mentioned
    211 Post(s)
    Tagged
    12 Thread(s)
    Hey donboe,

    Not with your page coded as it is.
    When you click on the links, in the nav bar, the browser just follows the link and loads the page accordingly. There is no JavaScript involved in this.

    Your menu currently looks like this:

    HTML Code:
    <ul id="menu">
      <li><a href="index.cfm">Over Ons</a></li>
      <li><a href="eten_en_drinken.cfm">Eten & Drinken</a></li>
      <li><a href="agenda.cfm">Agenda</a></li>
      ...
    </ul>
    Would it be possible for you to add a class of "active" (or similar) to the anchor tag of whichever page the user finds themselves upon?

    E.g. if you were on "Over Ons", it woul look like this:

    HTML Code:
    <ul id="menu">
      <li><a href="index.cfm" class="active">Over Ons</a></li>
      <li><a href="eten_en_drinken.cfm">Eten & Drinken</a></li>
      <li><a href="agenda.cfm">Agenda</a></li>
      ...
    </ul>
    If you can do that, then a JavaScript solution, would be simple.


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
  •