Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: veiwing next page within homepage

  1. #1
    Bowen747x's Avatar Poster
    Join Date
    Mar 2003
    Location
    New York
    Age
    37
    Posts
    607
    i was wondering how i can make a window inside my homepage, that when you click a link, that page will be loaded inside the window, and you remain at the homepage.

  2. Internet, Programming and Graphics   -   #2
    Vargas's Avatar gone fishin'
    Join Date
    Jul 2003
    Location
    the poopdeck
    Posts
    1,878
    use the IFrame tag
    Code:
    <iframe src="http://www.archive.org/audio/etree.php" width="350" height="200" frameborder="0" marginheight="0"></iframe>
    of course ppl with "higher security settings" will have iframes blocked.
    Last edited by Vargas; 01-13-2005 at 09:09 AM.

  3. Internet, Programming and Graphics   -   #3
    Bowen747x's Avatar Poster
    Join Date
    Mar 2003
    Location
    New York
    Age
    37
    Posts
    607
    why would the be blocked?
    thats dumb
    Last edited by Bowen747x; 01-14-2005 at 05:30 AM.

  4. Internet, Programming and Graphics   -   #4
    HeavyMetalParkingLot's Avatar Poster
    Join Date
    Jun 2003
    Location
    Manhattan
    Posts
    1,810
    do you like pie?

  5. Internet, Programming and Graphics   -   #5
    Bowen747x's Avatar Poster
    Join Date
    Mar 2003
    Location
    New York
    Age
    37
    Posts
    607
    that code coesnt do much for me, i can post any website i want in that window, yes, but what i want is so that when you click one of my links, it opens the new page in that window.

    and yes i like pie...?

  6. Internet, Programming and Graphics   -   #6
    Vargas's Avatar gone fishin'
    Join Date
    Jul 2003
    Location
    the poopdeck
    Posts
    1,878
    i guess you would have to use some javascript then. and thats over my head

  7. Internet, Programming and Graphics   -   #7
    Bowen747x's Avatar Poster
    Join Date
    Mar 2003
    Location
    New York
    Age
    37
    Posts
    607
    Quote Originally Posted by Vargas
    i guess you would have to use some javascript then. and thats over my head
    thats what im asking for, the scripts...

  8. Internet, Programming and Graphics   -   #8
    Bowen747x's Avatar Poster
    Join Date
    Mar 2003
    Location
    New York
    Age
    37
    Posts
    607
    anybody?

  9. Internet, Programming and Graphics   -   #9
    tesco's Avatar woowoo
    Join Date
    Aug 2003
    Location
    Canadia
    Posts
    21,669
    here this should do what you want.

    1. download this: http://tvg.pinecurtain.net/google/expand.js (you will probably have to right click>save target as) to the folder with the rest of your website.

    2. Add teh following code to the <head> of your webpage:
    PHP Code:
    <script type="text/javascript" src="expand.js"></script> 
    3. in your webpage put this code around the part of teh page you want to be "invisible" until you click the link.
    PHP Code:
    <span style="display: none;" id="span_Miscellaneous">
    {
    the code you want to not see until clicking teh link goes here}
    [/
    span
    4. The first code is for a link on your webpage such as "click here" to show the invisible part of the page.
    The second code is for a clickable image to make the invisible part be displayed.
    PHP Code:
    <a href="#" onclick='expandit("span_Miscellaneous");updatecook("Miscellaneous");'>Link Text</a
    PHP Code:
    <img src="link to image file" class="button" onclick='expandit("span_Miscellaneous");updatecook("Miscellaneous");'></img
    Hope this is what you meant...have fun.
    Last edited by tesco; 02-09-2005 at 09:09 PM.

  10. Internet, Programming and Graphics   -   #10
    tesco's Avatar woowoo
    Join Date
    Aug 2003
    Location
    Canadia
    Posts
    21,669
    Here is an example code for a webpage:
    PHP Code:
    <html>
        <head>
            <script type="text/javascript" src="expand.js"></script>
        </head>
        <body>
            <a href="#" onclick='expandit("span_Miscellaneous");updatecook("Miscellaneous");'>Click to view page!</a>
        
            <span style="display: none;" id="span_Miscellaneous">
                <?php include ('http://filesharingtalk.com/vb3/showthread.php?p=992582#post992582'?>
            </span>
        </body>
    </html>
    And here you can see the finished product: http://tvg.pinecurtain.net/google/example.php
    Last edited by tesco; 02-09-2005 at 09:08 PM.

Page 1 of 2 12 LastLast

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
  •