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.
Printable View
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. :ph34r:Code:<iframe src="http://www.archive.org/audio/etree.php" width="350" height="200" frameborder="0" marginheight="0"></iframe>
why would the be blocked?
thats dumb
do you like pie?
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...Quote:
Originally Posted by Vargas
anybody?
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>
Here is an example code for a webpage:
And here you can see the finished product: http://tvg.pinecurtain.net/google/example.php :)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>