MOst websites are designed in XHTML and Frames and stuff. We all know its not possible to hide the source code, because the browser looks at the code to display the items needed to be displayed. Suppose I want to make a website with the source code hidden. I could code it in flash, but thats time-consuming. Is there is a way to do it using frames? Like on the frameset page it would be
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>XHTML frame TAG</title>
<base _targer="main">
</head>
<frameset cols="50%, 50%">
<noframes>
To be viewed properly, this page requires frames.
</noframes>
<frameset rows="33%, 33%, *">
<frame src="banner.html" name="banner"/>
<frame src="Nav.html" name="nav" />
<frame src="main.html" name="main"/>
</frameset>
</frameset>
</html>
My question. What tag can be added to the frameset page that would deny access to view main.html outside of the frame? Simply:I want main.html to displayed only when I click the link on the nav.html page and not when I try to access the actual url? Is there a tag?
yeah, i don't know anything about making websites...
Quote from: razer84 on June 02, 2008, 03:35:15 AMyeah, i don't know anything about making websites...
...Then why post here in the first place if you can't help? :-\
Number of posts
woah! Parker's avatar moves!
or..am I just seeing things?
you never noticed that it moves?
Yes it moves, and no, you are NOT drunk.
HOLY CRAP! I've never noticed it ether, does that make me an idiot? :P
Guys! guys! guys! Quit being amazed about my uber-cool animated avatar that I stole from wikipedia and lets get back on topic.
Make the entire page in PHP...This is what I mean:
<?php
// All your variables and operators go here...
$pageContents = <<< EOPAGE
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>XHTML frame TAG</title>
<base _targer="main">
</head>
<frameset cols="50%, 50%">
<noframes>
To be viewed properly, this page requires frames.
</noframes>
<frameset rows="33%, 33%, *">
<frame src="banner.html" name="banner"/>
<frame src="Nav.html" name="nav" />
<frame src="main.html" name="main"/>
</frameset>
</frameset>
</html>
EOPAGE;
echo $pageContents;
?>
By the way...very poor HTML...