PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
MarkyBear
Hangin' Around


Joined: Mar 27, 2005
Posts: 39

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

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 to the forums!


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:
Only registered users can see links on this board!
Get registered or login to the forums!
. 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:
Only registered users can see links on this board!
Get registered or login to the forums!
and if you want to view the site without the frame, you use the URL:
Only registered users can see links on this board!
Get registered or login to the forums!


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 Back to top

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
Hangin' Around


Joined: Mar 27, 2005
Posts: 39

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

Thank you, I'll give that a try!
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum