SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2006
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    show or hide dynamic content

    ok I have this flash slide show that I always want to show. but if there is say 2 slideshows for the dynamic page one flash and one java then I would like to have a button that toggles between the two. MY php will check if there are two slideshows and code the page accordingly. ie it will create 2 divs each with its own content. IF there is only one then it will only create the one div. It works fine with one but I am kinda stumped at how I should approach having 2. I was looking into ajax for this as it just might be the way to go. If anybody has a simple suggestion please let me know. I have seen some tutorials using javascript and css but I havent got any to work with my dynamic content.
    thanks

  2. #2
    SitePoint Zealot backtobasics's Avatar
    Join Date
    Aug 2006
    Posts
    196
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP isn't what you need to switching between content.

    You are better off looking for some JavaScript to help you, there are loads of snippets out there that can help you achieve what you are looking for.


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
  •