Avatar billede mc.lucifer Praktikant
22. marts 2002 - 13:21 Der er 9 kommentarer og
1 løsning

Iframe

Kan man i en Iframe bestemme over det indhold der kommer ind via Css.

Forklaring

Jeg har en Tabel men en Iframe, DEr vil jeg gerne have nyheder fra Børsen " http://www.borsen.dk/homenews/ " Og det fungere også fjong, Meeeen jeg bryder mig ikke specielt om børsensvalg af skrifttype samt skrift størelse så derfor kan man have et link i stil med

http://www.borsen.dk/homenews/publicnews.php?count=5&color1=006699&color2=ffffff&color3=000000&color4=ffffff&color5=000000

I en Iframe og så sselv vælge text type. eller findes der en anden måde at klare den lille sag

MC
Avatar billede phrozia Juniormester
22. marts 2002 - 13:24 #1
Prøv at åbne denne her fil i din iframe:

<HTML>
  <HEAD>
    <TITLE>homenews ©</TITLE>

<LINK rel="stylesheet" type="text/css" href="style.css";>

  </HEAD>

<BODY>

<?php include("http://www.borsen.dk/homenews/publicnews.php?count=5&color1=ffffff&color2=0000000&color3=000000&color4=ffffff&color5=000000"); ?>

</BODY>
</HTML>
Avatar billede phrozia Juniormester
22. marts 2002 - 13:27 #2
eller prøv at rette til

<?php include("http://www.borsen.dk/homenews/publicnews.php?count=5"); ?>
Avatar billede mc.lucifer Praktikant
22. marts 2002 - 13:27 #3
phrozia, Du ikke

<!-- Main frame samt nyheder -->
      <table>
<tr>
   
    <td class="Mainframe"></td>
    <td class="Nyheder"><?php include("http://www.borsen.dk/homenews/publicnews.php?count=5&color1=ffffff&color2=0000000&color3=000000&color4=ffffff&color5=000000"); ?>

</td>
</td>
</tr>
</table>
Avatar billede mc.lucifer Praktikant
22. marts 2002 - 13:27 #4
du ikke = dur ikke
Avatar billede phrozia Juniormester
22. marts 2002 - 13:29 #5
Nej nej..!

<!-- Main frame samt nyheder -->
      <table>
<tr>
   
    <td class="Mainframe"></td>
    <td class="Nyheder">

<IFRAME src="news.html" width="99%" height="99&"
            scrolling="auto" frameborder="0" name="iframe">
</IFRAME>

</td>
</td>
</tr>
</table>


news.html:

<HTML>
  <HEAD>
    <TITLE>homenews ©</TITLE>

<LINK rel="stylesheet" type="text/css" href="style.css";>

  </HEAD>

<BODY>

<?php include("http://www.borsen.dk/homenews/publicnews.php?count=5"); ?>

</BODY>
</HTML>
Avatar billede phrozia Juniormester
22. marts 2002 - 13:38 #6
How.. der er 3 fejl!!

& er rettet til % i height og news.html skal være .php

<!-- Main frame samt nyheder -->
      <table>
<tr>
   
    <td class="Mainframe"></td>
    <td class="Nyheder">

<IFRAME src="news.php" width="99%" height="99%
            scrolling="auto" frameborder="0" name="iframe">
</IFRAME>

</td>
</td>
</tr>
</table>
Avatar billede phrozia Juniormester
22. marts 2002 - 13:41 #7
Blaah...

der mangler en " i iframe'n..

<IFRAME src="news.php" width="99%" height="99%"
            scrolling="auto" frameborder="0" name="iframe">
</IFRAME>
Avatar billede mc.lucifer Praktikant
22. marts 2002 - 13:48 #8
virker stadig ikke

www.romdata.dk/tl/index.php

Index.php:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
    <title>Untitled</title>
    <LINK rel="stylesheet" type="text/css" href="style.css">
</head>

<body>


      <table class="top">
      <tr>
      <td></td>
      </tr>
      </table>
      <table class="menu">
      <tr>
      <td>TL-Invest Fredericia APS</td>
      <td>Hvorfor TL-Invest Fredericia APS?</td>
      <td>Organisation</td>
      <td>Økonomisk Bistand</td>
      <td>Kontakt</td>
      </td>
      </tr>
      </table>
      <!-- Main frame samt nyheder -->
      <table>
<tr>
   
    <td class="Mainframe"></td>
    <td class="Nyheder"><IFRAME src="news.php" width="99%" height="99%"
            scrolling="auto" frameborder="0" name="iframe"></IFRAME> 
 

 

</td>
   
</td>
</tr>
</table>



<table class="bund">
<tr>
    <td>Copyright&copy; TL-Invest Fredericia APS</td>
</tr>
</table>

   

</body>
</html>

News.php:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<HTML>
  <HEAD>
    <TITLE>homenews ©</TITLE>

<LINK rel="stylesheet" type="text/css" href="style.css";>

  </HEAD>

<BODY>

<?php include("http://www.borsen.dk/homenews/publicnews.php?count=5&color1=000000&color2=ffffff&color3=000000&color4=ffffff&color5=000000"); ?>

</BODY>
</HTML>

Style.css:
a:link {
    color : Black;
    text-decoration : none;
}

a:visited {
    color : Black;
    text-decoration : none;
}

a:hover {
    color : Black;
    text-decoration : none;
}

a:active {
    color : ##7E9AEB;
    text-decoration : none;
}

body,{
    scrollbar-3dlight-color : #003399;
    scrollbar-arrow-color : #FFFFFF;
    scrollbar-darkshadow-color : #FFFFFF;
    scrollbar-face-color : #F4F4F4;
    scrollbar-highlight-color : #FFFFFF;
    scrollbar-shadow-color : #003399;
    scrollbar-track-color : #FFFFFF;
    text-align : center;
    background-color :#334D66;
}


.top
{
    background-image : url(grafiktop.gif);
    height : 130px;
    width : 780px;
    border : double;
    background-color : White;
}

.menu
{
    border : double;
    height : 10px;
    width : 780px;
    font : normal normal 10px "MS Serif", "New York", serif;
    text-align : center;
    word-spacing : 40px;
    background-color : White;
}

.Mainframe
{
    width : 627px;
    border : double;
    height : 40pc;
    background-color : White;
}

.Nyheder
{
    width : 120px;
    height : 40pc;
    border : double;
    background-color : White;
   
   
}

.bund
{
    width : 780px;
    height: 15px;
    border : double;
    background-color : White;
}

MC
Avatar billede mc.lucifer Praktikant
24. marts 2002 - 11:43 #9
hmmm ingen help
Avatar billede phrozia Juniormester
02. april 2002 - 16:28 #10
Din include skulle jo være:

<?php include("http://www.borsen.dk/homenews/publicnews.php?count=5"); ?>
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
Kurser inden for grundlæggende programmering

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

Seneste spørgsmål Seneste aktivitet
1 min siden Libre Office Impress Af Frank i Andre styresystemer
I dag 11:47 VB script Af Jenshentze i Word
I dag 11:21 Popup ved opstart Af mort1 i Windows
04/0918:50 Slet lokal konto Af ErikHg i Windows
04/0916:05 Ændre tal i en celle Af xvid i Excel