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
 
Start new topic
Odpowiedzi
Pyton_000
post
Post #2





Grupa: Zarejestrowani
Postów: 8 068
Pomógł: 1414
Dołączył: 26.10.2005

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


Pewnie ma stronę na WP na 500 domenach (IMG:style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 12.10.2025 - 13:23