my code:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<LINK REL="SHORTCUT ICON" HREF="Images/favicon.ico">
<title>LeagueOfAngels.com - Halo Hacking Site</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<base href="">
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
a:link {
color: #FFFF00;
}
a:hover {
color: #FF0000;
}
a:visited {
color: #FFFF00;
}
a:active {
color: #FFFF00;
}
-->
</style>
<link rel="alternate" type="application/rss+xml"
title="LeagueOfAngels.com RSS" href="/MusicVideos/Rss.xml">
<script type="text/javascript">
/***********************************************
* IFrame SSI script II- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
* Visit DynamicDrive.com for hundreds of original DHTML scripts
* This notice must stay intact for legal use
***********************************************/
//Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:
//Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:
var iframeids=["_body", "_gamercard"]
//Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):
var iframehide="no"
var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers
function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById)
resizeIframe(iframeids[i])
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
tempobj.style.display="block"
}
}
}
function resizeIframe(frameid){
var currentfr=document.getElementById(frameid)
if (currentfr && !window.opera){
currentfr.style.display="block"
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight;
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent){
currentfr.detachEvent("onload", readjustIframe) // Bug fix line
currentfr.attachEvent("onload", readjustIframe)
}
}
}
function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
if (iframeroot)
resizeIframe(iframeroot.id);
}
function loadintoIframe(iframeid, url){
if (document.getElementById)
document.getElementById(iframeid).src=url
}
if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller
</script>
</head>
<body>
<?php include(iplog/iplog.php); ?>
<?
if($session->logged_in){
echo "<img javascript:loadintoIframe('_gamercard', 'http://gamercard.xbox.com/' + $session->username + '.card')'>";
}
else{
echo "<img javascript:loadintoIframe('_body', 'http://gamercard.xbox.com/NA%20Webmaster.card')'>";
}
?>
<table width="95%" border="0" align="center" cellpadding="1" cellspacing="0" bgcolor="#CCCCCC">
<tr>
<td rowspan="2"><img src="Images/logo.jpg" width="600" height="143"></td>
<td valign="bottom"><iframe id="_gamercard" src="" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" align="middle" allowtransparency="yes" style="overflow:visible; width:100%; display:none"></iframe><div align="right">
</div></td>
</tr>
<tr>
<td valign="bottom" rowspan="1"><div align="right"><?/**
* User has already logged in, so display relevant links, including
* a link to the admin center if the user is an administrator.
*/
if($session->logged_in){
echo "<h1>Logged In</h1>";
echo "Welcome <b>$session->username</b>, you are logged in. <br><br>"
."[<a href=\"userinfo.php?user=$session->username\">My Account</a>] "
."[<a href=\"useredit.php\">Edit Account</a>] ";
if($session->isAdmin()){
echo "[<a href=\"admin/admin.php\">Admin Center</a>] ";
}
echo "[<a href=\"process.php\">Logout</a>]";
}
else{?>
</div>
<div align="right"></div></td>
</tr>
<tr align="center" valign="middle" background="Images/table.jpg">
<td colspan="2"><div align="left" class="style1"><a href="SubMenu/Home.php" target="_submenu">Home</a> | <a href="forum/index.php" target="_blank">Forum</a> | <a href="SubMenu/Modding.php" target="_submenu">Mods</a> | <a href="SubMenu/Bridging.php" target="_submenu">Bridging</a> | <a href="SubMenu/Xbox360.php" target="_submenu">XBox 360</a> | <a href="SubMenu/WhatYouNeed.php" target="_submenu">What You Need</a> | <a href="http://www.cafepress.com" target="_blank">Merchandise</a> | <a href="http://www.frappr.com/leagueofangelscom1" target="_blank">FrapprMap</a> | <a href="SubMenu/MusicVideos.php" target="_submenu">Music Videos</a> | </div></td>
</tr>
<tr>
<td height="24" colspan="2" rowspan="1" align="center" valign="top" background="Images/table.jpg"><iframe src="" name="_submenu" width="100%" height="100%" align="top" scrolling="no" frameborder="0" vspace="0" hspace="0"></iframe></td>
</tr>
</table>
<table width="95%" border="0"align="center" cellpadding="1" cellspacing="0">
<tr>
<td width="15%" rowspan="2" valign="top"><div align="center"><br>
<table width="85%" border=".5" cellspacing="0" cellpadding="1">
<tr>
<th height="45" background="Images/table.jpg" scope="col">Table Of Contents </th>
</tr>
<tr>
<td> </td>
</tr>
</table>
<br>
<table width="85%" border=".5" cellspacing="0" cellpadding="1">
<tr>
<th height="12" background="Images/table.jpg" scope="col">RSS Feeds </th>
</tr>
<tr>
<td><div align="center"><a href="MusicVideos/Rss.xml"><img src="Images/xml.gif" width="36" height="14" border="0"><img src="Images/rss.gif" width="36" height="14" border="0"></a> <a href="http://blog.contentious.com/archives/2003/10/18/what-are-webfeeds-rss-and-why-should-you-care" target="_blank"><br>
What Is RSS? </a></div></td>
</tr>
</table>
<br>
<table width="85%" border=".5" cellspacing="0" cellpadding="1">
<tr>
<th height="12" background="Images/table.jpg" scope="col"><div align="center">External Links </div></th>
</tr>
<tr>
<td><div align="center"><a href="http://www.phpbb.com/" target="_blank"><img src="Images/phpBB_88a.gif" width="88" height="31" alt="Powered by phpBB2" title="Powered by phpBB2" border="0" /></a><a href="http://www.realdealstubblefield.com/"><img border="0" alt="Get Firefox!" title="Get Firefox!" src="Images/safer.gif" width="88" height="31"><br>
<img src="Images/realdeal_badge.gif" width="88" height="31" border="0"><br>
</a></div></td>
</tr>
</table>
</div></td>
<td width="74%" height="100%" valign="top" bgcolor="#CCCCCC"><iframe id="_body" frameborder="0" scrolling="no" width="100%" height="100%" src="body.php"></iframe></td>
</tr>
<tr>
<td height="24" bgcolor="#CCCCCC"><div align="center"><a href="javascript:loadintoIframe('_body', 'about.php')">About <em>LeagueOfAngels.com</em></a> | <a href="javascript:loadintoIframe('_body', 'TermsOfUse.php')">Terms of Use</a> | <a href="javascript:loadintoIframe('_body', 'PrivacyPolicy.php')">Privacy Policy</a> | <a href="javascript:loadintoIframe('_body', 'ContactUs.php')">Contact Us</a> | <a href="javascript:loadintoIframe('_body', 'Help.php')">Help</a><br>
Copyright © 2006 <em>LeagueofAngels.com</em>. All rights reserved.</div></td>
</tr>
</table>
</body>
</html>
and for the session name image i had wanted the logged in user, whose username is his xbox live gamertag, to have their own gamercard to load. the source would see if they were logged in. if true, it would load their gamercard, if not, mine. also, it loads into an iframe in the upper corner of the page with target="_gamercard".
Code:
<?
if($session->logged_in){
echo "[<img src=\"http://gamercard.xbox.com/" + $session->username + ".card" target="_gamercard>] ";
}
else{
echo "[<img src=\"http://gamercard.xbox.com/NA%20Webmaster.card" target="_gamercard">] ";
}
?>
sorry it's such a mess but i started with php a month ago and am a n0ob.