Toon posts:

frame en div laten aanpassen aan de inhoud van frame

Pagina: 1
Acties:

Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
ik ben bezig aan een website voor een bandje, het bestaat uit divjes en 1 Iframe. in dit frame wordt alles geladen. nu staat het scrollen uit, en wil ik dat het frame en het div waar het frame inzit zich aanpassen aan de inhoud wat in het frame moet worden geladen.

hier mijn CSS:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/* CSS Document */
body{
background-image:url(images/balk.PNG);
background-repeat:repeat;
}


#container{
width:1000px;
height:auto;
margin-right:auto;
margin-left:auto;
margin-top:-16px;
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
background-image:url(images/balk.PNG);
background-repeat:repeat;
color:#66FF00;
margin-bottom:auto;
}


#header{
width:1000px;
height:339px;
background-image:url(images/up.png);
background-repeat:no-repeat;
background-color:#FFFFFF;
}

#imageband{
margin-left:465px;
margin-top:164px;
}

#homeband{
margin-right:390px;
margin-bottom:130x;
margin-left:385px;
margin-top:-2px;
}

#agendaband{
margin-left:542px;
margin-top:-26px;
}

#mid{
background-image:url(images/balk.PNG);
background-repeat:repeat;
width:1000px;
min-height:100px;
height:auto;
}
 
#iframe{
width:1000px;
margin-left:0px;
border:none;
height:auto;
size:auto;
}


#footer{
width:1000px;
height:auto;
background-image:url(images/down.png);
background-repeat:no-repeat;
margin-bottom:auto;
}

#mediaband{
margin-top:150px;
margin-left:463px;
}

#repertoir{
margin-left:-166px;
margin-bottom:26px;
margin-top:-53px;
}

#contact{
margin-left:542px;
margin-top:-50px;
position:relative;
padding-bottom:100px;
}


kan iemand mij hier AUB mee helpen?

Acties:
  • 0 Henk 'm!

  • disjfa
  • Registratie: April 2001
  • Laatst online: 03-07 14:47

disjfa

be

Mischien heb je javascript nodig.

Maar wat je wilt doen is wat browsers al jaren doen, caching. En daarom hebben we al jaren geen frames meer voor nodig aangezien browsers dit zelf al doen. Dus maakt gewoon 1 pagina met je inhoud en laat die frame. Dan hoef je ook niet moeilijk te doen.

disjfa - disj·fa (meneer)
disjfa.nl


Acties:
  • 0 Henk 'm!

  • Da Weef
  • Registratie: Januari 2004
  • Laatst online: 15-09 09:16
Ik heb ooit een javascriptje gebruikt die dit deed... Even zoeken...

* Blaast stof van script *

Hier is ie: http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm

Echter ben ik het Disjfa eens dat je beter kunt nadenken over een oplossing zonder frames...

.