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 (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) Usunalem to i powiedziałem hurra (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) Działa!!! (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) Nie wiedziałem jeszcze wtedy nawet co to jest, więc poszukalem i sie dowiedzialem (IMG:http://forum.php.pl/style_emoticons/default/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ś? |
|
|
|
![]() |
Post
#2
|
|
|
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 (IMG:http://forum.php.pl/style_emoticons/default/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> |
|
|
|
arusczarus !DOCTYPE, standardy... problem. :( 15.06.2008, 21:03:16
radex_p W IE musisz być Strict, żeby używał poprawnego Box... 15.06.2008, 21:35:37
devnul zamiast tego kodu daj może lepiej link do strony -... 15.06.2008, 21:58:26
arusczarus ...
poprawnie to wygląda w tej chwili w fire... 15.06.2008, 22:01:08
Kreton CytatW IE musisz być Strict, żeby używał poprawneg... 16.06.2008, 12:56:28
arusczarus nieaktualne ... Zrezygnowałem z tego ... 16.06.2008, 14:27:47 ![]() ![]() |
|
Aktualny czas: 27.12.2025 - 11:38 |