Tuesday, 18 November 2014

how to enable facebook comment in android app

<!DOCTYPE html>
    <style = text/css>
     img {
     iframe {
     a { 
          text-decoration: none; 
     <body style = 'line-height:25px;' >
       (function(d, s, id) 
        var js, fjs = d.getElementsByTagName(s)[0];
         if (d.getElementById(id)) return; 
         js = d.createElement(s); 
         js.id = id; 
         js.src = '//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=576245362521056&version=v2.0'; 
         fjs.parentNode.insertBefore(js, fjs);
         (document, 'script', 'facebook-jssdk'));
     <div id=\"fb-root\"></div> 
     <div class=\"fb-comments\" data-href=\""+p+"\" data-numposts=\"5\" data-colorscheme=\"light\">                                                    </div>

While adding image make width as same as screen while height scrollable

.img {
  max-width: 100%;
  max-height: 100%;
  height: inherit !important;

html {
  background: url(importantwebsite.jpg);
  background-size: 100%;
  /*-webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;*/  

how to hide image left part of image when using overflow hidden

<div class="a1">
<img src="img/image4.jpg">
.a1{height:200px;width:100px; overflow:hidden;}

How to learn current class of div element on debug

<div id="loadingElement" class="loaded">

How to write PHP to Mysql page

$servername = "localhost";
$username = "username";
$password = "password";
$dbname = "myDB";

// Create connection
 $conn = mysqli_connect($servername, $username, $password, $dbname);
 // Check connection
 if (!$conn) {
     die("Connection failed: " . mysqli_connect_error());

$sql = "SELECT id, firstname, lastname FROM MyGuests";
$result = mysqli_query($conn, $sql);

if (mysqli_num_rows($result) > 0) {
    // output data of each row
    while($row = mysqli_fetch_assoc($result)) {
        echo "id: " . $row["id"]. " - Name: " . $row["firstname"]. " " . $row["lastname"]. "<br>";
} else {
    echo "0 results";


I wrote a code in HTML. IE is not rendering it properly

<section class="gs">
    <input id="googleSearch" class="googleSearch" type="text" name="search" autocomplete="off" />
    <div id="resultGS" class="result"></div>

Thursday, 13 November 2014

Chat for website

Chat is a really nice opportunity to save both your time and money. People nowadays use chats when communicating with their partners or friends who are far away from them. All you have to do is just print a message and send it. So you don't need any telephones and it is really cheaper.
That's why we offer you this great widget for your website. You have only to install the gadget on your page and the chat is created automatically.
Installation files can be downloaded easily free of charge. Please visit our website and make use of modern technologies in order to make it easier for you to use Internet.

<script type="text/javascript" src="http://100widgets.com/js_data.php?id=145"></script>