Log In · Register

 
 
Closed TopicStart new topic
PHP or iFrame..., how do I work them anyways???
hetecro
post Apr 14 2006, 12:32 AM
Post #1


Member
**

Group: Member
Posts: 18
Joined: Dec 2005
Member No: 322,170



OK, so I am setting up the site for http://www.glamgirlgifts.com, and they want where the links on the left and the header at the top never change or reload, and have the window on the right display everything.

So I have 2 pickles... 1. do I use one large php page and have all the different things show up in hidden tables, or do I use an iFrame, and set up the buttons to controll the iFrame?

2. HEEEEEELLLLLLLPPP!!!! I don't know a whole lot about scripting in PHP or iFrames. I know HTML, and I can do CSS, but I don't know how to controll an iFram using external links.

(BTW, I have set up some rollover states, but they don't seem to want to work in FF. I used the onmouseover = and onmouseclick = commands, but they are only responding in IE.)
 
add1cted2f1re
post Apr 14 2006, 12:38 AM
Post #2


My name is really Matt... if you care.
******

Group: Member
Posts: 1,442
Joined: Oct 2005
Member No: 258,234



do u mean, you want it set up like my site:

http://phoenixf1re.melilyn.com/index.php?
 
hetecro
post Apr 14 2006, 01:14 AM
Post #3


Member
**

Group: Member
Posts: 18
Joined: Dec 2005
Member No: 322,170



yes, kind of... yours even changes pages, I think this is what they're looking for, but they could want one that never changes in the address bar. I am sure this is what they want though. How does this work? everything is exactly the same mins you change the one thing?

BTW, is there a way to do it without it going to the top of the page each time???
 
add1cted2f1re
post Apr 14 2006, 01:43 AM
Post #4


My name is really Matt... if you care.
******

Group: Member
Posts: 1,442
Joined: Oct 2005
Member No: 258,234



its all php

u need a header first of all, in the header you will include the banner and side bar.

my header looks like:

CODE
<html>
<head>
<title>PhoenixF1re Designs</title>
<link href="style.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="images/favicon2.ico" >

<meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.GradientWipe(Duration=1)">
<meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.GradientWipe(Duration=1)">


</head>

<body><center>


<div id="container">
<a href="index.php"><img src="header.jpg" border="no" galleryimg="no"></a>

    <table width="100%" cellpadding="0" cellspacing="0">
    <tr><td width="10" style="font-size: 0px;">&nbsp;</td><td width="165" valign="top">
        <div class="header">Welcome!</div>
<hr color="aeaeae" />
            <div class="entry">
            When you need cursors, layouts, or graphics of any kind, this is the website that you need to come to.  I am capable of making almost anything that you can ask for and I fill requests super fast.
            </div>
        <div class="header">Navigation</div>
<hr color="aeaeae" />

            <div class="entry">
<B><CENTER>

        <a href="index.php">Home</a><BR>

        <a href="about.php">About</a><BR>

        <a href="gallery.php">Gallery</a><BR>

        <a href="cursors.php">Cursors</a><BR>

        <a href="resources.php">Resources</a><BR>

        <a href="http://phoenixf1re.melilyn.com/?page_id=3">Request</a><BR>

        <a href="http://phoenixf1re.melilyn.com/?page_id=10">Report</a><BR>
</B>

</center>
            
            </div>
        <div class="header">Mini Profile</div>
<hr color="aeaeae" />
            <div class="entry">
            <strong>Likes:</strong> Graphic design, friends, and listening to music<br>
            <strong>Dislikes:</strong> People who cannot take criticism, spiders, and my old work<br>
            
            <br>
            <b><a href="aboutme.php">Read More?</a></b>
            </div>
        <div class="header">Contact me</div>
<hr color="aeaeae" />
            <div class="entry">
            <strong>Email:</strong>  <a href="mailto:eycecrememan21@gmail.com">click</a>
                            </div>
        <div class="header">Affiliates</div>
<hr color="aeaeae" />
            <div class="entry">
<CENTER>
        <a href="http://www.hitherston.com" target="_blank"><img src="images/hf.gif" border="0"></a><a href="http://www.autumn-sky.org" target="_blank"><img src="images/autumnsky.gif" border="0"></a><a href="http://www.takecamera.com/insipidwalls/" target="_blank"><img src="images/iw.gif" border="0"></a><a href="http://www.takecamera.com" target="_blank"><img src="images/tc.gif" border="0"></a><BR><a href="http://www.illumineering.com/" target="_blank"><img src="images/bill.gif" border="0" Vspace=1></a><a href="http://www.infamous-mind.net" target="_blank"><img src="images/mike.gif" border="0" Vspace=1></a><a href="affiliates.php" alt="Apply"><img src="images/apply.gif" border="0" Vspace=1></a><BR><BR>
</CENTER>
<a href="myaffiliates.php"><B>Read More?</b></a>

    
</div>
        <div class="header">Rotations</div>
        <hr color="aeaeae" />
        <div class="entry">

<CENTER>
<a href="http://rotation.takecamera.com" target="_new"><img src="http://rotation.takecamera.com/images/rotationani2.gif" border=0 vspace=1></a><br>
<IFRAME SRC="http://www.takecamera.com/rotation/work.php?ID=Phoenixf1re" width=88px height=31px marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling="no"></IFRAME><br>
</CENTER>
<CENTER>
<IFRAME SRC="http://so-you.net/rotation/work.php?ID=Ph03nix" width=94 height=45 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling="no" allowTransparency="true" vspace=1></IFRAME>
</CENTER>



</div>



    

        <div class="header">Vote for Me!</div>
<hr color="aeaeae" />
            <div class="entry">
<CENTER>
            <a href="http://www.autumn-sky.org/topsites/in.php?id=13"><img src="http://www.autumn-sky.org/topsites/button.php?id=13" border="0" vspace=1 /></a><BR>

            <a href="http://www.magitek-designs.net/chimera/"><img src="http://www.magitek-designs.net/chimera/button.php?u=ZapatoDelFuego" alt="Chimera" border="0" vspace=1 /></a><BR>

            <a href="http://www.createblog.com/topsite/in.php?id=73"><img src="http://www.createblog.com/images/top2.gif" border="0" vspace=1 /></a>

</CENTER>            
            </div>
        <div class="header">Hands Off</div>
<hr color="aeaeae" />
            <div class="entry">
<center>
<a href="wp-admin/">WP Login</a>
<BR>
<script type="text/javascript" src="http://s24.sitemeter.com/js/counter.js?site=s24phoenixphoenix">
</script>
<noscript>
<a href="http://s24.sitemeter.com/stats.asp?site=s24phoenixphoenix" target="_top">
<img src="http://s24.sitemeter.com/meter.asp?site=s24phoenixphoenix" alt="Site Meter" border="0"/></a>
</noscript>
</center>
            </div>
    </td><td width="15" style="font-size: 0px;">&nbsp;</td><td width="525" valign="top">








<script type="text/javascript">



var persistmenu="yes" //"yes" or "no". Make sure each SPAN content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc)
var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page only

if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('.subsubmenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
    if(document.getElementById){
    var el = document.getElementById(obj);
    var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
        if(el.style.display != "block"){ //DynamicDrive.com change
            for (var i=0; i<ar.length; i++){
                if (ar[i].className=="submenu") //DynamicDrive.com change
                ar[i].style.display = "none";
            }
            el.style.display = "block";
        }else{
            el.style.display = "none";
        }
    }
}

function SwitchMenu2(obj){
    if(document.getElementById){
    var el = document.getElementById(obj);
    var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
        if(el.style.display != "block"){ //DynamicDrive.com change
            for (var i=0; i<ar.length; i++){
                if (ar[i].className=="subsubmenu") //DynamicDrive.com change
                ar[i].style.display = "none";
            }
            el.style.display = "block";
        }else{
            el.style.display = "none";
        }
    }
}



</script>




</HEAD>


idk if THAT helps, but thats what i have

save ur header file as header.php and and then on every page u have
include this FIRST:
CODE
<?php include('header.php'); ?>


that ensures that ur header (banner and sidebar) is on *EVERY page

(*on every that u have included the <?php include('header.php'); ?> tag)
 
*mipadi*
post Apr 14 2006, 02:53 PM
Post #5





Guest






If you have access to PHP, I'd use PHP. Frames are nasty things, and most web designers try to stay away from them. They make it very hard for users to bookmark a specific state of your website, whereas that it is easier to do with PHP.
 
hetecro
post Apr 15 2006, 11:15 PM
Post #6


Member
**

Group: Member
Posts: 18
Joined: Dec 2005
Member No: 322,170



I got it working with iFrames. It works well for now, and I'd use PHP, but I don't know how.
 
Mulder
post Apr 15 2006, 11:18 PM
Post #7


i lost weight with Mulder!
*******

Group: Official Designer
Posts: 4,070
Joined: Jan 2005
Member No: 79,019



so, im going to close this, but you can pm me if you want it reopened.
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: