<?php
if (arg(0) == 'node' && is_numeric(arg(1)) ) {
$node = node_load(arg(1));
if($node->type == 'article')
{
print $node->body['und'][0]['value'];
}
}
?>
Tuesday, May 15, 2012
Monday, May 14, 2012
Friday, May 11, 2012
favicon not displayed by Firefox when used HTML5
This is my page head:
------------------------------------------------------------
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="shortcut icon" href="/favicon.ico?" />
</head>
------------------------------------------------------------
As soon as I append at least the "?" after "ico" it works
Wednesday, May 2, 2012
Enable clean urls in windows 7
Find the below line on the wamp/Apache/httpd.conf file and remove the comment i.e # before the line."LoadModule rewrite_module modules/mod_rewrite.so"Thursday, March 15, 2012
Meta code for IE8( IE8 treat as a IE7 with this meta )
IE8 treat as a IE7 with this meta:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
Transition CSS (Rotate image with CSS)
#logo {
height: 77px;
width: 100px;
background: url(images/sprite.png) -10px -10px no-repeat;
direction: ltr;
-webkit-transition-duration: 0.5s;
-moz-transition-duration: 0.5s;
-o-transition-duration: 0.5s;
transition-duration: 0.5s;
-webkit-transition-property: -webkit-transform;
-moz-transition-property: -moz-transform;
-o-transition-property: -o-transform;
transition-property: transform;
cursor: pointer;
zoom: 1;
-webkit-backface-visibility: hidden;
}
#logo:hover {
-webkit-transform: rotate(-35deg) scale(1.1);
-moz-transform: rotate(-35deg) scale(1.1);
-o-transform: rotate(-35deg) scale(1.1);
}
Saturday, March 10, 2012
Text/Image selection backgound color through css
<style>
::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
::selection { background: #fe57a1; color: #fff; text-shadow: none; }</style>
Subscribe to:
Posts (Atom)