PDA

View Full Version : Alternative Link Options?



gwillacres
01-03-2008, 08:28 PM
1) Script Title: Tabbed Document Viewer

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex3/tabdocviewer.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

ddadmin
01-03-2008, 11:15 PM
You can certainly do that. The tabs are just regular links encased in <li> tags:


<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:


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