Use Css.
<script type = 'text/css'>
body {
background-image:url(linkToImage.format);
}
</script>
or
<script type = 'text/css'>
body {
background-color:#FF0000;
}
</script>
Put that in your <head> or put it in a seperate stylesheet without the <script> tags to allow it to apply to all your pages
Last edited by sparks (2011-09-02 13:49:56)
Offline
Thanks! Can you give me the code for a commenting system, with the default username Guest?
Offline
WindowsExplorer wrote:
Thanks! Can you give me the code for a commenting system, with the default username Guest?
this is going to require PHP and SQL
and here is it (MIGHT HAVE BUTS I AM TIRED WHILE WRITING THIS FOR YOU !)
Make sure u have an SQL setup before running this.
the code for adding comment
<?php
$com = $_GET['comment'];
$name = $_GET['usr'];
$con = mysql_connect('localhost','root','');
$exis = mysql_select_db('comm');
if(!exis){
mysql_query('create database comm');
mysql_select_db('comm');
mysql_query('create table comments(NAME varchar(255),MSG varchar(512));
}
$q = mysql_query("insert into comments values('".$name."','".$com."')");
mysql_close();
?>the code for displaying them
<?php
$con = mysql_connect();
mysql_select_db('comm');
$q = mysql_query('select * from comments');
echo '<?xml version=1.1> <msgs>';
while($r = mysql_fetch_assoc($q)){
echo '<msg><name>'.$r['NAME'].'</name><msg>'.$r['MSG'].'</msg>';
}
echo '</msgs>';
?>on client side you will have to use javascript and HTML semantics
may i do it tomorrow ?? pl0x i am too tired and i need sleep
Last edited by fanofcena (2011-09-02 14:36:45)
Offline
sparks wrote:
I think maybe you should actually get some content on your site first
![]()
probably he got no clue on how hard is it to write this -.- i mean i can write the client aswell but i hope that you write it simply use xmlhttprequest (cross browser) over my post to paste em and a get request to post em please
lol it saves us both half the work
Offline