Archive for August 9th, 2007

how to place a picture on top of content

Thursday, August 9th, 2007

here the picture doesnot move but the content and page moves up and down

#footer {
position: fixed;
bottom: 0px;
left: 0px;
z-index: 5;
height: 25px;
width: 100%;
padding-left: 10px;
line-height: 25px;
vertical-align: middle;
font: 11px arial,helvetica,sans-serif;
background: #D2E0CA;
color: #323232;
margin: 0px;
float: none;
}

use the id footer in the page ..

Posted By : B.Suresh (http://www.tryangled.com)

Posted by Suresh B

how to put a overflow scroll in a table (using DIV)

Thursday, August 9th, 2007

<div style=”overflow:auto;height:280px;”>
</div>

u can fit the width or the height

when it goes more than that . It creates a scroll and the page does not get affected by this .

Posted by: B.Suresh (Tryangled Solutions)

Posted by Suresh B

how to get the self file name of the web page

Thursday, August 9th, 2007

here is the code through which you can get the current filename .

this is used in php where u will manipulate some operation using filename .

<?
$currentFile = $_SERVER[”SCRIPT_NAME”];
$parts = Explode(’/', $currentFile);
$currentFile = $parts[count($parts) - 1];
?>

Posted By : B.Suresh

Posted by Suresh B

how to get the ip address of a remote site

Thursday, August 9th, 2007

here is the code in php to get the host

$addr = getenv(REMOTE_ADDR);
$remote = gethostbyaddr($addr);

Posted by Suresh B