Results 1 to 2 of 2

Thread: AJAX Tabbed Using an Image Map instead of List

  1. #1
    Join Date
    Mar 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default AJAX Tabbed Using an Image Map instead of List

    1) Script Title: Ajax Tabbed Content Script

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

    3) Describe problem:
    Instead of having to use a list, is there a way to make this work with an image map, but have the same effect? In a single image, I have areas mapped out as the tabs built into the image. I want to make it so that when a user clicks on one of the image mapped areas, it will switch the content. How do I do this?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You would be better off using Dynamic Ajax Content script:

    http://www.dynamicdrive.com/dynamici...jaxcontent.htm

    as your model for how to handle this with an image map as, it is basically the same script without all the rewriting of events that occurs in the Ajax Tabs Content script. Once you switch to that model, you can just insert its href syntax directly into the area tags:

    Code:
    href="javascript:ajaxpage('test.htm', 'contentarea');"
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •