Results 1 to 2 of 2

Thread: Alternative Link Options?

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

    Default Alternative Link Options?

    1) Script Title: Tabbed Document Viewer

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

    3) Describe problem:
    A. I would like to be able to remove the tab element of the viewer and
    place the links as text links in other positions in the page design, while
    still opening in the iFrame. I "accidentally" was able to do this with some
    links, but haven't been able to consistently duplicate the process.

    B. I would like to place the iFrame links on image files on the page that
    would still open into the iFrame. Such as for custom designed buttons
    or tabs.

    Thanks,
    G

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

    Default

    You can certainly do that. The tabs are just regular links encased in <li> tags:

    Code:
    <ul id="tablist">
    <li><a class="current" href="http://www.google.com" onClick="return handlelink(this)">Google</a></li>
    <li><a href="http://www.yahoo.com" onClick="return handlelink(this)">Yahoo</a></li>
    <li><a href="http://www.msn.com" onClick="return handlelink(this)">MSN</a></li>
    <li><a href="http://www.news.com" onClick="return handlelink(this)">News.com</a></li>
    <li><a href="http://www.dynamicdrive.com" onClick="return handlelink(this)">Dynamic Drive</a></li>
    </ul>
    You can extract the link portions of the above to turn them into regular looking links on the page, for example:

    Code:
    <a href="http://www.news.com" onClick="return handlelink(this)"><img src="news.gif" /></a>

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
  •