By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,628 Members | 1,175 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,628 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Jul 23 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
I think you should check overlib http://www.bosrup.com/web/overlib/

Jul 23 '05 #2

P: n/a
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.

Jul 23 '05 #3

P: n/a

"Art X" <Xl******@webtv.net> a écrit dans le message de
news:13****************@storefull-3332.bay.webtv.net...
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.
Jul 23 '05 #4

P: n/a
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).

<gu*******@gmail.com> a écrit dans le message de
news:11**********************@o13g2000cwo.googlegr oups.com...
I think you should check overlib http://www.bosrup.com/web/overlib/

Jul 23 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.