slitz Posted February 28, 2007 Report Posted February 28, 2007 Esmu uztaisijis savu 'slidoso' menu, bet man ir neliela problema ar to ka vins izskatas uz Mozzila firefox. Lai saprastu atskiribu vajag redzet... http://proy.avekurjers.lv/slide/changecss.htm Man vajag lai vins uz Mozzila firefox izskatas tapat ka uz IE. Vai kadam ir kada ideja? <style type="text/css"> #top {width:200px; border: 2px solid #000000;float:top; text-align: center;} #labi {width:202px; height:0px; border: 1px solid #000000;float:top;} </style> -------- <script type="text/javascript"> var i=0; var Wid; var Parb; function checkk(Wid){ if (Wid+'px'==getStyleById('labi','height') || Wid+'px'<getStyleById('labi','height')) { ExBox(Wid,'samazinat') } else{ ExBox(Wid,'palielinat') } } function ExBox(Wid,Parb){ if (Parb=='samazinat'){ i=i-10} else {i=i+10} setStyleById("labi","height",i+"px") Widd=Wid Parbb=Parb if(i<0){ i=0 exit; } if(i<Wid)setTimeout("ExBox(Widd,Parbb)",10); } </script> ----------- <div id="labi"> <div id="top" onclick='checkk(300)'>menu</div> bbbbb </div>
martins256 Posted February 28, 2007 Report Posted February 28, 2007 te noteikti atradīsi ko meklē un vēl vairāk :)
Recommended Posts