Dodałem sobie taki kod do mojej strony:
<head> <link rel="stylesheet" href="style.css" type="text/css" /> <link media="screen" rel="stylesheet" type="text/css" href="st.css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(window).load(function() { $.prompt('<a href="http://adres.pl"><img src="http://adres.pl/adres.jpg" border="0"/></a>',{ overlayspeed: 2 }); }); </script> </head>
I w kodzie strony wyświetla mi się taki błąd:
Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/domains/adres.pl/public_html/index.php:7) in <b>/home/xxx/domains/adres.pl/public_html/index.php</b> on line <b>20</b><br />
Szukałem w google i trafiłem na http://phpedia.pl/wiki/Cannot_add_header_i...rs_already_sent
A więc dodałem
i
Kod wyglądał tak:
<head> <link rel="stylesheet" href="style.css" type="text/css" /> <link media="screen" rel="stylesheet" type="text/css" href="st.css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(window).load(function() { $.prompt('<a href="http://adres.pl"><img src="http://adres.pl/adres.jpg" border="0"/></a>',{ overlayspeed: 2 }); }); </script> </head>
Ale nie pomogło i problem wyświetla się dalej w kodzie strony, a okienko nie wyskakuje

Jak zrobić żeby działało ?
Pozdrawiam