I have sliced my webdesign with imageready and I convert it to css. Now i have a html file (my index) and i have a css file
Now I want have something that like on a Iframe into my css file so I have to press on a link and it will appear in a box. can you help me with the code I need for the css
css
Started by deathman, Mar 22 2005 01:07 PM
3 replies to this topic
#1
Posted 22 March 2005 - 01:07 PM
#2
Posted 22 March 2005 - 02:03 PM
You cannot do this with CSS, I am sorry. PHP is a possibility. You could do something like...
Ok, shove that into where you want it in a box. The for the links do this, say you want to go home do
and it will try to open home.php because the $page variable is filled with home in the URL, say you want art page..
It will try to open art.php =).
This is the way I do it without IFrames =).
<?
if ($_GET['go'] == "true") {
include "$page.php";
} else {
include "home.php";
}
?
Ok, shove that into where you want it in a box. The for the links do this, say you want to go home do
<a href="?go=true&page=home">HOME</a>
and it will try to open home.php because the $page variable is filled with home in the URL, say you want art page..
<a href="?go=true&page=art">ART</a>
It will try to open art.php =).
This is the way I do it without IFrames =).
#3
Posted 22 March 2005 - 05:15 PM
Just a note, that can be potentially insecure since someone can manipulate that to ?go=true&page=/mysecretfiles/secret.php and it'll open that. A case and switch statement is much more secure, if the filename isn't specified in the case and switch it defaults to a default page...
#4
Posted 23 March 2005 - 09:08 AM
Yea, for my website and stuff I usually do stuff like this:
I do that to be safe, but sometimes I dont =/
if ($_GET['id'] == "home") {
include "home.php";
} elseif ($_GET['id'] == "art") {
include "art.php";
} else {
include "home.php";
}
I do that to be safe, but sometimes I dont =/
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
