IFrame Block Help

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   IFrame Block Help
mjhufford
CZ Active Member
 Codezwiz Site Donator
mjhufford has been a member for over 20 year's 20 Year Member
usa.gif arkansas.gif
Occupation: IT Industry
Age: 47
Gender: Male
Fav. Sports Team: Da Bears.
Website:
Status: Offline
Joined: Jul 01, 2004
0.04 posts per day
Posts: 288
Points: 15,094
  MSN Messenger 
Hi,

I took some code out of Telli's IFrame module and changed it to a block, but when the page loads, it justifies that block as the top of the page. So if the block is Center-Down and at the bottom, when you visit the page it automatically "scrolls" you down to that block.

Here's the block:


<?php

if (eregi("block-IFrame.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$height = 450; // Edit height of iframe
$width = 700; // Edit width of iframe                                         
$iframescreen = "www.google.com"; // Enter site to be displayed in block...must be [ Register or login to view links on this board. ]    

$content = "<center><iframe border=\"0\" src=\"http://$iframescreen\" width=\"$width\" height=\"$height\"></center></iframe>";

?>




_________________
"The pursuit of easy things makes men weak."
-David O. McKay
Back to top Reply with quote
#2   re: IFrame Block Help
mjhufford
CZ Active Member
 Codezwiz Site Donator
mjhufford has been a member for over 20 year's 20 Year Member
usa.gif arkansas.gif
Occupation: IT Industry
Age: 47
Gender: Male
Fav. Sports Team: Da Bears.
Website:
Status: Offline
Joined: Jul 01, 2004
0.04 posts per day
Posts: 288
Points: 15,094
  MSN Messenger 
Telli to the rescue? Or am I up a creek on this one? icon_sad.gif




_________________
"The pursuit of easy things makes men weak."
-David O. McKay
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum