Results 1 to 3 of 3

Thread: Drop Down Document Viewer II Border

  1. #1
    Join Date
    Apr 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Drop Down Document Viewer II Border

    Drop Down Document Viewer II

    http://www.dynamicdrive.com/dynamici...pdownview2.htm

    I would like to remove the border in the scrolled viewing area so that it blends into the current page (so it just shows the scroll bar, but no visible box boundry). Any ideas on how to do this? I tried setting the border to none and 0 on the iframe code line, but it didn't seem to affect anything.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    You've tried this already?:
    Code:
    <!--CHANGE LINKS BELOW TO YOUR OWN-->
    <a href="javascript:jumpto('http://www.cnn.com')">CNN.com</a> | 
    <a href="javascript:jumpto('http://www.msnbc.com')">MSNBC</a> | 
    <a href="javascript:jumpto('http://www.abcnews.com')">ABC News</a> | 
    <a href="javascript:jumpto('http://news.bbc.co.uk')">BBC UK News</a>
    
    <script language="javascript">
    <!--
    
    //Drop-down Document Viewer II- © Dynamic Drive (www.dynamicdrive.com)
    //For full source code, 100's more DHTML scripts, and TOS,
    //visit http://www.dynamicdrive.com
    
    //Specify display mode (0 or 1)
    //0 causes document to be displayed in an inline frame, while 1 in a new browser window
    var displaymode=0
    //if displaymode=0, configure inline frame attributes (ie: dimensions, intial document shown
    var iframecode='<iframe id="external" style="width:95%;height:400px;border:0px;" src="http://www.yahoo.com"></iframe>'
    
    /////NO NEED TO EDIT BELOW HERE////////////
    
    if (displaymode==0)
    document.write(iframecode)
    
    function jumpto(inputurl){
    if (document.getElementById&&displaymode==0)
    document.getElementById("external").src=inputurl
    else if (document.all&&displaymode==0)
    document.all.external.src=inputurl
    else{
    if (!window.win2||win2.closed)
    win2=window.open(inputurl)
    //else if win2 already exists
    else{
    win2.location=inputurl
    win2.focus()
    }
    }
    }
    //-->
    </script>
    Jeremy | jfein.net

  3. #3
    Join Date
    Apr 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes, I have. The border still shows up. Any other ideas?

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
  •