Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [AJAX] dynamiczne dodanie href do favicon
kubax33
post
Post #1





Grupa: Zarejestrowani
Postów: 157
Pomógł: 1
Dołączył: 27.01.2010

Ostrzeżenie: (0%)
-----


  1. $(document).ready(function() {
  2. $("#ikona").load("ikona.php");
  3. var refreshId = setInterval(function() {
  4. $("#ikona").attr("href",load("ikona.php"));
  5. }, 7000);
  6. $.ajaxSetup({ cache: false });
  7. });


<link rel="shortcut icon" href="" id="ikona">

wynik daje mi taki:
<link rel="shortcut icon" href="" id="ikona">favicon1.ico

jak uzyskać:
<link rel="shortcut icon" href="favicon1.ico" id="ikona">

odświeża mi id="ikona", ale w złym miejscu dodaje zaciągnięty wynik
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 02:14