Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Table-<td> used as frame
Old 01-05-2006, 09:48 PM Table-<td> used as frame
lizard dude's Avatar
Super Talker

Posts: 119
Location: France
Trades: 0
Hey i used to make websites with frames but i wanted to change and use tables as its better for my script.
But i have a question:
I want to use the cell on the right (the one with the iframe right now) to be used as a frame for the links.
Can anyone help me?

HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<title>websites</title>
<script type="text/javascript">
function tick()
{
//create a new date object
var now=new Date();
//get the time
var hh=now.getHours();
var mn=now.getMinutes();
var ss=now.getSeconds();
var ms=now.getMilliseconds();

//make sure each components has two digits:
if(hh<=9)hh="0"+hh;
if(mn<=9)mn="0"+mn;
if(ss<=9)ss="0"+ss;
if(ms<=9)ms="0"+ms;
//put the time on the form:
document.f.clock.value=hh+":"+mn+":"+ss+":"+ms;
//set interval to one second
window.setTimeout("tick()",1);
}

</script>
</head>
<body onload="tick()">
<body bgcolor="#000000"></body>
<body text="#c0c0c0"></body>
<body link="#ffff00"></body>
<table>
<td><img src="logo.gif" width="875" height="150" alt="logo (23K)" /></td>
</table>
<table>
<tr>
  <td width="100" height="500">
<img src="micsoccball.jpg" width="65" height="50" alt="micsoccball (1K)" />
<div>
<br>
<a href="content.htm" target=mainframe title="Homepage">Home</a><div>
<br>
<a href="http://www.djbenjib.skyblog.com" target=mainframe title="My webblog">Pictures</a><div>
<br>
<a href="contact.htm" target=mainframe title="A little bit about me">The webmaster</a><div>
<br>
<a href="http://www.benjidela.com/forum" target=mainframe title="The place where you can talk for free...">The forum!</a><div>
<br>
<a href="podcast.htm" target=mainframe title=" Where you can listen to my podcast (music)">Podcast</a><div>
<br>
<a href="websites.htm" target=mainframe title="All the websites I've done">Websites</a><div>
<br>
<a href="http://www.benjidela.com/guestbook" target=mainframe title="Leave a trace of you here">Sign my guestbook!</a><div>
<br>
<a href="friends.htm" target=mainframe titel="Special dedication for my real friends">Friends</a>
<!--here is the form for the clock-->
<form name="f">
	<input type="text" name="clock" value="">
</form>
</td>
<td>
<h1><center><b><font size=10>Welcome to my website!</b></center></h1><div>
<h2><b><font color="#ffffff"font size=6>News:</font><b></h2><div>
<iframe src="news.htm" width=600height=400 align=center></iframe>
</td>
</tr>




</body>
</html>
Thanks in advance
__________________
forum------->
Please login or register to view this content. Registration is FREE
, for people who wants to have a good time ;)
website------>
Please login or register to view this content. Registration is FREE
(might be in construction :D)
Hope you have a great time and that my post is helpfull ;)
lizard dude is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-06-2006, 11:24 PM
lizard dude's Avatar
Super Talker

Posts: 119
Location: France
Trades: 0
Please help
__________________
forum------->
Please login or register to view this content. Registration is FREE
, for people who wants to have a good time ;)
website------>
Please login or register to view this content. Registration is FREE
(might be in construction :D)
Hope you have a great time and that my post is helpfull ;)
lizard dude is offline
Reply With Quote
View Public Profile
 
Old 01-07-2006, 01:34 AM
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
I'm not really sure what you're asking. What's the actual problem you're having?
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 01-07-2006, 04:33 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
You can't use <td> in the same way as a frame for targetting content

Why on earth do you have 3 open and close <body> tags in that code ??????
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-07-2006, 04:24 PM
lizard dude's Avatar
Super Talker

Posts: 119
Location: France
Trades: 0
Well for the body tags i was adding colors from a tutorial and it always added it.
But the problem is that i want the table where the iframe is to be like a mainframe. the links will load a page in that table.
__________________
forum------->
Please login or register to view this content. Registration is FREE
, for people who wants to have a good time ;)
website------>
Please login or register to view this content. Registration is FREE
(might be in construction :D)
Hope you have a great time and that my post is helpfull ;)
lizard dude is offline
Reply With Quote
View Public Profile
 
Old 01-07-2006, 07:51 PM
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
For the body tag issue you can add all those attributes to one body tag so:

HTML Code:
<body bgcolor="#000000" text="c0c0c0" link='#ffff00">
Don't use a closing body tag there since you have one at the close of the page.

I don't use iframes generally, but I think all you need to add is an id or name to the iframe like:

HTML Code:
<iframe id="mainframe" name="mainframe"></iframe>
as well as adding the other attributes you already have on the iframe. I think adding the id will be enough, but I know in some places IE needs the name attribute.

I think that will work, but like I said I generally, actually never use iframes.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 01-07-2006, 11:12 PM
lizard dude's Avatar
Super Talker

Posts: 119
Location: France
Trades: 0
What i meant is actually to give the <td> tag an ID and the links will target it.
Here is what could happen:
1.it works and im happy
2.too bad ill put a link with target "_self"
o btw i appreciate all your help
__________________
forum------->
Please login or register to view this content. Registration is FREE
, for people who wants to have a good time ;)
website------>
Please login or register to view this content. Registration is FREE
(might be in construction :D)
Hope you have a great time and that my post is helpfull ;)
lizard dude is offline
Reply With Quote
View Public Profile
 
Old 01-08-2006, 01:10 AM
Junior Talker

Posts: 2
Trades: 0
I think that this

<iframe src="news.htm" width=600height=400 align=center>
</iframe>

Should be :

<iframe id="mainframe" name="mainframe" src="news.htm" width=600height=400 align=center></iframe>
RoboMonkey is offline
Reply With Quote
View Public Profile
 
Old 01-08-2006, 01:48 AM
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Sorry Lizard i misunderstood. In that case I have to agree with Chris. You can't use <td> in the same way. It doesn't accept a targetted link. I had thought you were going to keep the <iframe> inside the <td>.

Are you basically trying to have your navigation running down the left side of the page and your content on the right? And are you trying to use the targetted linking so that you won't have to update your navigation on every page in case you want to add something or make a change?

If that's the case you can use PHP (or another scripting language) or SSI (server side includes) to include the navigation on every page while keeping the code for the navigation in a single separate file.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Table-<td> used as frame
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.32660 seconds with 12 queries