Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2002
    Thanked 0 Times in 0 Posts

    <div> and <iFRAME> help

    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/

    how is this possible also?

    thanks in advance. happy holidays.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    North East England
    Thanked 0 Times in 0 Posts
    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">
    [+] Computer/PC issues [+] Silverpaw3D
    Never buy a dwarf with learning disabilities...

    ...it's not big, and it's not clever.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts