View Full Version : Help! Targeted Links Problems!
anna_banana 07-25-2003, 01:46 AM Okay, so here's the problem. I have a site, and I have a layout. On the right side of the layout, I want to put links that target into the iframe on the left of the layout. I know that you're supposed to put this code:
<a href="inline.html" target="inlineframe">Your link name here</a>
But WHERE are you suppose to put it. Is that all you're supposed to put? Or do you put it in with some other code? I use Geocities and I tried to put that inside a HTML code box, and when I tried the link, it just opened into a new window, not the iframe on the left!
I really need help! >_<
~Anna~
CryptalClear 07-25-2003, 01:49 AM Ummmm, your code should be this:
<a href="http://www.geocities.com/whateveryourpageis/inline.html" target="inlineframe">Your Link Name</a>
also, is your iframe named inlineframe? that could be the problem if that's not its name.
anna_banana 07-25-2003, 02:00 AM It's still not working.....
CryptalClear 07-25-2003, 02:03 AM could you post your code, please? including the iframe part? might be easier to help that way
anna_banana 07-25-2003, 02:07 AM <a href="www.geocities.com/snow_wolven_beauty/aboutpearl.html"
target="blackpearltext.html">About</a>
CryptalClear 07-25-2003, 02:14 AM Ok, with your thingy....the blackpearltext.html is gonna show inside of the iframe, right? if that's the default, in your iframe code, you should have the tag
<iframe src="blackpearltext.html" width= blahblah blah></iframe>
That's what I did for the default text (i.e. what is in the iframe when you go to my page) and it works....try that out.
Dude128 07-25-2003, 02:43 AM could you post your iframe code? if the link is opening in a new window, it's probably because the link isn't targeted properly. the target in the link has to exactly match the name attribute in your <iframe> tag
Yeah, you should post your whole code...you probably just put the link and didn't name the frame you want it targeted to. You have to include
name="inlineframe"
in your frame code
anna_banana 07-25-2003, 03:10 PM Okay, my iframe code is fine. I know what it's named, okay? But you can look at it if you insist:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
7.23.03<BR>
Fanlisting up! I have a lot<BR>
of work to do! >_< I'm hoping<BR>
to get everything up during the<BR>
next few days, if not, then It'll<BR>
be for sure by Saturday! I'm going<BR>
to see POTC again in a few days!<BR>
YAY! I'll try to work on the<BR>
About, Rules and Members sections<BR>
tomorrow, hopefully I can get<BR>
the whole site up and running<BR>
tomorrow as well. <BR>
*Anna*<BR>
<style type="text/css">
BODY
{
scrollbar-face-color : #000000;
scrollbar-highlight-color : #000000;
scrollbar-3dlight-color : #FFFFFF;
scrollbar-shadow-color : #000000;
scrollbar-darkshadow-color : #000000;
scrollbar-track-color : #000000;
scrollbar-arrow-color : #FFFFFF;
}
</style>
<style type="text/css">
BODY
{
background:url(iframebackground2.jpg);
}
</style>
<style type="text/css">
BODY
{
cursor:s-resize;
}
</style>
<style type="text/css">
BODY
{
font-family:helvetica;
color:#000000;
font-weight:normal;
font-size:xx-small;
}
</style>
<style type="text/css">
BODY
{
background-attachment:fixed;
}
</style>
</body>
</html>
But here's my other question: Where do you put the code for the targeted link? Do you put it in an iframe HTML code?? Or acually on the page builder, inside a HTML box thing?
CryptalClear 07-25-2003, 03:14 PM as for where to put your targeted link code, you need to put it wherever the link is going to show up. Wherever you have your links on your site, just at the target="inlineframe" into their tag. That way, it's all peachy. erm, i'll let someone more advanced help you with your actual code up there :)
anna_banana 07-25-2003, 03:18 PM Thanks! I'll try it again. And I'm sure that my code above is perfectly alright, because it works perfectly fine. ^_^
Dude128 07-25-2003, 03:42 PM just because it works doesn't mean it's perfectly alright ;)
all your CSS should go in the head section, not the body. also, you really don't need all those body sections. you could combine them all into one.
could you post a link to the page (the big page not the iframe only page) ?
and to note, your iframe page may be edited to a much smaller coding such as...
<html>
<head>
<title>Untitled</title>
<style type="text/css">
BODY
{
background:url(iframeback
ground2.jpg);
background-attachment:fixed;
scrollbar-face-color : #000000;
scrollbar-highlight-color : #000000;
scrollbar-3dlight-color : #FFFFFF;
scrollbar-shadow-color : #000000;
scrollbar-darkshadow-color : #000000;
scrollbar-track-color : #000000;
scrollbar-arrow-color : #FFFFFF;
cursor:s-resize;
font-family:helvetica;
color:#000000;
font-weight:normal;
font-size:xx-small;
}
</style>
</head>
<body>
7.23.03<BR>
Fanlisting up! I have a lot<BR>
of work to do! >_< I'm hoping<BR>
to get everything up during the<BR>
next few days, if not, then It'll<BR>
be for sure by Saturday! I'm going<BR>
to see POTC again in a few days!<BR>
YAY! I'll try to work on the<BR>
About, Rules and Members sections<BR>
tomorrow, hopefully I can get<BR>
the whole site up and running<BR>
tomorrow as well. <BR>
*Anna*<BR>
</body>
</html>
anna_banana 07-25-2003, 03:51 PM http://www.geocities.com/snow_wolven_beauty/blackpearl
I taught myself the code, and I do it the way I know how....thanks for trying to help me with the code, but I'm leaving it the way it is because it works that way, and it's the only way I know how to do it.
|