Search This Blog

Monday, November 5, 2012

Google Language Translator best working

change your website in any language without any promotion like goole or any tab above your website. This is just an example you need to convert your website code from your own google account and use only css of my code.


<div style="position: fixed; right: 10px; top: 50px;">

<style>
body    { top:0px !important;}
.goog-te-banner    { display: none !important;}
.goog-te-combo, .goog-te-banner *, .goog-te-ftab *, .goog-te-menu *, .goog-te-menu2 *, .goog-te-balloon * { display: none !important;}
.goog-te-banner-frame    {display: none !important;}
.goog-te-gadget img    { display: none;}
.goog-te-gadget-simple a.goog-te-menu-value span:nth-child(1) { padding: 0 10px 0 0px;}
</style>
<div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, multilanguagePage: true}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
       
</div> 


For more information checkout our official website. http://www.shreejiinfotek.com/

Friday, October 12, 2012

Best Working You tube Video

 You can remove all the play and pause buttons as well as hide the you tube links on video... best working...

<iframe width="430" height="322" src="http://www.youtube.com/embed/wP_CDWFi4pg?modestbranding=1&rel=0&autoplay=1&controls=0" frameborder="0" allowfullscreen></iframe>

For more information checkout our official website.

Monday, October 1, 2012

Chrome Browser Hack Working best

Just ad your class inside the edia screen code.

@media screen and (-webkit-min-device-pixel-ratio:0)
{
.myClass
{
margin: 10px;
}
}


For more information checkout our official website.

Monday, August 20, 2012

Display Post by its category in wordpress

<ul>
<?php
global $post;
$args = array( 'numberposts' => 1000, 'offset'=> 0, 'category_name'=> 'Blog Posts' );
$myposts = get_posts( $args );
foreach( $myposts as $post ) :    setup_postdata($post); ?>
    <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul>

For more information checkout our official website.

Friday, August 17, 2012

Session Start & Close in PHP

Put this code on all the pages in admin for start a session....

<?php

session_start();
if(!isset($_SESSION['login_user'])){
    header("Location:../admin/index.php");
}

?>

use this code to unset or destroy the session..

unset($_SESSION['login_user']);

For more information checkout our official website.



Friday, July 13, 2012

Flying Twitter Bird on Your Website Best Working



<script
src="http://bloggerblogwidgets.googlecode.com/files/way2blogging.org-tripleflap.js"
 type="text/javascript"></script>
<script type="text/javascript">
 var twitterAccount = "niravpanchal29";
tripleflapInit(); </script>

For more information checkout our official website. http://www.shreejiinfotek.com/

Friday, June 15, 2012

Footer Code for sitemap in magento

<div style="float: left; width: 87%;"><ul>
<?php
 $h3h3=Mage::getModel('catalog/category')->getCollection();
foreach($h3h3 as $cat){
   
$cata=Mage::getModel('catalog/category')->load($cat->getEntityId());
if($cat->getEntityId() != 1 && $cat->getEntityId() != 2){
        echo "<li><a href='".$cata->getUrl()."'>".$cata->getName()."</a></li>";
}
}
?>
 </ul>

For more information checkout our official website.