| | |
| Stránka: 1 z 1
| [ Príspevkov: 7 ] | |
Autor | Správa |
---|
Registrovaný: 04.07.08 Prihlásený: 05.07.08 Príspevky: 3 Témy: 2 | |
Registrovaný: 16.05.07 Prihlásený: 01.08.17 Príspevky: 837 Témy: 6 | Napísal juho: 04.07.2008 22:27 | |
|
Kód: <marquee behavior="scroll" valign="bottom" direction="up" width="120" height="120" scrollamount="1" scrolldelay="1" onmouseover="this.stop()" onmouseout="this.start()" align="center">
|
|
Registrovaný: 04.07.08 Prihlásený: 05.07.08 Príspevky: 3 Témy: 2 | Napísal autor témy Nicitel: 04.07.2008 22:53 | |
|
a kde mam prosimta dat tu linku toho banera co tam chcem dat pr.
<a href="http://cod4.cz"><img src="http://cod4.cz/pictures/cod4_cz.gif" width="88" height="31" border="0" alt="Call of Duty 4 fansite" /></a></p>
a velmi pekne dakujem
|
|
Registrovaný: 22.11.07 Príspevky: 1368 Témy: 22 Bydlisko: PD | Napísal lio: 04.07.2008 23:46 | |
|
Nemyslim si, ze <marquee> je vhodne riesenie, nakolko je to nevalidny vytvor z dielne Microsoftu.
|
|
Registrovaný: 16.05.07 Prihlásený: 01.08.17 Príspevky: 837 Témy: 6 | Napísal juho: 05.07.2008 11:59 | |
|
pod tym marquee mas
Kód: <div align='center'> <p align='center'><a href='infusions/button_panel/button.php?button_id=1' target='_blank'> <img src='http://cod4.cz/pictures/cod4_cz.gif' border='0' style='filter:alpha(opacity=30)' onMouseOver='nereidFade(this,100,10,30)' onMouseOut='nereidFade(this,30,10,5)' title='CoD4.cz' alt='CoD4.cz'></a> do toho src tagu img a do a href daj link nato
|
|
Registrovaný: 30.04.09 Prihlásený: 11.02.10 Príspevky: 723 Témy: 81 |
potrebujem nieco podobne ale marquee je asi nepouzitelne kedze chcem dat do pola vela obrazkou a pri nacitani stranky mi ich najprv roztiahne po ploche popod hranice div-u. nasiel som si nato script ale ide z prava dolava a potrebujem aby sa pohyboval zvrchu nadol.Kedze nerozumiem JS ani slovo poprosim vas o radu dakujem
Kód: var mqAry1=['pole.png']; function start() { new mq('m1',mqAry1,200); new mq('m2',mqAry2,200);// repeat for as many fuields as required mqRotate(mqr); // must come last } window.onload = start; var mqr = []; function mq(id,ary,wid){this.mqo=document.getElementById(id); var heit = this.mqo.style.height; this.mqo.onmouseout=function() {mqRotate(mqr);}; this.mqo.onmouseover=function() {clearTimeout(mqr[0].TO);}; this.mqo.ary=[]; var maxw = ary.length; for (var i=0;i<maxw;i++){this.mqo.ary[i]=document.createElement('img'); this.mqo.ary[i].src=ary[i]; this.mqo.ary[i].style.position = 'absolute'; this.mqo.ary[i].style.left = (wid*i)+'px'; this.mqo.ary[i].style.width = wid+'px'; this.mqo.ary[i].style.height = heit; this.mqo.appendChild(this.mqo.ary[i]);} mqr.push(this.mqo);} function mqRotate(mqr){if (!mqr) return; for (var j=mqr.length - 1; j > -1; j--) {maxa = mqr[j].ary.length; for (var i=0;i<maxa;i++){var x = mqr[j].ary[i].style; x.left=(parseInt(x.left,10)-1)+'px';} var y = mqr[j].ary[0].style; if (parseInt(y.left,10)+parseInt(y.width,10)<0) {var z = mqr[j].ary.shift(); z.style.left = (parseInt(z.style.left) + parseInt(z.style.width)*maxa) + 'px'; mqr[j].ary.push(z);}} mqr[0].TO=setTimeout('mqRotate(mqr)',10);}
|
|
Registrovaný: 30.04.09 Prihlásený: 11.02.10 Príspevky: 723 Témy: 81 |
tak som nato isiel metodou pokus/omyl a staci premenovat kazdu polozku "*left*" na "*top*" resp. "*bottom*"
|
|
| Stránka: 1 z 1
| [ Príspevkov: 7 ] | |
| Nemôžete zakladať nové témy v tomto fóre Nemôžete odpovedať na témy v tomto fóre Nemôžete upravovať svoje príspevky v tomto fóre Nemôžete mazať svoje príspevky v tomto fóre
|
|