small layer info on mouse over links : object or iframe ?

M

Manny

Hi,

I would like to display a small html file in a layer (div) when the
mouse goes over a link (<a href="small.html"
onMouseOver="showPop(small.html)").

Which tag should I use in the layer :

<div id="pop"><object data="small.html"></object></div>

OR

<div id="pop"><iframe src="small.html"></iframe></div>

Or maybe is there another solution ?
--of course the file small.html will be different for each link on the
page, that's the job of the showPop() function--
I want my site to be visible by as most browsers/platform as possible.
If you have any link explaining how to build this, it would be helpfull.

TIA
 
A

Art X

Manny wrote:

Hi,
I would like to display a small html file in a layer (div) when the
mouse goes over a link (<a href="small.html"
onMouseOver="showPop(small.html)").
Which tag should I use in the layer :
<div id="pop"><object data="small.html"></object></div>
OR
<div id="pop"><iframe src="small.html"></iframe></div>
Or maybe is there another solution ?
--of course the file small.html will be different for each link on the
page, that's the job of the showPop() function-- I want my site to be
visible by as most browsers/platform as possible. If you have any link
explaining how to build this, it would be helpfull.
TIA

Hi Manny,

Because the html files are small maybe you could simply put the content
of the body of them in separate hidden divisions with positioning and
make them visible when the event occurs. When the page loads the content
will already be drawn and there will be no delay waiting for the html
page to load in the iframe.

I have nothing against iframes, just a thought.

Later, Art.
 
M

Manny

Art X said:
Hi Manny,

Because the html files are small maybe you could simply put the content
of the body of them in separate hidden divisions with positioning and
make them visible when the event occurs. When the page loads the content
will already be drawn and there will be no delay waiting for the html
page to load in the iframe.

I have nothing against iframes, just a thought.

Later, Art.

The trouble is that these files are numerous (more than 1000) and used
at several different places in the website. In addition, there is a need
to upgrade these files from time to time. There would be a risk to
forget some updates if the text was included in divisions inside several
main pages.
That was my reasons to includes these files in iframes or object.
 
M

Manny

That's allmost what I wanted to do, except that I need to display in the
tooltip the content of a html file. (see why in my answer to Art X).
 

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

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top