Jump to content

Image as link frame src problem!!!


Dman

Recommended Posts

Ok I have a problem need help with the scr and frame please.Ok I have an image I want as a link that's w125 and h50 and I want the image to stay in the left frame.htm but yet I want the link of the A ref to showup in the main.htm and the content.htm Can you guys help me?

Link to comment
Share on other sites

Btw this is my code I have. and I'm trying to get it to work.

<p><center><a href="http://webpages.charter.net/derrek/webstuff/images/placeholdertest.png width="125" height="50"><a href="http://webpages.charter.net/derrek/webstuff/gallery.htm"><frame noresize="noresize" src="http://webpages.charter.net/derrek/webstuff/content.htm"></center>

Link to comment
Share on other sites

Umm... it is a bit hard understanding what you want... perhaps a sketch? The code you provided does not makes sense and will not render.

Link to comment
Share on other sites

Btw this is my code I have. and I'm trying to get it to work.
<p><center><a href="http://webpages.charter.net/derrek/webstuff/images/placeholdertest.png width="125" height="50"><a href="http://webpages.charter.net/derrek/webstuff/gallery.htm"><frame noresize="noresize" src="http://webpages.charter.net/derrek/webstuff/content.htm"></center>

Okay, I'll try to help as much as I can.. If I understand you correctly, you want the page to have a image, that, when clicked, works as a link.Then you first want to tell the browser that "whatever comes after here should be a clickable hyperlink", that would be via the <a> element. After that, you want the browser to paint the real clickable picture, via the <img> tag, like the following:
<a href="http://webpages.charter.net/derrek/webstuff/gallery.htm">	<img src="http://webpages.charter.net/derrek/webstuff/images/placeholdertest.png" width="125 px" height="50 px" /></a>

The rest, about the frame and such, I'm not sure what you mean by that. If you're using frames, the index.htm is supposed to have nearly only the frameset, if you want the image in, say, the "content.htm" frame, you have to put it in content.htm...I'm not sure if this will help at all, but I tried at least. Good luck with your frames anyways.Edit: Never mind the BBCode inside the Code box - I forgot it was a code box.. :)'

Link to comment
Share on other sites

Okay, I'll try to help as much as I can.. If I understand you correctly, you want the page to have a image, that, when clicked, works as a link.Then you first want to tell the browser that "whatever comes after here should be a clickable hyperlink", that would be via the <a> element. After that, you want the browser to paint the real clickable picture, via the <img> tag, like the following:
<[color="#008000"]a[/color] href="http://webpages.charter.net/derrek/webstuff/gallery.htm">	<img src="http://webpages.charter.net/derrek/webstuff/images/placeholdertest.png" width="125 px" height="50 px" /></[color="#008000"]a[/color]>

The rest, about the frame and such, I'm not sure what you mean by that. If you're using frames, the index.htm is supposed to have nearly only the frameset, if you want the image in, say, the "content.htm" frame, you have to put it in content.htm...I'm not sure if this will help at all, but I tried at least. Good luck with your frames anyways.

Thanks guys, I've finally got it to work. this is the code I'm using.
<a href="C:\webstuff\leftmenu.htm"><img border="0" src="C:\webstuff\images\placeholder.gif" width="144" height="50"><frameset cols="180,*"><frame src="content.htm"><frame src="content.htm" name="showframe">

Now if I want to do this for the rest of my site and use the links.htm, gallery.htm and so on I would just change the content.htm to gallery.htm right?

Link to comment
Share on other sites

Do you really want a link to the menu? Don't you want to include the menu as a frame? And why do you have 2 frames with src="content.htm"?This really confuses me now, I suggest you to read the w3schools article about frames..And remember that you have to end your tags.. And I don't think you use the <frameset> tag properly..As for ending tags correctly, for example, the following code:

<a href="http://www.w3schools.com/">Here I put a lot of text</a> and here some more text.

Would result in the following:Here I put a lot of text and here some more text.So the </a> tells the Web browser that the text that is linked stops.. And you have to specify it!Anyways, try to describe a bit more how you want the web page to look. Also, can you show the whole code of the index.htm file?

Link to comment
Share on other sites

You can either have <frameset> OR content - not both! So your use of a link is invalid, you will have to include a third frame with the link inside it.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...