|
|
Post a Project »
Find a Professional HTML Freelancer!
Find a Freelancer to help you with your HTML projects
| |
|
Targeting a link to open in a <DIV> box ?
04-28-2006, 06:02 AM
|
Targeting a link to open in a <DIV> box ?
|
Posts: 8
|
Hey everyone! I know i've been asking a lot of questions lately, thank you to all who have helped me! You're life savers!
However, My new dilema is...
I want to target the links on my navigation to open up inside of the main "content area" on the page.. here is the site. http://www.geocities.com/rev_groove/index.htm
Now, I've done targeting before. With Iframes. But my site doesn't have any so.... what the heck do I do?
Any suggestions, input, theories, are extremely appreciated.
Thank you in advance! =-)
|
|
|
|
04-28-2006, 10:39 AM
|
Re: Targeting a link to open in a <DIV> box ?
|
Posts: 212
Location: Birmingham, AL
|
btw, nive design, it's very elegant
I don't think this can be done, it would be the same thing as an iframe, so why not just use one?
My suggestion would be to write your header and sidebar into it's own php document, then call them from each page with an include.
|
|
|
|
04-29-2006, 12:45 AM
|
Re: Targeting a link to open in a <DIV> box ?
|
Posts: 488
Name: Chip Johns
Location: Savannah Georgia
|
Unless your site is big enough to substantiate the use of a database. you are better off with hard coded html pages. Is Search Engine placement desired? If so, it always the best way to go. If not, it still may be the best way to go.
Sometimes it is percieved that pages will download faster if we use frames, Iframes, or some other file includes. This isn't true. If all the pages on your site are using the same images for logo, navigation, etc. once they are downloaded they are in the user's browser cache.
Loading info into your pages doesn't give you any real benefits. Code seperate page for each url is my suggestion.
If there is a reason that we are not aware of that you need to use iFrames or something similar let us know. But to do it just because you can isn't a good reason or the best way..
|
|
|
|
04-29-2006, 02:12 AM
|
Re: Targeting a link to open in a <DIV> box ?
|
Posts: 212
Location: Birmingham, AL
|
The reason I suggest includes, is because when you want to change one thing in the header or sidebars, you don't have to do it in every single file. This is usually the reason one would use frames, but with php, it's better for search engines, because they see the page as one, and not two or three. Like, even thought I know I wrote my header, sidebar, and index in three seperate files, when i run it through w3c.ord, it gives me the reults for one page. The php tells it that they are all one page. This way, a week or month down the road when you want to add a new link on the sidebar, you open up "sidebar.php", add the link, and presto, you're done. If you code the header and sidebars into every single page, you would have to add the link in every single page.
|
|
|
|
04-29-2006, 02:43 AM
|
Re: Targeting a link to open in a <DIV> box ?
|
Posts: 488
Name: Chip Johns
Location: Savannah Georgia
|
yes indeed, I agree with Tammy with this as well. I should have clarified my statement a little better. Using includes is a great way to manage navigation, copyright and other reoccurring elements on pages.
What I was specifically reffering to is the unique copy/content on each page
I have run into quite a few sites recently where anything from includes to AJAX has been used to populate an entire site's content.
I have also seen iFrames used as navigation holder. Not the way to go. (Where are these designers coming up with this stuff?) As Tammy said, an include is a great way to handle these reoccurring elements.
If you are using a Windows server you can actually do this without php, asp or Cold Fusion. Through ISS you can provide incudes simply by naming your files with the .shtml.shtm file extension and using the ISS include..
If your site isn't on windows, the greater chance is that php is available as she mentioned.
|
|
|
|
04-29-2006, 04:49 AM
|
Re: Targeting a link to open in a <DIV> box ?
|
Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
|
BTW gals & guys
If you take a look at the URL posted, it's on geocities. So any discussion on includes (SSI, PHP or ASP) is pretty much superfluous, as none of those are likely to be available.
If search engine results are of any concern, MOVE THE SITE!!
Other than that;
seperate pages are recommended, with iframes coming a poor second.
__________________
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?
|
|
|
|
05-09-2006, 09:02 PM
|
Re: Targeting a link to open in a <DIV> box ?
|
Posts: 8
|
thanks guys!
So I'm thinking I'll go ahead and do the Iframes like I did on another site.. but... i'm so completely lost as to how to use them with all these frames/tables..... take a look here.
<html>
<head>
<CENTER>
<title>Casifer Demonicus</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<STYLE type="text/css">
.image{
border-style: solid;
border-color: #FEF9EC;
border-width: 1px;
}
</style>
<style type=text/css>
div
{scrollbar-face-color: #FBE5AF;
scrollbar-shadow-color: #FBE5AF;
scrollbar-highlight-color: #FBE5AF;
scrollbar-3dlight-color: #FBE5AF;
scrollbar-darkshadow-color:#FBE5AF;
scrollbar-track-color: #FBE5AF;
scrollbar-arrow-color: #000000;
}
</STYLE>
</head>
<bgsound src= "http://h1.ripway.com/Casifer/BassnectarKraddy-SnakecharmerUSETHIS.mp3">
<body bgcolor="#FEF3D5" text="#333333" link="#660000" vlink="#663300" alink="#663300" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="810" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="image" width="810" height="140"><CENTER><IMG NAME="" SRC="http://www.geocities.com/casifer_demonicus/ohmygoshgod2.jpg">
</TD>
</tr>
</table>
<table width="810" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td width="135"> </td>
<td width="540"> </td>
<td width="135"> </td>
</tr>
<tr valign="top">
<td><img src="http://www.geocities.com/casifer_demonicus/NAVIGATION.jpg" width="135" height="20"></td>
<td><div align="center" width="526" height="20"><IMG SRC="[/I]>
<td><IMG SRC="http://www.geocities.com/casifer_demonicus/NEWSANDEVENTS.jpg" width="135" height="20"></td>
</tr>
<tr valign="top">
<td width="135" height="59"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" cellpadding="1" cellspacing="1" bgcolor="#FEF9EC">
<tr>
<td height="55"><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FBE5AF">
<tr>
<td height="50"><p><font size="2" face="Arial, Helvetica, sans-serif"><A HREF="">Home</A></font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><A HREF="">What Is A Casifer</A></font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><A HREF="">Services</A></font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><A HREF="">Artwork</A></font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><A HREF="">Contact</A></font></p>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><img src="http://www.geocities.com/casifer_demonicus/WEBSITES2.jpg" width="135" height="20"></td>
</tr>
<tr>
<td><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FEF9EC">
<tr>
<td height="55"><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FBE5AF">
<tr>
<td height="50"><p><font size="2" face="Arial, Helvetica, sans-serif"><a href="[/I]. A.J. Groove</font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif">Site</font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif">Site</font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif">Site</font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif">Site</font></p>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
<td><div align="center">
<table width="526" border="0" cellspacing="1" cellpadding="1">
<tr>
<td valign="top"><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FEF9EC">
<tr>
<td height="315" valign="top"><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FBE5AF">
<tr>
<td height="315" valign="top"><p><font size="2" face="Arial, Helvetica, sans-serif">
<BR>
<Div style='height: 325px; overflow: auto;'>
<CENTER><B>Welcome!</B>
<BR>
I am currently in the process of constructing this site, please be patient!
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
</DIV>
</font></p></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</div></td>
<td width="135"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FEF9EC">
<tr>
<td height="55"><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FBE5AF">
<tr>
<td height="50"><p><font size="2" face="Arial, Helvetica, sans-serif"><IMG SRC="[/I]>
<p><font size="2" face="Arial, Helvetica, sans-serif"><IMG SRC="[/I]>
<p><font size="2" face="Arial, Helvetica, sans-serif"><IMG SRC="[/I]>
<p><font size="2" face="Arial, Helvetica, sans-serif"><IMG SRC="[/I]>
<p><font size="2" face="Arial, Helvetica, sans-serif"><IMG SRC="[/I]>
<p><font size="2" face="Arial, Helvetica, sans-serif"><IMG SRC="[/I]>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><img src="http://www.geocities.com/casifer_demonicus/ARTWORK2.jpg" width="135" height="20"></td>
</tr>
<tr>
<td><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FEF9EC">
<tr>
<td height="55"><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FBE5AF">
<tr>
<td height="50"><p><font size="2" face="Arial, Helvetica, sans-serif"><A HREF="[/I] Art</A></font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><A HREF="[/I] Henna</A></font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><A HREF="[/I] Henna</A></font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><A HREF="[/I] Henna</A></font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><A HREF="[/I] Henna</A></font></p>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
<tr valign="top">
<td width="135"> </td>
<td><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Web Design by: ©2006 Casandra Kimberly Annette Willis.<BR>All content and graphics may not be used or reproduced without direct written consent.<BR>All rights reserved.</font></div></td>
<td width="135"> </td>
</tr>
</table></CENTER>
</body>
</html>
I've tried to figure it out and it keeps screwing up the four little tables.
Does anyone know exactly what I should do?
DANKE!
|
|
|
|
11-26-2008, 10:17 AM
|
Re: Targeting a link to open in a <DIV> box ?
|
Posts: 48
Name: Pieter
Location: Holland
|
I onley inserted the iframe you wanted, not advisable though..
It will use home.html as begin page.
HTML Code:
<html>
<head>
<CENTER>
<title>Casifer Demonicus</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<STYLE type="text/css">
.image{
border-style: solid;
border-color: #FEF9EC;
border-width: 1px;
}
</style>
<style type=text/css>
div
{scrollbar-face-color: #FBE5AF;
scrollbar-shadow-color: #FBE5AF;
scrollbar-highlight-color: #FBE5AF;
scrollbar-3dlight-color: #FBE5AF;
scrollbar-darkshadow-color:#FBE5AF;
scrollbar-track-color: #FBE5AF;
scrollbar-arrow-color: #000000;
}
</STYLE>
</head>
<bgsound src= "http://h1.ripway.com/Casifer/BassnectarKraddy-SnakecharmerUSETHIS.mp3">
<body bgcolor="#FEF3D5" text="#333333" link="#660000" vlink="#663300" alink="#663300" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="810" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="image" width="810" height="140"><CENTER><IMG NAME="" SRC="http://www.geocities.com/casifer_demonicus/ohmygoshgod2.jpg">
</TD>
</tr>
</table>
<table width="810" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td width="135"> </td>
<td width="540"> </td>
<td width="135"> </td>
</tr>
<tr valign="top">
<td><img src="http://www.geocities.com/casifer_demonicus/NAVIGATION.jpg" width="135" height="20"></td>
<td><div align="center" width="526" height="20"><IMG SRC="[/i]>
<td><IMG SRC="http://www.geocities.com/casifer_demonicus/NEWSANDEVENTS.jpg" width="135" height="20"></td>
</tr>
<tr valign="top">
<td width="135" height="59"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" cellpadding="1" cellspacing="1" bgcolor="#FEF9EC">
<tr>
<td height="55"><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FBE5AF">
<tr>
<td height="50"><p><font size="2" face="Arial, Helvetica, sans-serif"><A HREF="">Home</A></font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><A HREF="">What Is A Casifer</A></font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><A HREF="">Services</A></font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><A HREF="">Artwork</A></font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><A HREF="">Contact</A></font></p>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><img src="http://www.geocities.com/casifer_demonicus/WEBSITES2.jpg" width="135" height="20"></td>
</tr>
<tr>
<td><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FEF9EC">
<tr>
<td height="55"><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FBE5AF">
<tr>
<td height="50"><p><font size="2" face="Arial, Helvetica, sans-serif"><a href="[/i]. A.J. Groove</font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif">Site</font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif">Site</font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif">Site</font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif">Site</font></p>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
<td><div align="center">
<table width="526" border="0" cellspacing="1" cellpadding="1">
<tr>
<td valign="top"><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FEF9EC">
<tr>
<td height="315" valign="top"><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FBE5AF">
<tr>
<td height="315" valign="top"><p><font size="2" face="Arial, Helvetica, sans-serif">
<BR>
<iframe height="325px" width="100%" frameborder="0" src="home.html"></script>
</font></p></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</div></td>
<td width="135"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FEF9EC">
<tr>
<td height="55"><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FBE5AF">
<tr>
<td height="50"><p><font size="2" face="Arial, Helvetica, sans-serif"><IMG SRC="[/i]>
<p><font size="2" face="Arial, Helvetica, sans-serif"><IMG SRC="[/i]>
<p><font size="2" face="Arial, Helvetica, sans-serif"><IMG SRC="[/i]>
<p><font size="2" face="Arial, Helvetica, sans-serif"><IMG SRC="[/i]>
<p><font size="2" face="Arial, Helvetica, sans-serif"><IMG SRC="[/i]>
<p><font size="2" face="Arial, Helvetica, sans-serif"><IMG SRC="[/i]>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><img src="http://www.geocities.com/casifer_demonicus/ARTWORK2.jpg" width="135" height="20"></td>
</tr>
<tr>
<td><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FEF9EC">
<tr>
<td height="55"><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FBE5AF">
<tr>
<td height="50"><p><font size="2" face="Arial, Helvetica, sans-serif"><A HREF="[/i] Art</A></font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><A HREF="[/i] Henna</A></font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><A HREF="[/i] Henna</A></font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><A HREF="[/i] Henna</A></font></p>
<p><font size="2" face="Arial, Helvetica, sans-serif"><A HREF="[/i] Henna</A></font></p>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
<tr valign="top">
<td width="135"> </td>
<td><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Web Design by: ©2006 Casandra Kimberly Annette Willis.<BR>All content and graphics may not be used or reproduced without direct written consent.<BR>All rights reserved.</font></div></td>
<td width="135"> </td>
</tr>
</table></CENTER>
</body>
</html>
And i onley looked at the script around the place where you had the div that i changed to an iframe, and i advise to "clean" the script.
Good luck 
|
|
|
|
|
« Reply to Targeting a link to open in a <DIV> box ?
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|