Results 1 to 3 of 3

Thread: help with Drop down/ Overlapping Content script

  1. #1
    Join Date
    Jan 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default help with Drop down/ Overlapping Content script

    1) Script Title: Drop down/ Overlapping Content script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...lapcontent.htm

    3) Describe problem:

    Is there a way I can use an image for the link and once the content is showing for that image to show another image, for example:

    • Overlapping Content not visible - image with arrow pointing down
    • Overlapping Content visible - image with arrow pointing up (so when its clicked again is hides the overlapping content)


    Simmilar to the 'Login' on the top right of this website http://www.shaadi.com

    Looking forward to a response.

    Thanks and Happy New Year to all!

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Does your page contain just one Drop Down Content which should display an arrow in such a fashion? If so it's fairly simple to modify the script to do this. Firstly, next to your anchor link, manually insert an IMG tag showing the image you want initially shown:

    Code:
    <a href="http://www.dynamicdrive.com/resources/" id="contentlink" rel="subcontent2">Additional Resources</a> <img id="dropimage" src="leftarrow.gif" />
    The image in this case must carry the ID attribute of "dropimage". Then, use the below modified .js file, and change all references of the following inside the code to your own:

    -leftarrow.gif
    -right.gif

    where the first is the image to show during the Drop Content's closed state, and the later, when it's open.
    DD Admin

  3. #3
    Join Date
    Jan 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you.

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
  •