link to inline frame (non) initial page from hotspot

G

Guest

Hello,

Can i create a hotspot and link it to an inline frame in another page? I
run into trouble becuase i do not want to change that inline frames "initial
page".
Thank you.
 
T

Thomas A. Rowe

No.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
G

Guest

Not sure if I understand you correctly. Do you just want to create an iframe
and have it display the contents of anohther page? If so...

An iFrame is an "Inline Frame" and they work in a similar way to regular
frames but without many of the pitfalls of the later. Think of them as a
window in your web page where you can show the contents of another HTML file.
That file can get there by default or be put there and changed by clicking
links on your page. An iFrame can be made to scroll too - so that a page
longer than the window it is shown in can be used.

The HTML for a simple iFrame called "myframe" with dimensions of 200x300
pixels and with a default content file called "myframe.html" is coded like
this...

<iframe src="mypage.html" name="myframe" width="200" height="300"
scrolling="auto"></iframe>

To change the contents of this iFrame with a text link that says "load page
2" and that does just that. i.e. loads "page2.html" into the iFrame, we code
the link like this...

<a href="page2.html" target="myframe">Load page 2</a>

That pretty much covers the basics. One more important point though. If your
iFrame is 200px wide you will need to make sure that your content pages fit
that width, and subtract 10px or so for the scrollbars. The easiest way to do
this is to place the content of these pages into a table or layer (CSS Div)
set to the required width.
 
G

Guest

Thats some interesting information that i'll look into.
I dont think it will solve my problem. I have created an image map, and i
want each hotspot to link to a sort of template page that contains an inline
frame. Therefore, every hotspot needs to link to the template page and show
different context in that inline frame on that page. It seems i can only do
this once- by setting the inline frames initial page setting. But what about
the other hotspots? Well, hope that makes sense.... it doenst sound like i
will be able to accomplish it that efficeintly though.

Thanks,
Lesley
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top