Results 1 to 2 of 2

Thread: Need help with ":: Tabbed Document Viewer"

  1. #1
    Join Date
    Jan 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need help with ":: Tabbed Document Viewer"

    1) Script Title: :: Tabbed Document Viewer

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

    3) Describe problem:

    At the bottom of the Iframe it ask if you want to open window in browser, problem is if visitor checks it it opens in same window,visitor leaves, what I need is to figure out how to have when the box is checked to open the tab in new window.

    This way I will not loose a visitor, since we are a fundraising site we can afford to upset anyone, or have them click away.

    I am not a coder and rely of sites like this for help many times.

    Any idea would be appreciated.

    Thank you,

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

    Default

    Try replacing the original script with the below version instead:

    Code:
    <script type="text/javascript">
    
    /***********************************************
    * Tabbed Document Viewer script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
    ***********************************************/
    
    var selectedtablink=""
    var tcischecked=false
    
    function handlelink(aobject){
    selectedtablink=aobject.href
    tcischecked=(document.tabcontrol && document.tabcontrol.tabcheck.checked)? true : false
    if (document.getElementById && !tcischecked){
    var tabobj=document.getElementById("tablist")
    var tabobjlinks=tabobj.getElementsByTagName("A")
    for (i=0; i<tabobjlinks.length; i++)
    tabobjlinks[i].className=""
    aobject.className="current"
    document.getElementById("tabiframe").src=selectedtablink
    return false
    }
    else{
    window.open(selectedtablink)
    return false
    }
    }
    
    function handleview(){
    }
    
    </script>
    Everything else can stay the same.
    DD Admin

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
  •