1
Rachel
How can I put an iframe in a custom block?
  • 2004/1/29 17:07

  • Rachel

  • Just popping in

  • Posts: 16

  • Since: 2003/12/24


How can I make an iframe in a custom block?

I tried this:

//<?php
<div align='center'>
<iframe SRC='http://www.google.com' width='100%' height='750' marginwidth='35' marginheight='0' hspace='0' vspace='0' frameborder='0'>
</iframe><br>
</div>

?>//
and saved the custom block as php file but nothing showed up. Then I removed the <?php and ?> at the end in case that was already included but it still didn't work.

The iframe must be in a block that I can position, not just the whole page

Thanks for any help

2
Mithrandir
Re: How can I put an iframe in a custom block?

you saving the block as PHP or HTML?

It doesn't look like it is using any php code, so saving it as HTML and leaving out the <?php ?> tags will possibly work.

3
Rachel
Re: How can I put an iframe in a custom block?
  • 2004/1/29 18:28

  • Rachel

  • Just popping in

  • Posts: 16

  • Since: 2003/12/24


Thank you Mithandir, saving as html did work , athough I had to change my iframe tag a bit also.

4
Brad
Re: How can I put an iframe in a custom block?
  • 2004/1/29 19:18

  • Brad

  • Not too shy to talk

  • Posts: 150

  • Since: 2003/12/4


For the lurking members here, could you detail how you changed your iframe tag?

5
Rachel
Re: How can I put an iframe in a custom block?
  • 2004/1/29 21:06

  • Rachel

  • Just popping in

  • Posts: 16

  • Since: 2003/12/24


For sure;

Here is the actual code straight from my custom block. Its saved as html in the options. There's some stuff in this tag that could come out, like allowtransparency/style="background-color:transparent;z-index:4" but I'll leave them just as they are for you to play with.

<div align='center'>
<IFRAME align=center width=100% height=600 scrolling="no" allowtransparency="true" frameborder=0 style="background-color:transparent;z-index:4" src="http://www.wetterzentrale.de/pics/D2u.html" ></IFRAME>
</div>

Login

Who's Online

199 user(s) are online (132 user(s) are browsing Support Forums)


Members: 0


Guests: 199


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits