Results 1 to 2 of 2

Thread: Tab Content href significance

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

    Default Tab Content href significance

    Hi all.. can someone please explain the significance of the href in the Tabbed Content script...
    http://www.dynamicdrive.com/dynamici...tabcontent.htm

    For each tab you need to have a line similar to this:
    <li><a href="new.htm" onClick="return expandcontent('sc2', this)" theme="#EAEAFF">What's New</a></li>

    Does that mean there has to be a file called new.htm in the root directory, and if so what should it contain seeing as the actual content is on the page with the above line.

    My implementation of it keeps giving me 404 errors saying the file does not exist... even if I do have an empty htm file in the directory.

    It's driving me nuts...

  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

    That URL should never be retrieved if the script is set up correctly and javascript/activeX is enabled in the browser. However, a good idea is to have a page called new.htm or whatever (if you use a different name, change the name used in the markup) that has the same information on it, for non-javascript enabled browsers.
    - 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
  •