Showing posts with label web site designer. Show all posts
Showing posts with label web site designer. Show all posts

Thursday, September 17, 2015

Text running jquery or Jquery marquee


In html language you used to use marquee to create text running on you web page it is very simple and easy to use and modify. but now i would like to show other you instant of this code by using jquery scripting language. it is very powerful and smooth.
you can use it in WordPress and blogger. by follow my step. just copy code and pass it into you code file.






Code:
1.Link jquery file store in Google drive
<script src="https://googledrive.com/host/0B_IbO3cULuN8RFlYLVl5eG96Nnc" type="text/javascript"></script><!-- jquery-1.3.2.min.js -->
  <script src="https://googledrive.com/host/0B_IbO3cULuN8YTVKVUpVa1lLN28" type="text/javascript"></script><!-- jquery.pause.js -->         
  <script src="https://googledrive.com/host/0B_IbO3cULuN8Nkk0NnV2NEdYcXc" type="text/javascript"></script><!-- jquery.marquee.js -->

2.CSS:
<style type="text/css">
.marquee-with-options{
float: right;
    margin-top: 5px;
    width: 800px;
    border: solid thin red;
    float:left;
    overflow:hidden;
}
</style>
3.Javascript & Jquery
<script type="text/javascript">
        document.documentElement.className = 'js';
    </script>
   <script>
            $(function(){
                var $mwo = $('.marquee-with-options');
                $('.marquee').marquee();
                $('.marquee-with-options').marquee({
                    //speed in milliseconds of the marquee
                    speed:9000,
                    //gap in pixels between the tickers
                    gap: 300,
                    //gap in pixels between the tickers
                    delayBeforeStart: 200,
                    //'left' or 'right'
                    direction: 'left',
                    //true or false - should the marquee be duplicated to show an effect of continues flow
                    duplicated: false,
                //on hover pause the marquee - using jQuery plugin https://github.com/tobia/Pause
                    pauseOnHover: true
                });
            });
        </script>
4.HTML
<div class='marquee-with-options'>
   Monday | Wednesday | Wednesday | Wednesday | Wednesday
 </div>

Jquery Even with JavaScript

In this lesson, you will know something about Jquery language you know, it is important in the JavaScript language and it has also actively used in the language or languages HTML and CSS.Now we're going to get it used JavaScript language, citing as an example the use of using even. Now let's start together:
1. dblclick: bauble click event use when use bauble click.
ex:
<h1>This is testing</h1>
<script>
$(document).ready(function(){
     $("h1").dblclick(function(){
        $(this).hide();
     });
});
</script> 

2. click: an event use when user one time click (single click).
ex:
<h1>This is testing</h1>
<script>
$(document).ready(function(){
     $("h1").click(function(){
        $(this).hide();
     });
});
</script>

3. mouseleave: an event use when user move mouse to other object.
ex:
<h1 class="mymouse">This is testing</h1>
<script>
$(document).ready(function(){
     $(".mymouse").mouseleave(function(){
        alert("Bye! now you leave from me");
     });
});
</script>

Friday, April 3, 2015

Detect browser in php code

This is PHP code to testing browser which is browser you are using or user access to:Firefox/Iceweasel, Opera, Mozilla (and other Gecko engine browsers) to MSIE, Netscape,Galeon, K-Meleon, Lynx, Safari/Chrome (and other WebKit engine browsers), KHTML / Konqueror, and Mac IE browsers like IE 5.1 and 5.2. This php code let's test together: 'Internet Explorer', '/firefox/i' => 'Firefox', '/safari/i' => 'Safari', '/chrome/i' => 'Chrome', '/opera/i' => 'Opera', '/netscape/i' => 'Netscape', '/maxthon/i' => 'Maxthon', '/konqueror/i' => 'Konqueror', '/mobile/i' => 'Handheld Browser' ); foreach ($browser_array as $regex => $value) { if (preg_match($regex, $user_agent)) { $browser = $value; } } return $browser; } function getOS() { global $user_agent; $os_platform = "Unknown OS Platform"; $os_array = array( '/windows nt 6.2/i' => 'Windows 8', '/windows nt 6.1/i' => 'Windows 7', '/windows nt 6.0/i' => 'Windows Vista', '/windows nt 5.2/i' => 'Windows Server 2003/XP x64', '/windows nt 5.1/i' => 'Windows XP', '/windows xp/i' => 'Windows XP', '/windows nt 5.0/i' => 'Windows 2000', '/windows me/i' => 'Windows ME', '/win98/i' => 'Windows 98', '/win95/i' => 'Windows 95', '/win16/i' => 'Windows 3.11', '/macintosh|mac os x/i' => 'Mac OS X', '/mac_powerpc/i' => 'Mac OS 9', '/linux/i' => 'Linux', '/ubuntu/i' => 'Ubuntu', '/iphone/i' => 'iPhone', '/ipod/i' => 'iPod', '/ipad/i' => 'iPad', '/android/i' => 'Android', '/blackberry/i' => 'BlackBerry', '/webos/i' => 'Mobile' ); foreach ($os_array as $regex => $value) { if (preg_match($regex, $user_agent)) { $os_platform = $value; } } return $os_platform; } $user_os = getOS(); $user_browser = getBrowser(); ?>



***** In WordPress  Create Slug and post page object

Add Gadget on Template Designer Layout of Google blogger

Add, remove, edit gadgets on your blog. Click and drag to rearrange gadgets. To change columns and widths, use the Template Designer.
At blogger of Google, gadgets are very simple Javascript and Html applications that you can be embedded in other apps and web pages, including Blogger.
When you create a gadget for Blogger of google it will available for millions of active google blog. it will surface in Blogger.com that you Just submit your gadget to us, and  where users can easily  configure, browse, and add your gadget to their blog's sidebar.

So you know Blogger is a great distribution platform for your gadget, what are you waiting for? Get started building gadgets for Blogger now!

this my shared code for Add Gadget on Template Designer Layout of Google blogger.
let's test with this code:

<div style='border:solid thin red;'>
<b:section  id='ratha' preferred='yes'/>
</div>




********** what is javascript?

What is JavaScript?

Actually, A lots of Web developers and you will want to know what are difference between Jquery and java script. J is a little stand at beginning of they and both are actually the same thing. jquery is use as a package of JavaScript libraries so it designed specifically to simplify HTML document  animation, event handling, traversing, and Ajax interactions. Other one you know how to use JavaScript, you may be found that jQuery meets most of your needs and needed much coding than conventional JavaScript is require.

What is JavaScript?
This script is a language is designed for use with a web browser. It is used for interface interactions like slideshows or other components are typically done using JavaScript. 
It has many other uses as well. Google email, game development, server side programming, even creating desktop applications and many of the additional of features are power of JavaScript. so it so a popular solution are created using JavaScript.
Many year ago, It was a popular scripting language but web developers were not entirely sold on the idea of using it simply because every browser tools would render JavaScript content in a different manner. Now the new technologies standards are force all web browsers to implement JavaScript, it frustration trying to debug code and saving developers time for a specific client side. And now dynamic content is a hot topic in developing web, that constantly adapts and change to specific users such as JavaScript can use to determine if a website visitor use mobile or computer
What is jquery?

Framework and CMS

Something Difference between a Framework and a CMS? And Which One for us use for certain requirements?

A Content Management System ( CMS ) is basic on an application built ( the most on top of a framework ) it have a lots of tools and make you easy to organize insert data and maintain and display informaition dynamically to a website. the popular CMS today are WordPress, Joomla, Drupal etc.

A Php framework is very different in that it is far more a generic product does not have a BRAND NAME. php framework allow you to standard solutions to typical problems, it help you to make for an ecommerce website or online shop that can build the strong functionality for a user  sign in, login including session handling, system orders , a shopping cart....
the most php framework today are: Laravel, Phalcon, Symfony 2, Yii Framework, CodeIgniter,...

Thursday, April 2, 2015

what is difference between wordpress and joomla

Today we have a lots of difference ways to build a website. during the year in 1997 to 2006 HTML , Css or Flash is very popular in order to create a website.
about several year later a lots of something are changed we can use can use framework or content management system to upgrade or dominate game and HTML site, especially CMS. because it cheaper, faster, easier.
WordPress is the most popular content management system in the world.  to create a very nice webiste and blog. nowadays there are 40% of website use CMS WordPress. the why to use it:
1. Easy to Install
2. Customizable
3. Free
4. Community Support

Joomla also popular content menagement system after Wordpress. It is very powerful CMS, which can process smoothly on web servers with no any problems and without require the same level of technical experience. it allow to build website with a powerful and applications. Other reasons why we use this CMS like:
1. Social Networking
2. Commerce Sites
3. Not too Technical
4. Help Portal
5. Free