Avatar billede uhrskov Nybegynder
28. februar 2006 - 13:43 Der er 2 kommentarer

Udvid En Iframe?

Hej Jeg har et problem med en iframe der ikke vil udvide sig efter det link der ligger i den...

Der må ikke være scroll udover hoved winduet sfl.

FX:

(Opstart)
Iframe
Text
Iframe


(Med et nyt link i, altså en ny text som er længere)
IFrame
Text
text
text
text
text
text
text
Iframe


<html>
<head>
<title>kapow2</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style media="all" type="text/css">

#div1 { position: relative; top: 0; left:-142; z-index: 1; }
#div2 { position: absolute; top: 1; left: 1; z-index: 1; }

</style>




</head>

<script type="text/javascript" src="milonic_src.js"></script>
<script type="text/javascript">
if(ns4)_d.write("<scr"+"ipt type=text/javascript src=mmenuns4.js><\/scr"+"ipt>");       
  else _d.write("<scr"+"ipt type=text/javascript src=mmenudom.js><\/scr"+"ipt>");
</script>
<script type="text/javascript" src="menu_data.js"></script>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (kapow2.psd) -->

<div id="div1">
<table id="Ta01" width="801" height="601" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td colspan="13">
            <img src="billeder/menu-%2b-main_01.gif" width="800" height="108" alt=""></td>
        <td>
            <img src="billeder/spacer.gif" width="1" height="108" alt=""></td>
    </tr>
    <tr>
       
      <td rowspan="12">&nbsp; </td>
        <td colspan="2" rowspan="2">
            <img src="billeder/menu-%2b-main_03.gif" width="9" height="14" alt=""></td>
        <td colspan="6">
            <img src="billeder/menu-%2b-main_04.gif" width="451" height="5" alt=""></td>
        <td colspan="2" rowspan="2">
            <img src="billeder/menu-%2b-main_05.gif" width="11" height="14" alt=""></td>
        <td rowspan="5">
            <img src="billeder/menu-%2b-main_06.gif" width="23" height="299" alt=""></td>
        <td rowspan="12">
            <img src="billeder/menu-%2b-main_07.gif" width="140" height="492" alt=""></td>
        <td>
            <img src="billeder/spacer.gif" width="1" height="5" alt=""></td>
    </tr>
    <tr>
        <td colspan="6">
            <img src="billeder/menu-%2b-main_08.gif" width="451" height="9" alt=""></td>
        <td>
            <img src="billeder/spacer.gif" width="1" height="9" alt=""></td>
    </tr>
    <tr>
        <td>
            <img src="billeder/menu-%2b-main_09.gif" width="8" height="31" alt=""></td>
        <td colspan="2">
       
       
       


            <img src="billeder/Kapow.gif" width="72" height="31" alt=""></td>
        <td>
            <img src="billeder/Nyheder.gif" width="93" height="31" alt=""></td>
        <td>
            <img src="billeder/menu-%2b-main_12.gif" width="57" height="31" alt=""></td>
        <td colspan="2">
            <img src="billeder/Arrangementer.gif" width="169" height="31" alt=""></td>
        <td colspan="2">
            <img src="billeder/Links.gif" width="64" height="31" alt=""></td>
        <td>
            <img src="billeder/menu-%2b-main_15.gif" width="8" height="31" alt=""></td>
        <td>
            <img src="billeder/spacer.gif" width="1" height="31" alt=""></td>
    </tr>
    <tr>
        <td colspan="10">
            <img src="billeder/menu-%2b-main_16.gif" width="471" height="17" alt=""></td>
        <td>
            <img src="billeder/spacer.gif" width="1" height="17" alt=""></td>
    </tr>
    <tr>
        <td colspan="10">








<iframe name="main" width="471" height="100%" frameborder="0" scrolling="no" src="../../Cartoon 2/Page/fylde.htm" ></iframe>












            </td>
        <td>
            <img src="billeder/spacer.gif" width="1" height="237" alt=""></td>
    </tr>
    <tr>
        <td colspan="8">
            <img src="billeder/menu-%2b-main_18.gif" width="460" height="16" alt=""></td>
        <td colspan="3" rowspan="3">
            <img src="billeder/menu-%2b-main_19.gif" width="34" height="78" alt=""></td>
        <td>
            <img src="billeder/spacer.gif" width="1" height="16" alt=""></td>
    </tr>
    <tr>
        <td colspan="2" rowspan="2">
            <img src="billeder/menu-%2b-main_20.gif" width="9" height="62" alt=""></td>
        <td colspan="4" rowspan="3">
            <img src="billeder/Bundenmain.gif" width="322" height="67" alt=""></td>
        <td colspan="2">
            <img src="billeder/menu-%2b-main_22.gif" width="129" height="25" alt=""></td>
        <td>
            <img src="billeder/spacer.gif" width="1" height="25" alt=""></td>
    </tr>
    <tr>
        <td colspan="2" rowspan="2">
            <img src="billeder/Bundenmain2.gif" width="129" height="42" alt=""></td>
        <td>
            <img src="billeder/spacer.gif" width="1" height="37" alt=""></td>
    </tr>
    <tr>
        <td colspan="2" rowspan="3">
            <img src="billeder/menu-%2b-main_24.gif" width="9" height="10" alt=""></td>
        <td colspan="2" rowspan="3">
            <img src="billeder/menu-%2b-main_25.gif" width="11" height="10" alt=""></td>
        <td rowspan="4">
            <img src="billeder/menu-%2b-main_26.gif" width="23" height="115" alt=""></td>
        <td>
            <img src="billeder/spacer.gif" width="1" height="5" alt=""></td>
    </tr>
    <tr>
        <td colspan="6">
            <img src="billeder/menu-%2b-main_27.gif" width="451" height="4" alt=""></td>
        <td>
            <img src="billeder/spacer.gif" width="1" height="4" alt=""></td>
    </tr>
    <tr>
       
      <td colspan="6" rowspan="2"> <img src="billeder/menu-%2b-main_02.gif" width="166" height="492" alt="">   
        <img src="billeder/menu-%2b-main_28.gif" width="451" height="106" alt=""></td>
        <td>
            <img src="billeder/spacer.gif" width="1" height="1" alt=""></td>
    </tr>
    <tr>
        <td colspan="2">
            <img src="billeder/menu-%2b-main_29.gif" width="9" height="105" alt=""></td>
        <td colspan="2">
            <img src="billeder/menu-%2b-main_30.gif" width="11" height="105" alt=""></td>
        <td>
            <img src="billeder/spacer.gif" width="1" height="105" alt=""></td>
    </tr>
    <tr>
        <td>
            <img src="billeder/spacer.gif" width="166" height="1" alt=""></td>
        <td>
            <img src="billeder/spacer.gif" width="8" height="1" alt=""></td>
        <td>
            <img src="billeder/spacer.gif" width="1" height="1" alt=""></td>
        <td>
            <img src="billeder/spacer.gif" width="71" height="1" alt=""></td>
        <td>
            <img src="billeder/spacer.gif" width="93" height="1" alt=""></td>
        <td>
            <img src="billeder/spacer.gif" width="57" height="1" alt=""></td>
        <td>
            <img src="billeder/spacer.gif" width="101" height="1" alt=""></td>
        <td>
            <img src="billeder/spacer.gif" width="68" height="1" alt=""></td>
        <td>
            <img src="billeder/spacer.gif" width="61" height="1" alt=""></td>
        <td>
            <img src="billeder/spacer.gif" width="3" height="1" alt=""></td>
        <td>
            <img src="billeder/spacer.gif" width="8" height="1" alt=""></td>
        <td>
            <img src="billeder/spacer.gif" width="23" height="1" alt=""></td>
        <td>
            <img src="billeder/spacer.gif" width="140" height="1" alt=""></td>
        <td></td>
    </tr>
</table>
</div>
<!-- End ImageReady Slices -->
</body>
</html>
Avatar billede milandt Nybegynder
28. februar 2006 - 14:03 #1
er det dette du efterspørger?

http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm

en iframe tilpasser sig ikke automatisk efter højden (eller bredden) af det content der ligger i den.
Avatar billede musti776 Nybegynder
01. marts 2006 - 01:47 #2
Du skal tilføje nedenstående kode på "fylde.htm" som er din iframe:
<body onload="parent.document.getElementById('main').style.height=((document.body.scrollHeight)?document.body.scrollHeight:document.body.offsetHeight)+'px'">

så når du angiver id=main på din iframe vil det udvide sig alt efter indholdet.
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester



IT-JOB

De Nationale Geologiske Undersøgelser for Danmark og Grønland (GEUS)

IT-systemadministrator søges til GEUS

Udviklings- og Forenklingsstyrelsen

Webanalytiker til digitale løsninger

Politiets Efterretningstjeneste

Udviklingsorienteret Service Level Manager til PET