View Full Version : <div> and <iFRAME> help

12-27-2002, 01:58 AM
i want to use DIV because you can fully see the background picture but i cant seem to use targeted links into it.

the links open in a new window instead of the one i want them to.

{div id="cows" STYLE="position:absolute; width:500px; height:225px; z-index:1; overflow: auto; left:465px; top:260px"}

thats what i use for my div.

{a href="blahblah.html" target="cows"} haha {/a}

is what i use for the link, but it opens in a new browser window. how can i fix this? or is it possible?


the IFRAME thingy.
i use IFRAME sometimes but they have a full white background so i cant see my background image.

i currently saw a site that used IFRAME but had a fully transparant background it seemed. http://www.aceentrace.net/ (http://www.aceentrance.net)

how is this possible also?

thanks in advance. happy holidays.

12-27-2002, 02:24 AM
You can't target DIV's (layers) in a conventional manner, you need DHTML I'd expect. Your example will open the link in a window called cows. I think an Iframe is more likely down your street...

Iframe's are essentially a new window but imbedded in the page, any background will be that of the page being viewed through the iframe. To get a transparent background you must:

Add this to the <iframe> tag:

And define the viewed page's background as transparent:
<BODY STYLE="background-color:transparent">