PDA

View Full Version : veiwing next page within homepage



Bowen747x
01-13-2005, 07:49 AM
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.

Vargas
01-13-2005, 08:30 AM
use the IFrame tag
<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. :ph34r:

Bowen747x
01-14-2005, 05:24 AM
why would the be blocked?
thats dumb

HeavyMetalParkingLot
01-14-2005, 05:25 AM
do you like pie?

Bowen747x
01-14-2005, 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...?

Vargas
01-14-2005, 07:23 AM
i guess you would have to use some javascript then. and thats over my head

Bowen747x
01-19-2005, 11:02 PM
i guess you would have to use some javascript then. and thats over my head

thats what im asking for, the scripts...

Bowen747x
02-07-2005, 02:18 AM
anybody?

tesco
02-07-2005, 02:34 AM
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:

<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.

<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.

<a href="#" onclick='expandit("span_Miscellaneous");updatecook("Miscellaneous");'>Link Text</a>

<img src="link to image file" class="button" onclick='expandit("span_Miscellaneous");updatecook("Miscellaneous");'></img>

Hope this is what you meant...have fun. :)

tesco
02-07-2005, 02:40 AM
Here is an example code for a webpage:

<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 :)

djlove
08-27-2006, 04:52 PM
thax for telling me