hamid_kha
سه شنبه 11 مهر 1391, 18:36 عصر
با سلام
توسط این قطعه کد که با جی کوئری هستش میتونید Favicon سایتهای مختلف رو بدست آورید.
:چشمک:
<a href=http://github.com>GitHub</a>
<a href=http://css-tricks.com>CSS-Tricks</a>
<a href=http://www.google.com>Google</a>
<a href=http://jsfiddle.net/chriscoyier/6Vg7t/3/>JSfiddle</a>
<a href=http://www.google.com:80>Google</a>
<a href=http://doesnotexistsreallyreallyreally.com>Nope</a>
<a href=http://127.0.0.1>localhost</a>
-
a { display: block; text-decoration: none; padding: 5px; }
--
$("a[href^='http']").each(function() {
$(this).css({
background: "url(http://g.etfv.co/" + this.href + ") left center no-repeat",
"padding-left": "20px"
});
});
اینم لینک خود سایت
http://css-tricks.com/favicons-next-to-external-links/
:چشمک:
توسط این قطعه کد که با جی کوئری هستش میتونید Favicon سایتهای مختلف رو بدست آورید.
:چشمک:
<a href=http://github.com>GitHub</a>
<a href=http://css-tricks.com>CSS-Tricks</a>
<a href=http://www.google.com>Google</a>
<a href=http://jsfiddle.net/chriscoyier/6Vg7t/3/>JSfiddle</a>
<a href=http://www.google.com:80>Google</a>
<a href=http://doesnotexistsreallyreallyreally.com>Nope</a>
<a href=http://127.0.0.1>localhost</a>
-
a { display: block; text-decoration: none; padding: 5px; }
--
$("a[href^='http']").each(function() {
$(this).css({
background: "url(http://g.etfv.co/" + this.href + ") left center no-repeat",
"padding-left": "20px"
});
});
اینم لینک خود سایت
http://css-tricks.com/favicons-next-to-external-links/
:چشمک: