Results 1 to 4 of 4

Thread: help needed

  1. #1
    Join Date
    Apr 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default help needed

    hi all,

    i'm developing a webpage.In that left side i'm having menu with links..
    in right side i'm having '<div>' area.how to display the contents in the div area for the corresponding links...

    any one give me a clear idea?

    reply soon.....

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I'm not clear what you mean.

    You want to put the same content in two places?

    I believe you can use a script on Dynamic Drive if you want to have the 'content' of a link appear in another area on the page. Take a look through the scripts available.
    Last edited by djr33; 04-25-2007 at 08:07 AM.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Apr 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hi left side i'm having menu and i want to display the contents for the links(that is i retrive the contents from the another file and display it within the same page )in the right side <div> area..
    can u get me?

  4. #4
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    Try the following code

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <style type="text/css">
    #container
    {
    width: 90%;
    margin: 10px auto;
    background-color: #fff;
    color: #333;
    border: 1px solid gray;
    line-height: 130%;
    }
    
    #top
    {
    padding: .5em;
    background-color: #ddd;
    border-bottom: 1px solid gray;
    }
    
    #top h1
    {
    padding: 0;
    margin: 0;
    }
    
    #leftnav
    {
    float: left;
    width: 160px;
    margin: 0;
    padding: 1em;
    }
    
    #rightnav
    {
    float: right;
    width: 160px;
    margin: 0;
    padding: 1em;
    }
    
    #content
    {
    margin-left: 200px;
    border-left: 1px solid gray;
    margin-right: 200px;
    border-right: 1px solid gray;
    padding: 1em;
    height:300px;
    }
    
    #footer
    {
    clear: both;
    margin: 0;
    padding: .5em;
    color: #333;
    background-color: #ddd;
    border-top: 1px solid gray;
    }
    </style>
    <script type="text/javascript">
    function clicked(url)
    {
    	document.getElementById('ifr').style.display = "block";
    	document.getElementById('ifr').src = url;
    }
    </script>
    </head>
    
    <body>
    <div id="container">
    <div id="top">
    <h1>Header</h1>
    </div>
    <div id="leftnav">
    <p>
    <a href="#" onclick="clicked('http://www.google.com');">Google</a><br />
    <a href="#" onclick="clicked('http://www.dynamicdrive.com');">Dynamic Drive</a><br />
    <a href="#" onclick="clicked('http://www.yahoo.com');">Yahoo!</a><br />
    <a href="#" onclick="clicked('http://www.phpfreaks.com');">PHPFreaks</a><br />
    <a href="#" onclick="clicked('http://www.amazon.com');">Amazon</a><br />
    </p>
    </div>
    <div id="rightnav">
    <p>
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut.
    </p>
    </div>
    <div id="content">
    <iframe src="" frameborder="0" id="ifr" width="465" height="300" style="display:none;"></iframe> 
    </div>
    <div id="footer">
    Footer
    </div>
    </div> 
    </body>
    </html>
    Click the links available in the left portion of the page the resulting page will be open in the middle portion (as it has more width than the right side in my page).

    If this is what you are looking for then it can be customized in such a way that the links will be opened in the right portion rather than the middle one

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
  •