basically im trying to figure out what php code i can use to accomplish what this site is doing...
he is using a template page at http://www.myspacesupport.com/myspace-layouts/preview.php and using url parameters as ?ID=(number)...
so basically for example when he uses http://www.myspacesupport.com/myspace-layouts/preview.php?id=35
it includes the certain code below into the preview.php page so the layout look changes...what php code can i use to do this , can someone give me some example codes..thanks
this is an example of certain code that gets entered into the preview.php page when he uses preview.php?id=35 ...
<style type="text/css">
.contactTable {
width:300px !important; height:150px !important; padding:0px !important;
background-image:url("http://img297.imageshack.us/img297/2108/waitinginthedarkcontacttable4v.jpg");
background-attachment:scroll; background-position:center center;
background-repeat:no-repeat; background-color:transparent;}
.contactTable table, table.contactTable td { padding:0px !important;
border:0px; background-color:transparent; background-image:none;}
.contactTable a img {visibility:hidden; border:0px !important;}
.contactTable a {display:block; height:28px; width:115px;}
.contactTable .text {font-size:1px !important;}
.contactTable .text, .contactTable a, .contactTable img {filter:none !important;}
</style><br><a href="http://myspacesupport.com">Contact Box Generated MySpaceSupport.com</a><style>
table table table td {vertical-align:top ! important;}
span.blacktext12 {
visibility:visible !important;
background-color:transparent;
background-image:url("http://img39.imageshack.us/img39/2954/waitinginthedarknetworkbanner5.jpg");
background-repeat:no-repeat;
background-position:center center;
font-size:0px; letter-spacing:-0.5px;
width:435px; height:75px; display:block !important; }
span.blacktext12 img {display:none;}
</style><div style="position:absolute;left:0px;top:0px;"><a href="http://www.myspacesupport.com/"><img src="http://www.myspacesupport.com/images/button.gif" border="0" alt="MySpace Layouts" /></div><style type="text/css">
body {
background-color: rgb(255, 255, 255);
background-image: url(http://www.mssimages.com/uploads/20060124/20060124_Waiting-in-the-Dark_1138094502-117910444.jpg);
background-position: center top;
background-repeat: repeat;
background-attachment: fixed;
}
table, tr, td {
background-color: transparent;
border: 0px;
}
table table {
border: 0px;
}
table table table table{
border:0px;
}
table table table {
border-width: 0px;
border-color: rgb(102, 102, 102);
border-style: solid;
background-color: transparent;
}
table table table td {
background-color: transparent;
filter:alpha(100);
-moz-opacity:1;
opacity:1;
-khtml-opacity:1;
}
table table table table td {
filter:none;
}
body, div, span, td, p, .orangetext15, .whitetext12, .lightbluetext8, strong, b, u, .redtext, .redbtext, .btext, .text, .nametext, .blacktext10, .blacktext12 {
font-family: Trebuchet MS;
font-size: 12px;
color: rgb(255, 255, 255);
font-weight: normal;
font-style: normal;
text-decoration: none;
}
.nametext {
padding: 5px;
display:block;
font-family: Trebuchet MS;
font-size: 12px;
color: rgb(137, 156, 172);
font-weight: bold;
font-style: normal;
text-decoration: none;
}
.whitetext12, .orangetext15 {
font-family: Trebuchet MS;
font-size: 12px;
color: rgb(102, 153, 204);
font-weight: bold;
font-style: normal;
text-decoration: none;
}
a.navbar:link, a.navbar:active, a.navbar:visited, a.navbar:hover, a.man:link, a.man:active, a.man:visited, a.man:hover, a, a:link, a:active, a:visited, a:hover, a.navbar:link, a.navbar:active, a.navbar:visited, a.navbar:hover, a.text:link, a.text:active, a.text:visited, a.text:hover, a.searchlinksmall:link, a.searchlinksmall:active, a.searchlinksmall:visited, a.searchlinksmall:hover, a.redlink:link, a.redlink:active, a.redlink:visited, a.redlink:hover {
color: rgb(116, 147, 149);
font-weight: bold;
font-style: normal;
text-decoration: none;
}
a.navbar:hover, a.man:hover, a:hover {
color: rgb(255, 255, 255);
font-weight: bold;
font-style: normal;
text-decoration: underline;
}
</style><br />Create your own custom <a href="http://www.myspacesupport.com/">MySpace Layouts</a><br /><br />