Using window with keyboard
Tampilkan postingan dengan label using. Tampilkan semua postingan
Tampilkan postingan dengan label using. Tampilkan semua postingan
Kamis, 23 Januari 2014
Using window with keyboard
Using window with keyboard
Diposting oleh
smartf
di
09.15
0
komentar
Kirimkan Ini lewat Email
BlogThis!
Bagikan ke X
Berbagi ke Facebook
Minggu, 22 September 2013
Using the before and after Pseudo Elements on Sidebar Titles
This is another method of using the :after and :before properties and it will work without too many problems in any browser, including IE8. What this trick will do is to divide the header bar into left and right sections, where the left will contain an explanatory title and the right, a related link.
The idea of generating Adobe-like Arrow Headers was actually discussed by css-tricks and adapted to Blogger.
Step 1. Log in to your Blogger dashboard > go to Template > Edit HTML, then click anywhere inside the code area to search - using the CTRL + F keys - for the following tag:
Step 4. Now go to Layout and Add a new HTML/JavaScript Gadget with one of the codes below for each of the widget title:
Background in blue:
Note: Change "Title in" text with your widgets title and Blue, Yellow, Green and Red with the text on the right, then add a Link URL to it.
Step 5. After you saved the HTML/Javascript gadgets containing the codes above, drag and drop them just above the widgets you want to show... and Save the Arrangement.
DEMO
You can see how the sidebar titles has been replaced with some cool header bars on this demo blog.
Read More..
The idea of generating Adobe-like Arrow Headers was actually discussed by css-tricks and adapted to Blogger.
How to Add Adobe-like Headers to Blogger
Step 1. Log in to your Blogger dashboard > go to Template > Edit HTML, then click anywhere inside the code area to search - using the CTRL + F keys - for the following tag:
</head>Step 2. Just above it, copy and paste this code:
<style>Step 3. Save the Template.
.module h2 {
background-color: #D5D5D5;
border-radius: 20px 0 0 20px;
color: #FFFFFF;
font-family: Verdana;
font-size: 14px;
line-height: 32px;
margin: 0;
padding: 0 0 0 20px;
text-shadow: 2px 1px 1px #222;
}
.module h2 a {
border-left: 5px solid #ffffff;
color: #101921;
float: right;
font-size: 14px;
text-decoration: none;
text-shadow: none;
padding: 0 10px;
position: relative;
-moz-transition: padding 0.1s linear;
-webkit-transition: padding 0.1s linear;
-ms-transition: padding 0.1s linear;
-o-transition: padding 0.1s linear;
}
.module h2 a:hover {
padding: 0 32px;
}
.module h2 a:before, .module h2 a:after {
content: "";
height: 0;
position: absolute;
top: 50%;
width: 0;
}
.module h2 a:before {
border-bottom: 8px solid transparent;
border-right: 8px solid #ffffff;
border-top: 8px solid transparent;
left: -12px;
margin-top: -8px;
}
.module h2 a:after {
border-bottom: 6px solid transparent;
border-top: 6px solid transparent;
left: -6px;
margin-top: -6px;
}
.module.blue h2 a {background-color: #A2D5EC;}
.module.blue h2 a:hover {background-color: #C5F0FF;}
.module.blue h2 a:after {border-right: 6px solid #A2D5EC;}
.module.blue h2 a:hover:after {border-right-color: #C5F0FF;}
.module.yellow h2 a {background-color: #FCE98D;}
.module.yellow h2 a:hover {background-color: #FFD700;}
.module.yellow h2 a:after {border-right: 6px solid #FCE98D;}
.module.yellow h2 a:hover:after {border-right-color: #FFD700;}
.module.green h2 a {background-color: #bada55;}
.module.green h2 a:hover {background: #C7E176;}
.module.green h2 a:after {border-right: 6px solid #bada55;}
.module.green h2 a:hover:after {border-right-color: #C7E176;}
.module.red h2 a {background-color: #F0A5B5;}
.module.red h2 a:hover {background-color: #FFC7D2;}
.module.red h2 a:after {border-right: 6px solid #F0A5B5;}
.module.red h2 a:hover:after {border-right-color: #FFC7D2;}
</style>
Screenshot:
Step 4. Now go to Layout and Add a new HTML/JavaScript Gadget with one of the codes below for each of the widget title:
Background in blue:
<div class="module blue">Background in yellow:
<h2>Title in <a href="Link URL">Blue</a></h2>
</div>
<div class="module yellow">Background in green:
<h2>Title in <a href="Link URL">Yellow</a></h2>
</div>
<div class="module green">Background in red:
<h2>Title in <a href="Link URL">Green</a></h2>
</div>
<div class="module red">
<h2>Title in <a href="Link URL">Red</a></h2>
</div>
Note: Change "Title in" text with your widgets title and Blue, Yellow, Green and Red with the text on the right, then add a Link URL to it.
Step 5. After you saved the HTML/Javascript gadgets containing the codes above, drag and drop them just above the widgets you want to show... and Save the Arrangement.
DEMO
You can see how the sidebar titles has been replaced with some cool header bars on this demo blog.
Diposting oleh
smartf
di
09.00
0
komentar
Kirimkan Ini lewat Email
BlogThis!
Bagikan ke X
Berbagi ke Facebook
Sabtu, 14 September 2013
How to add go to top and go to bottom buttons Using jQuery in Blogger
The Up and Down buttons can be used to navigate to the top and bottom of the page content, especially when on the main page there are many articles or when an article has too many comments. These buttons have a fadeIn and fadeOut effect, this means that they will fade slightly when we are scrolling to the top or bottom of the page and additionally, have the function of going up/down the blog.
Demo
You can see a live demo on my blog, the buttons are located on the right side.
How to put Go Up and Go Down buttons using the jQuery slide effect
Step 1. Go to Template, click on the Edit HTML button
Step 2. Select the "Expand Widget Templates" box
Step 3. Search (using CTRL + F) for the following piece of code:
Step 4. Just above this code, paste this one:
Note: - in green are some annotations that explains what styles you can modify on their left side.
- You can change the arrows by changing the URLs in blue.
- To change the buttons background color of buttons, change the white text with your color
Step 5. Now search (CTRL + F) for this tag:
Step 6. And just above it, paste the following code:
Note: In case you want to remove the "Go to top" button, remove the 1st bolded code and to remove the "Go to bottom" button, remove the 2nd one.
Step 7. Finally, Save your Template. Enjoy!
Read More..
Demo
You can see a live demo on my blog, the buttons are located on the right side.
How to put Go Up and Go Down buttons using the jQuery slide effect
Step 1. Go to Template, click on the Edit HTML button
Step 2. Select the "Expand Widget Templates" box
Step 3. Search (using CTRL + F) for the following piece of code:
]]></b:skin>
Step 4. Just above this code, paste this one:
/* Up and Down Buttons with jQuery
----------------------------------------------- */
.button_up{
padding:7px; /* Distance between the border and the icon */
background-color:white;
border:1px solid #CCC; /* Border Color */
position:fixed;
background: white url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhK_svw4My_S0xeEROPDpvBrM8Z7MQ1dh4RrTg6dq1fYm31XXpDZ3mUHmBif_y-8dbSI9J_hfNMAWY5As7n3FI-O3OtNHC3fgo58sR4XHmrgkMueC6Fvt-LBX2VfioM12V9A4o7DjDMeOg/s16/arrow_up.png) no-repeat top left;
background-position:50% 50%;
width:20px; /* Buttons width */
height:20px; /* Buttons height */
bottom:280px; /* Distance from the bottom */
right:5px; /* Change right to left if you want the buttons on the left */
white-space:nowrap;
cursor: pointer;
border-radius: 3px 3px 3px 3px;
opacity:0.7;
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=70);
}
.button_down{
padding:7px; /* Distance between the border and the icon */
background-color:white;
border:1px solid #CCC; /* Border Color */
position:fixed;
background: white url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilLZ7TGGT3x1mV1h1U09TyTasD_UczNz8N6blvceF8ddjmAaZ77228CaiGYxskIMjz26INCxqckKJ0irRYdJO1DkHf1OymJIOl2CP4k_8WvXcXVCYq6DADcAS64kktNjYVz13bACjC25o/s16/arrow_down.png) no-repeat top left;
background-position:50% 50%;
width:20px; /* Buttons width */
height:20px; /* Buttons height */
bottom:242px; /* Distance from the bottom */
right:5px; /* Change right to left if you want the buttons on the left */
white-space:nowrap;
cursor: pointer;
border-radius: 3px 3px 3px 3px;
opacity:0.7;
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=70);
}
Note: - in green are some annotations that explains what styles you can modify on their left side.
- You can change the arrows by changing the URLs in blue.
- To change the buttons background color of buttons, change the white text with your color
Step 5. Now search (CTRL + F) for this tag:
</body>
Step 6. And just above it, paste the following code:
<script src=http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js type=text/javascript/>
<div class=button_up id=button_up style=display:none;/>
<div class=button_down id=button_down style=display:none;/>
<script>
//<![CDATA[
(function(){var special=jQuery.event.special,uid1=D+(+new Date()),uid2=D+(+new Date()+1);special.scrollstart={setup:function(){var timer,handler=function(evt){var _self=this,_args=arguments;if(timer){clearTimeout(timer)}else{evt.type=scrollstart;jQuery.event.handle.apply(_self,_args)}timer=setTimeout(function(){timer=null},special.scrollstop.latency)};jQuery(this).bind(scroll,handler).data(uid1,handler)},teardown:function(){jQuery(this).unbind(scroll,jQuery(this).data(uid1))}};special.scrollstop={latency:300,setup:function(){var timer,handler=function(evt){var _self=this,_args=arguments;if(timer){clearTimeout(timer)}timer=setTimeout(function(){timer=null;evt.type=scrollstop;jQuery.event.handle.apply(_self,_args)},special.scrollstop.latency)};jQuery(this).bind(scroll,handler).data(uid2,handler)},teardown:function(){jQuery(this).unbind(scroll,jQuery(this).data(uid2))}}})();
$(function() {
var $elem = $(body);
$(#button_up).fadeIn(slow);
$(#button_down).fadeIn(slow);
$(window).bind(scrollstart, function(){
$(#button_up,#button_down).stop().animate({opacity:0.2});
});
$(window).bind(scrollstop, function(){
$(#button_up,#button_down).stop().animate({opacity:1});
});
$(#button_down).click(
function (e) {
$(html, body).animate({scrollTop: $elem.height()}, 800);
} );
$(#button_up).click(
function (e) {
$(html, body).animate({scrollTop: 0px}, 800);
} );});
//]]>
</script>
Note: In case you want to remove the "Go to top" button, remove the 1st bolded code and to remove the "Go to bottom" button, remove the 2nd one.
Step 7. Finally, Save your Template. Enjoy!
Diposting oleh
smartf
di
18.45
0
komentar
Kirimkan Ini lewat Email
BlogThis!
Bagikan ke X
Berbagi ke Facebook
Selasa, 06 Agustus 2013
How to Make Router Using Mikrotik
By using a fairly minimal computer specifications, eg, Pentium I, 1-2 GB hard disk, 64 MB memory, without a mouse, keyboard or monitor, if Mikrotik is the way, we just need to Mose, the keyboard and the monitor during installation only. so we can make a router with minimal funds, rather than equipment we buy a router that can be millions of dollars expensive. Let us begin the installation, before you have to have Mikrotik file that can be downloaded from its website www.mikrotik.co.id. How to make use mikrotik routers are as follows:
Before installation make sure the computer will be installed Mikrotik OS has 2 Lan Card, for the specification of hardware that will be used, you can see the reference in http://mikrotik.com
- * Boot from CD ROM
Select the packages to be selected, for the needs of Proxy Router + + Bandwidth Management, should you choose:
- System
- DHCP
- Advanced Tols
- Routing
- Routing Test
- Security
- Synchronous
- Web Proxy
- Web Proxy Test
After selecting the required packages press the "i" to start the installation.
- It would appear the words "Do you want to keep ...............", choose n (no)
- Then "Continue .....", select y (yes)
Begin to create partitions and format the hard disk, after installation of the packages that had been selected.
When finished, ask Mikrotik on reboot by pressing enter.
After booting, the command appears to check your hard disk, you can select yes or no, select no also does not matter if you are unsure of free hard disk bad sectors.
You are prompted to login, type admin on:
MikroTik Login: admin
to fill in a password just press enter, because the password is still blank on new installations
- Dou you want to see ...................., select no, to speed up the process, the console will appear Mikrotik, namely:
[Admin @ MikroTik]>
To change the machine name of this Mikrotik, type:
[Admin @ MikroTik]> system identity set name = mywifi
Then the console changes to:
[Admin @ mywifi]>
Changing the password mikrotik machine, type the password =
[Admin @ mywifi]> password
old password (blank type, if you have not previously set a password
new password: new-type the password ............................()
Retype new password :................ (Enter the password again)
To turn off the Mikrotik we simply type the following
[Admin @ mywifi]> system shutdown
[Admin @ mywifi]> system reboot (to restart it)
[Admin @ mywifi]> system reset (to reset the configuration that you created earlier)
The commands above should be done in the admin directory.
After that you need to activate a second LAN card installed, with a sample command below:
[Admin @ mywifi]> interface enable ether1 ethernet
[Admin @ mywifi]> ethernet interfaces enable ether2
If the error sign appears, there are two reasons:
The first: There is a possibility of a LAN card installed, damaged
The second: The driver of the LAN Card has not been supported by MikroTik
To see both mounted LAN Card (if already completed two), type .............
[Admin @ mywifi]> ip address
[Admin @ mywifi] ip address> print interface (or command can be abbreviated to "in pr")
Then arose a second LAN card, note the console above indicates we have been in the directory ip address
Based on the monitor display first Mikrotik LAN Card named "ether1" ether1 which is later connected to the Public IP / Internet LAN Card are both named "ether2" is connected to the IP Local / Local LAN, then we give the ip address on each LAN Card, with the command / command as follows:
[Admin @ mywifi]> ip address
[Admin @ mywifi] ip address> add interface = ether1 address = 172.16.0.254/24
[Admin @ mywifi] ip address> add interface = ether2 address = 192.168.1.254/24
To find out the result type:
[Admin @ mywifi] ip address> print
See the results in the image above. to ascend to a higher directory type a colon "..", or "/" to the admin directory, which is the highest directory.
Then we fill the gateway IP address of LAN card first, which is where we get internet access
[Admin @ mywifi]> ip route add gateway = 192.168.1.1
Next we fill the DNS ip address, fill in the appropriate recommendations from your ISP, for example:
[Admin @ mywifi]> ip dns set primary-dns = 202.134.1.7
admin @ mywifi]> ip dns set secondary-dns = 202.134.0.155
So that all client computers in a LAN can browse the internet faster with just taking the DNS cache in Mikrotik router, so the client computer is not far-distant berlu DNS resolves the ISPs DNS servers, then the MikroTik Router should be set in order to perform DNS cache storage
[Admin @ mywifi]> ip dns set allow-remote-requests = yes
But all the client computer, the IP Address setting its primary DNS filled column, with its IP Address Router Mikrotik, for his secondary DNS leave it blank. Note also the image above if we are wrong in typing a command, it will display a warning
"No such argument".
Next we set the machine so that we can be a MikroTik router
[Admin @ mywifi]> ip firewall nat
[Admin @ mywifi] ip firewall nat> add chain = srcnat arc-address = 192.168.1.0/24 out-interface = ether1 action = masquerade
We see the results
[Admin @ mywifi] ip firewall nat> print
See the results on your monitor. to ascend to a higher directory type a colon "..", or "/" to the admin directory, which is the highest directory.
Then we fill the gateway IP address of LAN card first, which is where we get internet access
[Admin @ mywifi]> ip route add gateway = 192.168.1.1
Next we fill the DNS ip address, fill in the appropriate recommendations from your ISP,
[Admin @ mywifi]> ip dns set primary-dns = 202.134.1.7
[Admin @ mywifi]> ip dns set secondary-dns = 202.134.0.155
So that all client computers in a LAN can browse the internet faster with just taking the DNS cache in Mikrotik router, so the client computer is not far-distant berlu DNS resolves the ISPs DNS servers, then the MikroTik Router should be set in order to perform DNS cache storage
[Admin @ mywifi]> ip dns set allow-remote-requests = yes
But all the client computer, the IP Address setting its primary DNS filled column, with its IP Address Router Mikrotik, for his secondary DNS leave it blank. Note also the image above if we are wrong in typing a command, it will display a warning
"No such argument".
Next we set the machine so that we can be a MikroTik router
[Admin @ mywifi]> ip firewall nat
[Admin @ mywifi] ip firewall nat> add chain = srcnat arc-address = 192.168.1.0/24 out-interface = ether1 action = masquerade
We see the results
[Admin @ mywifi] ip firewall nat> print
Well at this early stage we can already make a Mikrotik Router, in order to know the results we ping test (for the command "ping" this must be done at the highest directory in the directory "admin") to the client computer from the router Mikrotik us, when it appears in the process ping were the words "ping time out" or "host unreachable" then we do not succeed to connect, try again at a setting carefully or thoroughly well mikrotik ip address configuration on the client computer, then try the same ping the Internet address of the client computer or browsing from the client computer, if successful then succeed in our task to make Mikrotik Router.
Read More..
Before installation make sure the computer will be installed Mikrotik OS has 2 Lan Card, for the specification of hardware that will be used, you can see the reference in http://mikrotik.com
- * Boot from CD ROM
Select the packages to be selected, for the needs of Proxy Router + + Bandwidth Management, should you choose:
- System
- DHCP
- Advanced Tols
- Routing
- Routing Test
- Security
- Synchronous
- Web Proxy
- Web Proxy Test
After selecting the required packages press the "i" to start the installation.
- It would appear the words "Do you want to keep ...............", choose n (no)
- Then "Continue .....", select y (yes)
Begin to create partitions and format the hard disk, after installation of the packages that had been selected.
When finished, ask Mikrotik on reboot by pressing enter.
After booting, the command appears to check your hard disk, you can select yes or no, select no also does not matter if you are unsure of free hard disk bad sectors.
You are prompted to login, type admin on:
MikroTik Login: admin
to fill in a password just press enter, because the password is still blank on new installations
- Dou you want to see ...................., select no, to speed up the process, the console will appear Mikrotik, namely:
[Admin @ MikroTik]>
To change the machine name of this Mikrotik, type:
[Admin @ MikroTik]> system identity set name = mywifi
Then the console changes to:
[Admin @ mywifi]>
Changing the password mikrotik machine, type the password =
[Admin @ mywifi]> password
old password (blank type, if you have not previously set a password
new password: new-type the password ............................()
Retype new password :................ (Enter the password again)
To turn off the Mikrotik we simply type the following
[Admin @ mywifi]> system shutdown
[Admin @ mywifi]> system reboot (to restart it)
[Admin @ mywifi]> system reset (to reset the configuration that you created earlier)
The commands above should be done in the admin directory.
After that you need to activate a second LAN card installed, with a sample command below:
[Admin @ mywifi]> interface enable ether1 ethernet
[Admin @ mywifi]> ethernet interfaces enable ether2
If the error sign appears, there are two reasons:
The first: There is a possibility of a LAN card installed, damaged
The second: The driver of the LAN Card has not been supported by MikroTik
To see both mounted LAN Card (if already completed two), type .............
[Admin @ mywifi]> ip address
[Admin @ mywifi] ip address> print interface (or command can be abbreviated to "in pr")
Then arose a second LAN card, note the console above indicates we have been in the directory ip address
Based on the monitor display first Mikrotik LAN Card named "ether1" ether1 which is later connected to the Public IP / Internet LAN Card are both named "ether2" is connected to the IP Local / Local LAN, then we give the ip address on each LAN Card, with the command / command as follows:
[Admin @ mywifi]> ip address
[Admin @ mywifi] ip address> add interface = ether1 address = 172.16.0.254/24
[Admin @ mywifi] ip address> add interface = ether2 address = 192.168.1.254/24
To find out the result type:
[Admin @ mywifi] ip address> print
See the results in the image above. to ascend to a higher directory type a colon "..", or "/" to the admin directory, which is the highest directory.
Then we fill the gateway IP address of LAN card first, which is where we get internet access
[Admin @ mywifi]> ip route add gateway = 192.168.1.1
Next we fill the DNS ip address, fill in the appropriate recommendations from your ISP, for example:
[Admin @ mywifi]> ip dns set primary-dns = 202.134.1.7
admin @ mywifi]> ip dns set secondary-dns = 202.134.0.155
So that all client computers in a LAN can browse the internet faster with just taking the DNS cache in Mikrotik router, so the client computer is not far-distant berlu DNS resolves the ISPs DNS servers, then the MikroTik Router should be set in order to perform DNS cache storage
[Admin @ mywifi]> ip dns set allow-remote-requests = yes
But all the client computer, the IP Address setting its primary DNS filled column, with its IP Address Router Mikrotik, for his secondary DNS leave it blank. Note also the image above if we are wrong in typing a command, it will display a warning
"No such argument".
Next we set the machine so that we can be a MikroTik router
[Admin @ mywifi]> ip firewall nat
[Admin @ mywifi] ip firewall nat> add chain = srcnat arc-address = 192.168.1.0/24 out-interface = ether1 action = masquerade
We see the results
[Admin @ mywifi] ip firewall nat> print
See the results on your monitor. to ascend to a higher directory type a colon "..", or "/" to the admin directory, which is the highest directory.
Then we fill the gateway IP address of LAN card first, which is where we get internet access
[Admin @ mywifi]> ip route add gateway = 192.168.1.1
Next we fill the DNS ip address, fill in the appropriate recommendations from your ISP,
[Admin @ mywifi]> ip dns set primary-dns = 202.134.1.7
[Admin @ mywifi]> ip dns set secondary-dns = 202.134.0.155
So that all client computers in a LAN can browse the internet faster with just taking the DNS cache in Mikrotik router, so the client computer is not far-distant berlu DNS resolves the ISPs DNS servers, then the MikroTik Router should be set in order to perform DNS cache storage
[Admin @ mywifi]> ip dns set allow-remote-requests = yes
But all the client computer, the IP Address setting its primary DNS filled column, with its IP Address Router Mikrotik, for his secondary DNS leave it blank. Note also the image above if we are wrong in typing a command, it will display a warning
"No such argument".
Next we set the machine so that we can be a MikroTik router
[Admin @ mywifi]> ip firewall nat
[Admin @ mywifi] ip firewall nat> add chain = srcnat arc-address = 192.168.1.0/24 out-interface = ether1 action = masquerade
We see the results
[Admin @ mywifi] ip firewall nat> print
Well at this early stage we can already make a Mikrotik Router, in order to know the results we ping test (for the command "ping" this must be done at the highest directory in the directory "admin") to the client computer from the router Mikrotik us, when it appears in the process ping were the words "ping time out" or "host unreachable" then we do not succeed to connect, try again at a setting carefully or thoroughly well mikrotik ip address configuration on the client computer, then try the same ping the Internet address of the client computer or browsing from the client computer, if successful then succeed in our task to make Mikrotik Router.
Diposting oleh
smartf
di
08.15
0
komentar
Kirimkan Ini lewat Email
BlogThis!
Bagikan ke X
Berbagi ke Facebook





