SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Apr 2012
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    dynamically add content

    I am rebuilding my website it has 2 columns, currently the left column has my nav menu. I have changed that to a horizontal drop down. what I would like to do is when a link is clicked it would add images/content to the left column of the page that was clicked. Basically a you may want this also. I am new to jquery but based on searchs that is what i need to use. Also can it run a if or switch because each page would be different.

    Thank you

  2. #2
    SitePoint Wizard webcosmo's Avatar
    Join Date
    Oct 2007
    Location
    Boston, MA
    Posts
    1,436
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Have a div or something with id for the image place holder on the left column.

    Build a function for the nav cliks. Pass a variable to the function, which will identify which one is clicked.
    Using jQuery set the image based on passed variable.

  3. #3
    SitePoint Member
    Join Date
    Apr 2012
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can this be done with one variable or will I need one for each link?


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
  •