|
drunkenfool
|
posted on 25th Nov 05 at 19:42 |
quote: Originally posted by drax
Mate, how about you dont use frames and use php, or if you cant use php at least use Iframes
ill sort you out that..
*matts mate matt*
yep.:) actually i have no idea what iframes is but you should read up on div tags.
[Edited on 25-11-2005 by drunkenfool]
|
drax
|
posted on 23rd Nov 05 at 17:04 |
My way is alot less code and neater btw
|
drax
|
posted on 23rd Nov 05 at 17:04 |
<HTML>
<HEAD>
</HEAD>
<table width="100%" border="0" align="center">
<tr>
<td align="center">
woobnly image
</td>
</tr>
</table>
<table width="100%" border="0" align="center">
<tr>
<td align="center" width="150"><br>
<a href="homepage.html" target="main">Homepage</a><br><br>
<a href="places_interest.html" target="main">Places of Interest</a><br><br>
<a href="town_centre.html" target="main">Town Centre</a><br><br>
<a href="night_life.html" target="main">City Night Life</a><br><br>
<a href="student_bar.html" target="main">Student Union</a><br><br>
<a href="transport.html" target="main">Transportation</a><br><br>
<a href="nus.html" target="main">NUS Offers</a><br><br>
<a href="numbers.html" target="main">Useful names and numbers</a><br><br>
<a href="contact.html" target="main">Contact Me</a><br><br>
</td>
<td>
<iframe src="town_centre.html" name="main" width="100%" height="100%"
frameborder="0">
Sorry, your browser doesn't support iframes.
</iframe>
</td>
</tr>
</body>
</noframes>
</frameset>
</HTML>
The above code is a rewrite of your website, but utilises iframes and tables over frames, slap that into your index page and check the links, its all set out for u to cusomise :thumbs:
|
Ren
|
posted on 23rd Nov 05 at 16:54 |
are you just here for charlene :|
|
marklaruk
|
posted on 23rd Nov 05 at 16:53 |
glad i could help
|
Ren
|
posted on 23rd Nov 05 at 16:52 |
hahahahahaha i fixed it!!! Turns out i had the page saved in two different locations, so any changes i made were all well and good, but i kept viewing the other page. n00b-ness to the max!!!! cheers everyone!
|
corsa|chris
|
posted on 23rd Nov 05 at 16:51 |
Sucess? ;)
|
steve101
|
posted on 23rd Nov 05 at 16:51 |
agreed with this, frames are an absolute disaster sometimes. Php is quite friendly if used properly? Doesn't take long to learn either!
|
Ren
|
posted on 23rd Nov 05 at 16:50 |
wooooooooooooooooooooo!!!!!!!!
|
drax
|
posted on 23rd Nov 05 at 16:49 |
Mate, how about you dont use frames and use php, or if you cant use php at least use Iframes
ill sort you out that..
|
steve101
|
posted on 23rd Nov 05 at 16:48 |
Right, you basically have the top bar, a nested frame on the left and a main frame on the right where you want pages to be loaded?
If so, make your frameset, and put in the general code eg..
"<html>
<head>
<title>My Frameset</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="80,*" cols="*" frameborder="NO" border="0" framespacing="0">
<frame src="top.htm" name="topFrame" scrolling="NO" noresize >
<frameset cols="80,*" frameborder="NO" border="0" framespacing="0">
<frame src="links.htm" name="leftFrame" scrolling="NO" noresize>
<frame src="home.htm" name="mainFrame">
</frameset>
</frameset>
<noframes><body>
</body></noframes>
</html>"
On your Links page you should have say...
<html>
<head>
<title>No title required here</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<a href="hello.php" target="mainFrame">link.htm
</a>
</body>
</html>
And basically the others can have whatever you need.. eg banner at the top, and general crap in the main bit.
|
corsa|chris
|
posted on 23rd Nov 05 at 16:43 |
Just had a quick go, got it to work how I think you want it to.
Default names for everything, but you should be able to get the jist of it.
Index page:
quote: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset cols="80,*" frameborder="NO" border="0" framespacing="0">
<frame src="links.htm" name="leftFrame" scrolling="NO" noresize>
<frame src="link.htm" name="mainFrame">
</frameset>
<noframes><body>
</body></noframes>
</html>
Links page
quote: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p><a href="link.htm" target="mainFrame">link</a></p>
<p><a href="link.htm" target="mainFrame">link</a></p>
<p><a href="link.htm" target="mainFrame">link</a></p>
<p><a href="link.htm" target="mainFrame">link</a></p>
</body>
</html>
And finally the main page, which you see on the right side first.
quote: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
Some text here for the main page.
</body>
</html>
Hope you make sense of that!
|
Gavin
|
posted on 23rd Nov 05 at 16:42 |
neva seen '<base target="main">' this before????
|
Ren
|
posted on 23rd Nov 05 at 16:39 |
its gotta be html mate :(
|
Gavin
|
posted on 23rd Nov 05 at 16:38 |
havent read it throughly... but i used javascript to do this sort stuff....
function BodyWindow(link)
{
window.open(link,"name of frame")
}
in body
<a href="javascript:BodyWindow('www.dummy.html')">clicky</a>
reason y i did it this way is cos of less maintence i.e. changing the name of the frame is simpler
[Edited on 23-11-2005 by Gavin]
|
Ren
|
posted on 23rd Nov 05 at 16:33 |
http://www.corsasport.co.uk/board/viewthread.php?tid=247911
Charlene will perform sexual favours for whoever helps me (charlene we'll talk)
|
Ren
|
posted on 23rd Nov 05 at 16:25 |
Its still not working :( heres my code
Main Page
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/tr/html4/strict.dtd">
<HTML>
<HEAD>
</HEAD>
<frameset rows="64,*">
<frame name="top"; scrolling="no"; noresize target="contents"; src="top">
<frameset cols="150,*">
<frame name="links"; target="main"; src="links.html">
<frame name="main"; src="homepage.html">
</frameset>
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset>
</HTML>
Links frame html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/tr/html4/strict.dtd">
<HTML>
<head>
<base target="main">
</head>
<body bgcolor="#FFD700">
<p><a href="homepage.htm" target="main">Homepage</a></p>
<p><a href="places_interest.html" target="main">Places of Interest</a></p>
<p><a href="town_centre.html" target="main">Town Centre</a></p>
<p><a href="night_life.html" target="main">City Night Life</a></p>
<p><a href="student_bar.html" target="main">Student Union</a></p>
<p><a href="transport.html" target="main">Transportation</a></p>
<p><a href="nus.html" target="main">NUS Offers</a></p>
<p><a href="numbers.html" target="main">Useful names and numbers</a></p>
<p><a href="contact.html" target="main">Contact Me</a></p>
</body>
</HTML>
|
Ian
|
posted on 23rd Nov 05 at 00:41 |
Yes, in the master document:
<frame name="rightside" src="firstpage.htm">
And in the link, which is in the page loaded in to the left side:
<a href="secondpage.htm" target="rightside">
|
Butler
|
posted on 23rd Nov 05 at 00:30 |
I think you need to rename the frame in the header and make that name the target, is that right? Use dreamweaver :lol:
|
Ian
|
posted on 23rd Nov 05 at 00:18 |
If you want it to load in to the frame inside the page you'll need a target that isn't any on that list.
|
Butler
|
posted on 23rd Nov 05 at 00:07 |
add target= then either "_blank", "_self", "_parent" or "_top" to the link code (<a href ="www.corsasport.com" target="_blank" etc etc )depending on which frame you want the link to appear in
|
Ian
|
posted on 23rd Nov 05 at 00:03 |
Name your frames, then put a target in the link.
|
Ren
|
posted on 23rd Nov 05 at 00:01 |
Quick question for a quick answer...
Ive created a website with frames. On the first frame, i have the html with all the links, but everytime i click a link, it loads the page in that frame. Instead i want the frame to remain static, and load in the other frame next to it. How can it be done :boggle:
|