Jump to content

DJ Judas

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

DJ Judas's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks a lot kayess. I got the tables working and the link colours sorted thanks to your help, but ofcourse there's another problem now lol. I'm using cutenews, and whenever the add comment page is brought up ofcourse the comment form uses tables, and my table doesn't like having other tables inside it, and breaks / expands, causing havok to the layout of the page. I was under the impression that you could have a table inside another table as long as it was smaller than the outer table.
  2. Thanks for the reply, I shall use that method if I cannot get the table to work correctly soon I think. I have been told to do it this way by making the table like this: [code]<tr>         <?PHP echo '<td colspan="12" rowspan="9" bgcolor="EBEBEB" valign="top">';             echo '<table border="0" width="100%" height="100%" valign="top">'; switch ($page) { case "mixes": include('mixes_info.php'); break; case "links": include('links_info.php'); break; case "graphics": include('graphics_info.php'); break; default: include('home_info.php'); } echo '</table></td>'; ?>[/code] This works and now displays the pages correctly when uploaded, but I have another problem now which is baffeling me: The link colours on my pages have changed now I am loading the pages through php. My hyperlinks have changed from being the colour set in each seperate .php file. They all change to the same colour as the table background, and nothing I do can stop it. I've no doubt it's just a simple problem that someone will say 'oh you just have to do this...' and it will be fixed.
  3. Hi there, I currently run a site which uses frames (I know I know, bad Idea.....didn't know at the time). [a href=\"http://www.sfsworks.com\" target=\"_blank\"]http://www.sfsworks.com[/a] I have been trying for some time, with an almost non-existant knowledge of PHP to convert the main frame in my site into a table so that I can use those pretty 'index.php?location=' markings and generally move away from the use of frames. I cannot get it to work though and am completely out of ideas about what might be going wrong (probably most of the code I'm trying to use). here is the code I currently use for my frame: [code]<tr>         <td colspan="12" rowspan="9" bgcolor="EBEBEB">             <!-- Content -->             <iframe src="home_info.php" name="content" frameborder="0" width="100%" height="100%" allowtransparency="true"></iframe></td>         <td>             <img src="images/spacer.gif" width="1" height="166" alt=""></td>     </tr>[/code] And this is the code I'm trying to replace it with: [code]<?PHP $location=$_GET['location']; if (empty($location)) { $location='index.php'; } changelocation($location); function changelocation($location) { echo '<table colspan="12" rowspan="9" bgcolor="EBEBEB>'; echo '<tr>';             <!-- Content --> echo '<td width="224" bgcolor="EBEBEB" border="0" width="100%" height="100%">'; switch ($location) {     case '':         include ('home_info.php');         break;     case 'mixes':         include ('mixes_info.php');         break; } echo '</td>'; echo '</td></tr></table>'; ?>[/code] Any help would be much appreciated. Thanks.
  4. [!--quoteo(post=351234:date=Mar 2 2006, 10:33 PM:name=Christopher Robin)--][div class=\'quotetop\']QUOTE(Christopher Robin @ Mar 2 2006, 10:33 PM) [snapback]351234[/snapback][/div][div class=\'quotemain\'][!--quotec--] What you want to do is make the links go to the iframe? If so that's very easy to do, let me know. [/quote] Yes that's exactly what I want to do. Because the link [a href=\"http://www.sfsworks.com/judas_mix13.php\" target=\"_blank\"]http://www.sfsworks.com/judas_mix13.php[/a] when used from an external site will just show up without the content held in the sites index.php I want to make it so that the link loads the index.php but loads judas_mix13.php in an iframe called 'content'. I've tried lots of different things and I'm sure as soon as I see how to do it I'll say 'Ah yeah....' but any help would be much appreciated.
  5. Hi there, This seems like one of those problems that is very simple and I'm sure there is a simple way to achieve my goal, but, as a complete PHP blank I cannot figure out how to do it. I run a site: [a href=\"http://www.sfsworks.com\" target=\"_blank\"]http://www.sfsworks.com[/a] The site uses an IFrame in the center of the page where the content is displayed. I wish to post links to [a href=\"http://www.sfsworks.com/judas_mix13.php\" target=\"_blank\"]http://www.sfsworks.com/judas_mix13.php[/a] but ofcourse, when I do this, because of the IFrame it does not appear with the sites template. Is there a way I can link to [a href=\"http://www.sfsworks.com/judas_mix13.php\" target=\"_blank\"]http://www.sfsworks.com/judas_mix13.php[/a] so that it will appear with the content around it held in the index file? Any help is much appreciated. Thanks.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.