Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
MarkyBear
Hangin' Around



Joined: Mar 27, 2005
Posts: 39

PostPosted: Sun Jun 05, 2005 9:07 am Reply with quote

Quick question(s) here, I want to add the ESPN Bottomline task bar in an IFrame so it works exactly like the following site here:

Only registered users can see links on this board! Get registered or login!

Ok, the instructions from ESPN read as follows:

Quote:
To put the BottomLine on your site, simply create a frameset with the bottom frame being exactly 44 pixels tall and point it to this address: http://espn.go.com/bottomline/espnewsbottomlinebasic.html . You must follow these directions exactly and point to this exact address for your implementation to be acceptable to ESPN. We change our BottomLine code quite frequently as improvements are made and pointing to this address ensures you are always getting the most current code.


What I did, was make an . htm file and I added the followings to it:

Code:
<scr~ipt LANGUAGE="Javascr~ipt">

<!--

if (window != top) top.location.href = location.href;

// -->
</scr~ipt>
</head>

<frameset rows="*,74" frameborder="NO" border="0" framespacing="0">
 
       <frame src="/index.php" name="mainFrame">
 
  <frame src="http://espn.go.com/bottomline/espnewsbottomlinebasic.html"  name="bottomFrame" frameborder="no" scrolling="NO" noresize marginwidth="0" marginheight="0">
</frameset>
<noframes><body>

</body></noframes>
</html>


And in my . htacess, I changed the following line to this:

Code:
DirectoryIndex index.htm index.php index.html /noindex.php


It does indeed work great! If you want to view my site in the frame, you just use the url: www.mysite.com and if you want to view the site without the frame, you use the URL: www.mysite.com/index.html

In all honesty, I completely lucked out in doing this, I'm still new to all this and I wanted to know if I did do this right, all though it works, it still may cause problems...

Did I do this right and/or is their any security issues with this...etc???

Thanx in advance for any help that is given!
 
View user's profile Send private message
Holbrookau
Hangin' Around



Joined: Jun 25, 2004
Posts: 32

PostPosted: Sun Jun 05, 2005 8:47 pm Reply with quote

Unless the rest of your page/site needs frames then just use an IFrame and put it into your existing html.
For a straight HTML page:
Code:
<iframe name="espnbar" src="http://espn.go.com/bottomline/espnewsbottomlinebasic.html"

frameborder="0" width="100%" height="44" scrolling="no"></iframe>

For a PHP page:
Code:
echo "<iframe name=\"espnbar\" src=\"http://espn.go.com/bottomline/espnewsbottomlinebasic.html\"

frameborder=\"0\" width=\"100%\" height=\"44\" scrolling=\"no\"></iframe>";
 
View user's profile Send private message
MarkyBear







PostPosted: Sun Jun 05, 2005 10:09 pm Reply with quote

Thank you, I'll give that a try!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©