Monday, 22 February 2016

CSS Mouseover Zoom Effect

Mouseover Zoom Effect


Use this CSS

<style>
.image{
-webkit-transition: 0.4s ease;
transition: 0.4s ease;
-moz-transform:0.4s ease;
}

.image:hover{
opacity: 0.8;
transform: scale(1.05);
-webkit-transform: scale(1.08);
-moz-transform: scale(1.08);
}
</style>

Friday, 22 January 2016

Change and Update WordPress URLS in Database When Site is Moved to new Host

UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl';

UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl');

UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl');

UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldurl','http://www.newurl');

Wednesday, 13 January 2016

How to get href attribute value using PHP?

<?php

$str = '<a href="http://phpkishan.blogspot.in/">PHP Kishan Kachhadiya</a>';
$s = explode('href="',$str);
$t = explode('">',$s[1]);
print $t[0];

?>

Monday, 7 December 2015

HTML Page Title Marquee

<!-- Add the event loader to the body tag as below -->
<title> Marquee Use in HTML Page Title</title>

<body onLoad="scrlsts()">
<h1>TITLE MARQUEE</h1>
<h2> Marquee Use in HTML page title</h2>
</body>

<!-- Add the script to the HEAD of your document -->
<script LANGUAGE="JavaScript">
//alert(document.title);
<!-- Begin
var scrl = document.title+" ";

function scrlsts() {
 scrl = scrl.substring(1, scrl.length) + scrl.substring(0, 1);
 document.title = scrl;
 setTimeout("scrlsts()", 300);
 }
//  End -->
</script>

Thursday, 3 December 2015

Remove  Characters in HTML

Thread: PHP - includes ( characters)

Try putting this after your <head> tag:

Code:
                <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>