View Full Version : Tabbed Document Viewer

01-04-2012, 05:37 PM
Tabbed Document Viewer (http://www.dynamicdrive.com/dynamicindex3/tabdocviewer.htm)

Just wondering if there is a code I could use that would allow me to use buttons I already have with this script rather than the tabs.

01-05-2012, 12:53 AM
You can't use that script in that way because it uses links to generate the tabs, rather than buttons.

You could create a similar script. And in fact, the iframe component of that script isn't really the hard part to code. The part that generates the tabs from the links then makes them work with the iframe is the complicated part.

All you'd need to do is make your buttons (in any way you'd like) then make an onclick event that changes the SRC of the iframe whenever you click it.

01-05-2012, 01:30 AM
You can use an image with the css code but that is one I used to make it.I suppose if you want to use a lot of css to do each button that could work but I don't have time now to do it and see.Here is the script using a image(button)

01-06-2012, 04:52 AM
I appreciate the reply for sure and the additional ideas. Im no expert coder and I dont just have to have buttons but I like the idea. I may just use it like it is or try something similar.
Thanks again.

01-06-2012, 04:55 AM
Wow thats looks pretty darn good, I have to say. Ok well I will work with this and see what I can come up with. Thanks greatly for your help.