Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> !DOCTYPE, standardy... problem. :(
arusczarus
post 15.06.2008, 21:03:16
Post #1





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 15.06.2008

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


Witajcie,

mam następujący problem.

Do tej pory miałem na początku strony coś takiego.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

i niestety przez to nie działał mi scroll footer ( http://reklama.interia.pl/produkty/,scrollfooter,pl )

po żmudnym śledztwie czego to wina , po usuwaniu linijki po linijce kodu zeby zobaczyc kiedy zacznie działać doszedłem do pierwszej smile.gif

Usunalem to i powiedziałem hurra smile.gif Działa!!! smile.gif Nie wiedziałem jeszcze wtedy nawet co to jest, więc poszukalem i sie dowiedzialem smile.gif

Niestety horror trwa.

Otwieram IE wpisuje adres i cała strona zamiast być wyśrodkowana jest wyrównana do lewej. Zmieniłem to na

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">


niestety dalej to samo.... pomoże ktoś?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 6)
.radex
post 15.06.2008, 21:35:37
Post #2





Grupa: Zarejestrowani
Postów: 1 657
Pomógł: 125
Dołączył: 29.04.2006

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


W IE musisz być Strict, żeby używał poprawnego Box Modela

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.1 Strict//EN">


--------------------
blog | Tadam — minutnik do Pomodoro na Maka :)
Go to the top of the page
+Quote Post
arusczarus
post 15.06.2008, 21:40:30
Post #3





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 15.06.2008

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


fakt, wyrównało strone, ale scroller nie działa sad.gif

chciałbym żeby to było coś jak tu:

http://facet.interia.pl/?__ad_cid=przyklad...d=scroll_footer

może mam po prostu zły skrypt?

Oto ten, który posiadam.

Cytat
<script language=javascript>
var adsImg="design/img/corners/scroll.gif";
var adsImg_stop="design/img/corners/scroll.gif";
var adsHref="http://www.gazeta.pl/";
var adHeight= 30;
var adsWidth= 215;
var adSpeed= 1;

var adContent='<IMG width='+adsWidth+' height='+adHeight+' src='+adsImg+' border=0>'
var adContent_st='<IMG width='+adsWidth+' height='+adHeight+' src='+adsImg_stop+' border=0>'
var iedom=document.all||document.getElementById;
var agt=navigator.userAgent.toLowerCase()
var ie=(agt.indexOf("msie")!=-1)?true:false
var actualWidth=''
var sfContainer;
var ile = 0;
var divs = new Array();
if (iedom) {
actualWidth=document.body.clientWidth;
ile = parseInt(actualWidth/adsWidth)+1;
adW = ile*adsWidth;
sfContainer=document.getElementById?document.getElementById("adContainer") : document.all.adContainer
document.write('<div id="adContainer" style="visibility:hidden;overflow: hidden; position:absolute; width:'+actualWidth+'px; height:'+eval(adHeight+15)+'px">');
document.write('<div align=right><img src="design/img/corners/x.gif" width="14" height="14" border="0" onclick="hide()"></div>');
document.write('<div id="clickin" style="margin-top:15px; position:absolute; left:0; top:0; width:'+actualWidth+'px; height:'+adHeight+'px; z-index:99; background-image: url(\'http://serwisy.gazeta.pl/img/px.gif\'); cursor: pointer;" onClick="window.open(\''+adsHref+'\')" onMouseOver="Stopp();" onMouseOut="Startp()"></div>');
document.write('<div id=adLayer0 style="z-index:1; position:absolute; left:0; margin-top:15px; top:0; white-space:nowrap;"></div>')
document.write('<div id=adLayer1 style="z-index:1; position:absolute; left:0; margin-top:15px; top:0; white-space:nowrap;"></div>')
document.write('</div>')
}

function ScrollAd() {
if (iedom) {
for (i=0;i<=1;i++){
sfLayerPos = parseInt(divs[i].style.left);
divs[i].style.left=sfLayerPos-adSpeed;
if (Math.abs(sfLayerPos)>=adW) divs[i].style.left=adW-adSpeed;
}}}

function FixPositionAd(){
actualWidth=document.body.clientWidth
sfContainer.style.width=actualWidth
sfContainer.style.top=document.body.scrollTop+document.body.clientHeight-adHeight-15
}

function Stopp(){
adSpeed=0;divs[0].innerHTML='';divs[1].innerHTML='';
for (i=0;i<=ile;i++){
divs[0].innerHTML+=adContent_st;
divs[1].innerHTML+=adContent_st;
}
}

function Startp(){
adSpeed=1;divs[0].innerHTML='';divs[1].innerHTML='';
for (i=0;i<=ile;i++){
divs[0].innerHTML+=adContent;
divs[1].innerHTML+=adContent;
}
}
function InitializeAd() {
if (iedom) {
sfContainer=document.getElementById?document.getElementById("adContainer") : document.all.adContainer
sfContainer.style.left=0
sfContainer.style.top=document.body.scrollTop+document.body.clientHeight-adHeight-15
for (i=0;i<=1;i++){
divs[i]=document.getElementById?eval("document.getElementById('adLayer"+i+"')") : eval("document.all.adLayer"+i);
divs[i].style.left=i*adW;
for (x=0;x<=ile;x++){divs[i].innerHTML+=adContent};
}
sfContainer.style.visibility='visible';
}
setInterval("ScrollAd()",3);
}
function hide(){
if (sfContainer) sfContainer.style.visibility='hidden';
}
if (window.attachEvent) {
window.attachEvent("onscroll", FixPositionAd);
window.attachEvent("onresize", FixPositionAd);
window.attachEvent("onload",InitializeAd);
} else {
window.onscroll=FixPositionAd;
window.onresize=FixPositionAd;
window.onload=InitializeAd
}


</script>
Go to the top of the page
+Quote Post
devnul
post 15.06.2008, 21:58:26
Post #4





Grupa: Zarejestrowani
Postów: 1 470
Pomógł: 75
Dołączył: 21.09.2005
Skąd: że znowu

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


zamiast tego kodu daj może lepiej link do strony - łatwiej będzie coś wywnioskować
Nawiasem mówiąc to reklamy typu scrollfooter i podobne (coś się rusza/przemieszcza/lata) nie są zbyt lubiane przez użytkowników także zastanowiłbym się na Twoim miejscu nad inną formą reklamy


--------------------
Profesjonaliści są przewidywalni...
strzeż się amatorów...
FL4SHB4CK - imprezy, galerie, lokale
Go to the top of the page
+Quote Post
arusczarus
post 15.06.2008, 22:01:08
Post #5





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 15.06.2008

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


...

poprawnie to wygląda w tej chwili w firefoxie
w IE niestety tragicznie sad.gif

Co do formy reklamy to niestety reklamodawcy są wymagający, a korzyści są bardzo dobre

Ten post edytował arusczarus 16.06.2008, 14:27:32
Go to the top of the page
+Quote Post
Kreton
post 16.06.2008, 12:56:28
Post #6





Grupa: Zarejestrowani
Postów: 345
Pomógł: 3
Dołączył: 20.02.2005

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


Cytat
W IE musisz być Strict, żeby używał poprawnego Box Modela
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.1 Strict//EN">


Transitional włącza w IE6 tryb zgodności ze standardami.
Go to the top of the page
+Quote Post
arusczarus
post 16.06.2008, 14:27:47
Post #7





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 15.06.2008

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


nieaktualne ... Zrezygnowałem z tego ...
Go to the top of the page
+Quote Post

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 Wersja Lo-Fi Aktualny czas: 23.06.2025 - 20:33