Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Images in a Frame, how can I set a hyperlink behind? 1

Status
Not open for further replies.

imendi

Programmer
Oct 14, 2002
33
ES
Hi,

I have some frames where I have images. I want to by clicking image called "Home", go to the main page for example.

Now I have:

<frameset cols=&quot;100,100,*&quot;>
<frame id=&quot;btn1&quot; name=&quot;btn1&quot; src=&quot;btnhome.jpg&quot;>
...
</frameset>

I want the user to click on btn1 and go to the main page.

Thanks,

Im
 
put the image in an html document

ie
<!-- btnhome.html-->
<html>
<head><title></title></head><body>
<a href=&quot;home.html&quot; target=&quot;mainframeframe&quot;>
<img src=&quot;btnhome.jpg&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; border=&quot;0&quot;>
</a>
</body>
</html>

then change your frameset to

<frame id=&quot;btn1&quot; name=&quot;btn1&quot; src=&quot;btnhome.html&quot;>

Regards
Ian Infinity exists! - I just haven't worked out a way to get there yet.

| |
 
I have a site with cgi and perl forms and frames. When the site loads all frames(Index, logo, and main frame) I want to change that. Can I have an image as an imagemap . so when users click on the image the original site comes up. Will it hurt my original site scripts from running?
 
I am assuming your original framest page is called main.html or similar and all you want to do is have an image map as a sort of menu so that when the user clicks on parrt of the image it loads main.html is that correct?
If this is the case then no pronlem at all in using an image map. Infinity exists! - I just haven't worked out a way to get there yet.

| |
 
Thanks for the quick response, I guess what I have to say is when the site loads there will be nothing but the picture, when user clicks on image the frame pages such as index , link page, logopage and main page pages would appear.
Although I am having trouble understanding what you are saying. My links are on left, logo on top and main in the right hand corner. The links page has all links to all other pages which open up in the mainframe.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top