Archive for March, 2014

How To Set Google Maps as Background for Webpage

Monday, March 24th, 2014

You can zoom in and out, drag to view closer, turn on street view if available and also change to satellite view in your page background. Basically there are two layers in this page. One is your contact page fields and another one is oof course the Google Map.  Here is a sample screenshot of how it may look like.

Here we use the z-index property of CSS to define the stack order. The form has a higher z-index than Google Maps and thus the latter appears in the background.

Let’s move to coding part now.

We are using two div elements . One is having id as google map and another one is contact form. Our map will render inside the div with id as googlemap and all contents inside the contact form will be added into div with id contactform.

<div id="googlemaps"></div>
<div id="contactform">
 <!—If you want you can use google forms here -->

Now we can do something with design part.

We have to add the google map to entire page. So that we are using height and width as 100%. But the contact form will have a width of fixed length. You can make your contact form little transparent by changing the opacity.

#googlemaps {

height: 100%;

width: 100%;


top: 0;

left: 0;

z-index: 0; /* Set z-index to 0 as it will be on a layer below the contact form */


#contactform {

position: relative;

z-index: 1; /* The z-index should be higher than Google Maps */

width: 300px;

margin: 60px auto 0;

padding: 10px;

background: black;

height: auto;

opacity: .45; /* Set the opacity for a slightly transparent Google Form */

color: white;


Let’s do some scripts now.

Go to and find the latitude and longitude of your place which want to show in the map, and replace that co-ordinates in variable position (line #7).

Next step is really easy for you. Just copy below code and past it in your page (Add it in footer or bottom of page. It will help to load page more quickly).

<!-- Include the Google Maps API library - required for embedding maps -->
<script src=""></script>

<script type="text/javascript">

// The latitude and longitude of your business / place
var position = [27.1959739, 78.02423269999997];

function showGoogleMaps() {

var latLng = new google.maps.LatLng(position[0], position[1]);

var mapOptions = {
zoom: 16, // initialize zoom level - the max value is 21
             streetViewControl: false, // hide the yellow Street View pegman
 scaleControl: true, // allow users to zoom the Google Map
mapTypeId: google.maps.MapTypeId.ROADMAP,
center: latLng

map = new google.maps.Map(document.getElementById('googlemaps'),

// Show the default red marker at the location
marker = new google.maps.Marker({
position: latLng,
map: map,
draggable: false,
 animation: google.maps.Animation.DROP
google.maps.event.addDomListener(window, 'load', showGoogleMaps);

Creating Simple Form

Friday, March 21st, 2014

Create a simple html form. Example is given below. You can change fields as per your needs. (Note that you should have a file called “function.php” which does the message posting function)

<form id="testForm" action="comment.php" method="post"> 
    Name: <input type="text" name="name" /> 
    Message: <textarea name="message"></textarea> 
    <input type="submit" value="Post Message" /> 

Load JQuery script to your page. This will initialize when the DOM is ready

    // loading jquery scripts to your page
    <script src=""></script> 
    <script src=""></script> 

        // waiting for loading DOM
        $(document).ready(function() { 
            // bind 'testForm' and provide a simple callback function 
            $('#testForm').ajaxForm(function() { 
                alert("Thank you. Your message posted!"); 

When you submit the form,  name and message fields will be passed to function.php. If the status return by server is success then user will see Thank You message which you given.


How To Improve Domain Authority Of Your Website

Wednesday, March 12th, 2014

Domain authority is a term well known to SEO specialists and online marketing experts. It represents the performance of a website on search engines compared to competitors. Today in this post I’ll discuss in detail some tips and practices you can apply to improve domain authority of your website or blog.

1. Domain Authority and Site Optimization

Firstly, you should think about the SEO of your site, instead of Domain Authority. In accordance with Moz, in order to improve the domain authority of your site, you need to work on On site as well as Offsite SEO. Optimization of the website’s SEO forms the foundation and performs extremely important role in the improvement of domain authority, considering which, you need to look at keywords, headers tags, Image Alt Tags, Meta Tags, organization, site structure, navigation, proper title tags & many other vital aspects of off site and on site SEO.

Optimizing on-site is what influences quickly the position and the authority of a website domain. The content should be user oriented. For this it is necessary to optimize on-site, and on-page SEO.

Site Structure:

  • Having a structure easy to use
  • Use anchor text
  • Add a site-map
  • Have on every page a limited number of links.

On-page SEO:

  • Vary the keywords
  • Use permalinks concise
  • Put a “New posts” in the sidebar

2. Create Quality Content

Quality content is often the key to success for a good authority. Quality content does not mean “the content to the content” but new content, relevant and value-added that will interest your audience. Content is the king, however if you are thinking that simply by increasing the amount of articles, you can win the race than you are doing a big mistake because Domain authority is only improved if you have produced quality content that people are reading, sharing and searching as well. Furthermore, Google hates duplicate content and considers it keyword stuffing, therefore always try to avoid it.

How to produce good content?: In seeking the most relevant information for your target;

  • By producing unique content
  • Detailing up the information you want to share
  • By producing content that will provide links to your site
  • By producing Evergreen content (that never dies)

How to promote your content?

  • By attracting influencers
  • By sharing your content on social networks
  • By increasing the number of contact on your email list
  • By advertising on social networks
  • By posting content everyday
  • Reaching out “link builder”?
  • By coming into contact with the “linkers” that you already know
  • By coming into contact with influencers in your field.

3. Social Media & Domain Authority

Social media is the best way to expose your brand and your website hence helping your improve domain authority. Join major social networks and update your profiles. You may consult with professionals for your graphic and increase your credibility. Next promote your website for your presence on social networks and acquire followers influential on social networks to increase brand awareness and credibility on the canvas.

4. Build Brand Name

Building a strong brand will increase the domain authority of your website. Users must quickly and easily make the connection between your brand and your site.

Tips To Increase brand awareness: Use your off-line marketing activities and start promoting your brand on social networks. Promote an event of your industry and Organize events on regular basis.

Create commitment: Always respond to questions and comments from your visitors and organize quizzes related to your industry. Create a blog to encourage your target to come back more often and reward the most active users by offering small gifts, coupons …

Confidence Index: (a) Enter contests (b) Imagine in magazines (c)Add your site trusted insignia.

5. Getting Quality Backlinks

Backlinks is also one of the most valuable tool used for the improvement of the domain authority of your site. Huge no: of backlinks are definitely going to boost your website’s domain authority, but do keep in mind that you should only prefer High Domain & Page authority websites. Other than that, always try getting backlinks from different (High authority sites), instead of 1 or 2

6. Build Relationships To improve Domain Authority

Maintaining a good relationship with the other influencers in your niche also contribute towards improving domain authority. Bloggers and marketers who have good relations with you will not hesitate to promote your site around them. The links that point to your website bring you notoriety and fame bring you the authority. We must therefore work to increase your good relations.

Increase your relationships with influencers: Building relationships with infuencers is difficult thing to do as they super busy people but you get their attention by following below tips;

  • Share their contents
  • Interact with them
  • Praise their work
  • Ask their opinion
  • Build alliances
  • Help your community.

7. Domain Athority & Domain Age

After applying all the above techniques, the last thing you should do is wait wait and wait, in order to see a decent amount of increase in your domain authority.