Results 1 to 4 of 4

Thread: How to display hidden Div anywhere on the page

  1. #1
    Join Date
    Apr 2009
    Posts
    51

    How to display hidden Div anywhere on the page

    I am trying to create a button which makes a div appear when clicked and disappear when clicked again.... then appear, then disappear. I am trying to add an animated .gif (repeating loading image) inside an initially hidden div below the "Add to cart" button. I would then require the div to load once the user clicks on the "add to cart" button. I have converted this script into a drop down menu so the hidden div is the second level of the menu and is floating above the rest of the content. Can anyone please show me how to go about modifying the script so that the hidden div is hidden again.

  2. #2
    Join Date
    Dec 2008
    Posts
    202

    Re: How to display hidden Div anywhere on the page

    If you look in that function, it only says to set the display property of the div with the id of radiobuttons to a value of 'none' and only if it is already set to nothing. There are many situations encountered when designing a webpage where showing and hiding a div using a link is useful. For example, if you were making a blog you might want to have a form at the bottom of each entry that allows users to add a comment to your blog entry.

  3. #3
    Join Date
    Jan 2009
    Posts
    143

    Re: How to display hidden Div anywhere on the page

    The nope box should not do anything to div id but as soon as one at leat of the 3 yep boxes is checked then the div id gets hidden. Stylesheet CSS properties are separate from inline CSS, from a scripting point of view, and cannot be read directly from an element's style object. The user can also click on the "Cancel" button to collapse or hide the div again because I added an onclick to the reset input button that toggles the div's visibility again.

  4. #4
    Join Date
    Feb 2009
    Posts
    105

    Re: How to display hidden Div anywhere on the page

    I stumbled on your post while I was looking for something else and thought I'd give you an example that you could apply to your situation in case you are still looking for a solution. Hope this helps you or someone else that is looking for it.
    If you look in that function, it only says to set the display property of the div with the id of radiobuttons to a value of 'none' and only if it is already set to nothing.

Similar Threads

  1. How to display a php page for test
    By KAMANA in forum Software Development
    Replies: 4
    Last Post: 30-10-2009, 06:48 PM
  2. How to display a URL of a page in PHP?
    By Y2kCyK in forum Software Development
    Replies: 3
    Last Post: 04-07-2009, 06:20 PM
  3. IE 7 cannot display the web page
    By JoClarke in forum Technology & Internet
    Replies: 2
    Last Post: 22-01-2009, 11:17 AM
  4. Replies: 1
    Last Post: 07-11-2008, 11:21 PM
  5. IE7 cannot display the web page
    By Paul in forum Windows XP Support
    Replies: 2
    Last Post: 28-01-2008, 07:17 AM

Tags for this Thread

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
  •  
Page generated in 1,713,486,239.71253 seconds with 16 queries