Only the direct subject of how to create a link sway on the blog, follow the steps below!
- Log in to your blogger
- Sign in to design / design
- Choose Layout
- Edit HTML
- Then look berkut code: </ head> (use Ctrl + F on your keyboard sob), after the meet to stay put following CSS code right above </ head>:
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js' type='text/javascript'>
</script>
<script type='text/javascript'>
var dur = 400; // Duration Of Animation in Milli Seconds
$(document).ready(function() {
$('a.linknudge').hover(function() {
$(this).animate({
paddingLeft: '25px'
}, dur);
}, function() {
$(this).animate({
paddingLeft: 0
}, dur);
});
}); // end of Jquery Script
</script>
__________________________________________________________</script>
<script type='text/javascript'>
var dur = 400; // Duration Of Animation in Milli Seconds
$(document).ready(function() {
$('a.linknudge').hover(function() {
$(this).animate({
paddingLeft: '25px'
}, dur);
}, function() {
$(this).animate({
paddingLeft: 0
}, dur);
});
}); // end of Jquery Script
</script>
6. Save your template.
Description:
- The red is a link distance for the sway motion, set according to what you want .. do not be long-term,, hiks hiks hiks ..
- For those who have put jquery script
no need to install it again.
- If you want to create a link that you want to sway then add the code below in red on your link. How to install on the link or just add the code buddy class "linknudge" for the link mate like the example below:
<a class='linknudge' href='http://penuhtutorial.blogspot.com/'>tutorial</a>
___________________________________________________________
Way or the above code is to link the costumes, by adding a class code 'linknudge'.
Here is the code for the label and the other for your custom link:
___________________________________________________________
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js' type='text/javascript'>
</script>
<script type='text/javascript'>
var dur = 400; // Duration Of Animation in Milli Seconds
$(document).ready(function() {
$('a.linknudge, .Label ul li a').hover(function() {
$(this).animate({
paddingLeft: '25px'
}, dur);
}, function() {
$(this).animate({
paddingLeft: 0
}, dur);
});
}); // end of Jquery Script
</script>
___________________________________________________________ </script>
<script type='text/javascript'>
var dur = 400; // Duration Of Animation in Milli Seconds
$(document).ready(function() {
$('a.linknudge, .Label ul li a').hover(function() {
$(this).animate({
paddingLeft: '25px'
}, dur);
}, function() {
$(this).animate({
paddingLeft: 0
}, dur);
});
}); // end of Jquery Script
</script>
Thus creating a link on the blog or link sway nudging, good luck .. :-)
0 komentar:
Posting Komentar