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.
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.
use the IFrame tagof course ppl with "higher security settings" will have iframes blocked.Code:<iframe src="http://www.archive.org/audio/etree.php" width="350" height="200" frameborder="0" marginheight="0"></iframe>
Last edited by Vargas; 01-13-2005 at 09:09 AM.
why would the be blocked?
thats dumb
Last edited by Bowen747x; 01-14-2005 at 05:30 AM.
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...?
i guess you would have to use some javascript then. and thats over my head
thats what im asking for, the scripts...Originally Posted by Vargas
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:
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:
<script type="text/javascript" src="expand.js"></script>
4. The first code is for a link on your webpage such as "click here" to show the invisible part of the page.PHP Code:
<span style="display: none;" id="span_Miscellaneous">
{the code you want to not see until clicking teh link goes here}
[/span]
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>
Hope this is what you meant...have fun.PHP Code:
<img src="link to image file" class="button" onclick='expandit("span_Miscellaneous");updatecook("Miscellaneous");'></img>
Last edited by tesco; 02-09-2005 at 09:09 PM.
Here is an example code for a webpage:
And here you can see the finished product: http://tvg.pinecurtain.net/google/example.phpPHP 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>
Last edited by tesco; 02-09-2005 at 09:08 PM.
Bookmarks